#development

1 messages · Page 517 of 1

vivid dew
#

stfu

twilit jungle
indigo peak
#

you’re precious

misty cradle
#

stfu

indigo peak
#

@misty cradle youre also precious

misty cradle
#

thank you

next wadi
tepid olive
indigo peak
grim sparrow
pearl sail
tepid olive
lime pivot
#

error messages like that go to stderr, not stdout, you'd need to redirect using which ssh 2>&1 to do that

#

though you shouldn't rely on exact error messages typically

#
if ! hash ssh 2>/dev/null; then
  echo 'get some ssh bro'
  exit 1
fi``` cleaner approach
#

did dicsord not reply to the message

#

was replying to this

#

I do not know what you just realised

#

std meaning the c++ stdlib though in this case

#

too many standard things can we just like have less standards

untold river
#

just dont have standards

pearl sail
twilit jungle
unkempt seal
#

Hey guys, I’m having a weird issue with my tweak Selenium, specifically the last update on Dynastic repo (v1.2.0).

Basically devices on Taurine can install it without any problems, but devices on Unc0ver are getting a dpkg error saying that there’s a preinst script but it is not found (see screenshot), and I could not find anything online about that.

Is it a problem with the dpkg version itself (as it is different between those 2 jailbreaks)? Or is it a problem on my end?

The full source code is available on https://www.github.com/lgariv/Selenium

GitHub

Snooze Notifications. Focus on what matters. Contribute to lgariv/Selenium development by creating an account on GitHub.

unkempt seal
#

oops

#

Lol

hardy glen
#

@unkempt seal try to comment everything out in postinst and preinst or have a simple echo command

#

and try on unc0ver

unkempt seal
hardy glen
unkempt seal
#

I’ll try it when I’ll get home, but it looks to me as if dpkg doesn’t even read those scripts according to the error

indigo peak
#

Anyone know why this isn’t working?

tepid olive
#

downgrade make

lime pivot
indigo peak
lime pivot
#

long press modify button

indigo peak
#

Thank you

lime pivot
indigo peak
lime pivot
#

however, the things you're doing in the maintenance scripts are a little icky, you shouldn't need those scripts at all

#

at minimum, you shouldn't need to fix permissions in postinst. you should be fixing the perms in your source theos project

#

at maximum, don't patch system files 😬

tepid olive
#

also that's a lot of unnecessary boilerplate code there

#

you're constantly assigning a variable and then only using it once

grim sparrow
lime pivot
grim sparrow
indigo peak
#

int**

gentle grove
restive ether
#

i do agree having 3 shells is bleh

#

but sh should definitely be dash and zsh is a way better user shell so

restive ether
tepid olive
restive ether
#

that looks different

indigo peak
#

I updated like 12 packages

#

And it broke

restive ether
#

what’s your libiosexec version number

restive ether
indigo peak
#

Thanks

grim sparrow
#

alias ugh = 'rm -rf ~/Library/Developer/Xcode/DerivedData'

gentle grove
#

what's that

grim sparrow
#

if you're having a bad time with xcode just run ugh

#

all your issues will be fixed instantly

gentle grove
#

interesting

grim sparrow
indigo peak
high citrus
#

Could live text be ported to A11, once there is a public jailbreak for iOS 15? Or does it really require the extra transistors of the A12?

tepid olive
#

it could be

#

there's NotLiveText but maybe something closer to the original can be done?

#

apparently A11 Neural Engine only has like 1 or 2 cores

grim sparrow
#

It’s one bool

#

It could be ported to any device in theory

#

It would just be slow

high citrus
#

And isn’t really livetext (just ocr, without the Apple magic I need lol)

tepid olive
#

I think so

high citrus
grim sparrow
#

Poomsmart looked into it when the beta first launched

tepid olive
grim sparrow
#

Im sure its fast as fuck on my dual core i5

tepid olive
grim sparrow
#

yes it is?

#

its running monterey right now

tepid olive
#

isn’t it a 2014

grim sparrow
#

2015

tepid olive
#

ah

grim sparrow
#

if it wasn't I'd be very confused because its been running monterey since June

tepid olive
#

that mac is on life support

#

wonder how monterey runs on my 2011 macbook pro

grim sparrow
#

it has been for years

tepid olive
#

i hope they don’t drop support for my 5k iMac

#

it runs monterey better than my 2020 pro

twilit jungle
#

All macs are obsolete now, please upgrade to iPadOS for latest software.

high citrus
grim sparrow
#

either october/november, my bets on a release date being confirmed after the mac event next week

high citrus
#

Oh alright, makes sense, because they might launch the new macs with the new os

vivid dew
#

i don’t think software should be released until it’s ready

twilit jungle
#

true

pearl sail
#

i dont think

lethal kayak
#

therefore you’re not

pearl sail
tepid olive
#

biased

gusty pelican
tepid olive
#

no he’s biased

gusty pelican
#

based

#

fix your autocrrect

opal ridge
#

how am i supposed to compile altdaemon on iOS

#

got swiftc cctools iPhoneOS.sdk MacOSX.sdk and ld64

grim sparrow
#

willing to bet you run make at some point

opal ridge
#

yes

tepid olive
#

@burnt wagon

#

nya :3

grim sparrow
#

nya :3

solemn quiver
#

way to be subtle ios

#

nya :3

tepid olive
#

imagine not uninstalling the tips app

soft lark
#

it was unironically useful to me once

#

i was fighting with auto switching airpods and it popped and told me how to turn it off

vivid dew
#

copypaste developer here

tepid olive
#

copypasta developer here (i am nepeta's alt)

cloud sundial
#

Bet

misty cradle
#

@cloud sundial

cloud sundial
#

@misty cradle

misty cradle
#

gm

gusty pelican
#

Gm

spring pollen
#

How did you guys learn how to make tweaks?

weary heath
#

Is there a way I can see what a hooked method returns?

quaint wigeon
#

@bright hornet happy birthday

bright hornet
vivid dew
#

@bright hornet happy birthday big man

bright hornet
ocean raptor
#

Anyone here ever present a UIAlertViewController from cli?

restive ether
#

no

ocean raptor
#

Ok

#

Give me developer

twilit jungle
#

Developer is only given to folks that copy paste other people source code

pearl sail
#

Yes he copied Saurik's ldid code let him have the role

ocean raptor
pearl sail
ocean raptor
ocean raptor
twilit jungle
faint timber
#

Mf you never fixed ldid for a15 don’t leave

pearl sail
#

gone

late ridge
grim sparrow
#

You will call orig again when you presumably return it at the end

#

And calling it twice can cause issues in certain functions

#

you’re better doing id orig = %orig;

late ridge
#

ye

#

good point

weary heath
#

Thanks :)

grim sparrow
weary heath
#

And then return orig right

grim sparrow
#

Yep

indigo peak
#

Gm

grim sparrow
#
id orig = %orig;
NSLog(@“[YourTweak] functionName = %@“, orig);
return orig;

Is my go to

late ridge
grim sparrow
late ridge
#

does this mean the function is rly empty??

#

I mean all it does is return, but why would there be an empty function

twilit jungle
#

So that subclass can override it to have custom behavior

late ridge
#

ooh true I forgot abt that

faint timber
#

@grave sparrow ported my rust to c++ finally

#

need to transfer the rest of the instructions now

#

gtg

late ridge
surreal mountain
late ridge
#

🥑 ✨

twilit jungle
#

Avocado is widget

indigo peak
twilit jungle
surreal mountain
#

Could not attach to pid : “58274”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: lost connection
User Info: {
DVTRadarComponentKey = 855031;
RawUnderlyingErrorMessage = "lost connection";
}

#

Literally what

#

Xcode mac app

spring pollen
#

how do you learn objective c?

twilit jungle
#

uroboro was kind enough to create a guide

restive ether
#

i made a guide too

spring pollen
#

also can you learn and code it on windows?

restive ether
#

called learning objc through not

weary heath
surreal mountain
#

my sip is compeltely off rn

#

also

#

well

#

its bc some libraries just

#

dont work

faint timber
#

progress

peak quartz
#

Anybody knows a tweak that can repack existing ipa on device?

tepid olive
#

depends on the ios version

peak quartz
tepid olive
#

only one i know of for that version is slightly dubious

faint timber
#

thats not what a tweak is sir

peak quartz
faint timber
#

not sure why its so hard for you to do it by hand

#

an ipa is a zip file

twilit jungle
#

Everything is a tweak fr

faint timber
#

noob

peak quartz
#

Probably doing something wrong

faint timber
#

because the app is not the root...

peak quartz
faint timber
#

Tree:

appname.ipa:
-> Payload
   -> appname.app
#

@peak quartz

#

the .app is not the root of the zip

peak quartz
#

It is

faint timber
#

it should never be...

peak quartz
#

Payload -> .app

tepid olive
faint timber
#

weird

tepid olive
#

so you couldnt install it on other devices

faint timber
#

@tepid olive well

tepid olive
#

which i assume is the whole point

faint timber
#

you basically just package it by hand, then replace the encrypted with the decrypted binary

faint timber
faint timber
#

can you tree the ipa contents

#

and show us

peak quartz
#

wait i think i got it

#

i needed to change the bundle identifier inside that plist because i did some nasty hack with injecting a dylib and signing on my device, seems to be solved ill verify this

frozen kettle
#

Hey I was hoping to know how can I detect when an app is in foreground (is opened) while developing in theos...

Just like the shortcut app does with it’s automation andd how activator does detect app launches..

grim sparrow
gritty crystal
#

100mb

#

.

#

lmao wrong channel nvm

tardy narwhal
#

it’s okay father Steve

gritty crystal
#

i didnt bother to narrow scope to #general

#

my fault

grim sparrow
#

I want to know how you got to that point

#

Ah

hardy glen
tepid olive
#

Alacritty true

#

I wanna try that on my mac

hardy glen
#

what alacritty?

#

i am going to try to run my implementation on mac and see if it works next

#

i just hate using tmux along with neovim since it causes color/speed issues

ocean raptor
hardy glen
#

it works on mac fr

#

@tepid olive could you test this for me floshed

tepid olive
#

um sure

#

wait

#

im busy now maybe in a bit

hardy glen
#

okay

#

its embedded with a tokenlogger

tepid olive
#

poggers

indigo peak
hardy glen
indigo peak
#

nice

hardy glen
#

its like a formatter paired along with clang-format. it is mainly built for that type of use

#

so it should be easy to configure with vscode and vim,etc

#

so you can actually format your logos files

indigo peak
#

so hear me out

#

fuck logos

hardy glen
indigo peak
#

and i rewrite gameseagull in pure objc

hardy glen
#

the thing about clang format is that you got alot of options to choose from so this could actually make your life easier

#

allign block syntax

indigo peak
#

yeah i dont think that tales extension for vscode has code align

#

so thats useful

hardy glen
#

it doesn’t have formatting. its just a syntax plugin iirc

#

its like using vim with syntax formatting and snippets

indigo peak
#

yeah its just syntax

#

but formatting would be nice

hardy glen
#

wait what do you use to make tweaks

#

wsl?

indigo peak
#

primarily now yeah

#

i use wsl and open the tweak.x/m files in vscode

#

but when im at school i dont have that luxury, so i use an online code editor thing and then i email my phone the changed code

hardy glen
#

yea i am pretty sure you can configure custom formatters on vscode

#

its just providing bin and args

indigo peak
#

too much work

#

id rather use something someone already made

hardy glen
#

like two linesfr

indigo peak
#

theres more of a chance that it would work

indigo peak
hardy glen
#

oh you mean like a vscode plugin

indigo peak
#

tbh, anything that works

#

doesnt have to be a plugin

hardy glen
#

this works fr

#

its a formatter, it uses clang-format

indigo peak
#

interesting

hardy glen
#

then you can use chromium style

#

or something else

#

make a .clang-format file in your project and BasedOnStyle: Chromium

#

and boom

indigo peak
#

very interesting

hardy glen
#

its made to be up to apples standards i think

#

wrong link

#

hold up

indigo peak
#

we dont talk about my variable naming

hardy glen
#

check that link out^

#

look at the options can modify

indigo peak
#

thats a lot of options

#

that i dont think i will ever need to touch

#

besides like 3 of them

hardy glen
#

you can use a style which already has all preconfigured. and change default values

untold river
hardy glen
#

if you got llvm installed, you can try it out rq fr

#

alright next project logos lsp server

frozen kettle
grim sparrow
#

Then you can pull the front most application from SBApplication

indigo peak
#

@faint timber happy birthday big man

faint timber
#

Rip teenage status

#

Thanks

#

Big 0x14

#

I’m still a teenager in hex

indigo peak
#

thats rude

tepid olive
#

bored as fuck gonna rewrite my cydia repo downloader

restive ether
#

white

tepid olive
#

yeah

indigo peak
tepid olive
#

gay fr

faint timber
#

haHAA @grave sparrow

brazen timber
gentle grove
#

hey guys fun fact

#

in C "11" + 1 is "1"

native dune
#

ok

gentle grove
#

it's true

pearl sail
#

Praying for the ban

gentle grove
#

why fr

#

who put fr and why

tepid olive
#

you have been fr'd, stop resisting

snow python
gentle grove
#

people make fun of JS

#

but never of C

snow python
#

To be fair, JS is a weird language

#

And I have spent the last 2 years doing nothing but TS/JS

#

Like the fact that undefined is an object

#

Though there are a lot of things I really like about JS

late ridge
#

lolcode > C

gentle grove
late ridge
gentle grove
#

nice, a broken ssl cert

brazen timber
gentle grove
late ridge
#

^

gentle grove
#

imo

brazen timber
#

ideally "11" + 1 should refuse to compile

gentle grove
#

you get a warning in literally any linter

late ridge
#

YARN + a NUMBR in lolcode uses integer math

gentle grove
#

and in literally any compiler

#

nevermind

#

gcc doesn't warn you

#

lmao

brazen timber
#

yeah

gentle grove
#

clang does though

brazen timber
#

lol

#

clang on top

#

i can't live without clang-format

gentle grove
#

wtf does this mean though

#

what is array indexing

#

im no C expert

brazen timber
#

strings are const char pointers which are arrays

gentle grove
#

yes

#

i do know that

brazen timber
#

yeah so it's telling you to index it instead

#

lol

gentle grove
#

what

#

can you show what code it's saying should be there instead

#

if i wanted to append it

#

also yaml > toml

brazen timber
#

printf(&"11"[1]);

#

literally says lol

gentle grove
brazen timber
#

yes

gentle grove
#

i thought it was saying how to concatenate the string lmao

brazen timber
#

lol

surreal mountain
#

KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED

#

Ok foundation

tepid olive
#

anyone have the ios 5.0 sdk

ashen birch
tepid olive
#

ok...

#

kind of rude

weary heath
tepid olive
# gentle grove also yaml > toml

depends, TOML can be nice if you just need flat INI-like configs and don't need null values, but when it gets more complicated with nesting and all, YAML is cleaner

gentle grove
#

i still need to convert my config.toml to config.yaml in hugo

#

and theme.toml maybe, but it doesnt have much nesting

tepid olive
#

TOML syntax gets weird in cases like this:

[[foo]]
a = 42
[foo.x]
b = 69
c = 34

[[foo]]
d = 123
[foo.y]
e = 987
f = 666
#

in YAML:

foo:
  - a: 42
    x:
      b: 69
      c: 34
  - d: 123
    y:
      e: 987
      f: 666
indigo peak
restive ether
#

wtf

tepid olive
#

YAML also has some bruh moments though:

>>> yaml.safe_load("""
... countries:
...   - ES
...   - HU
...   - NO
... """)
{'countries': ['ES', 'HU', False]}
#

avoidable by quoting strings (or using strictyaml but then you fully lose automatic int/bool conversion unless you specify a schema)

grim sparrow
#

Anyone here know what to do when dealing with __NSCFType in Swift

twilit jungle
grim sparrow
#

thats literally what I've done

#

make this one lonely file

#

only objc code in the whole project

tepid olive
#

L

#

why isn’t it @hook

#

would make more sense

#

would make more sense

grim sparrow
#

it'll be to not conflict with objc

twilit jungle
#

-[WiFiNetwork initWith:]

grim sparrow
prisma grove
#

@grim sparrow I believe that’s a memory leak

#

I think it should be self.passkey = (__bridge_transfer NSString *) WiFiNetworkCopyPassword(reference);

twilit jungle
indigo peak
grim sparrow
prisma grove
#

@grim sparrow And I also think you need to call CFRelease(self.manager); in the dealloc

grim sparrow
#

yeah

#

heres the thing

#

its technically never dealloced

prisma grove
#

but it’s good practice, no?

grim sparrow
#

I don't support good practice

twilit jungle
#

lol

prisma grove
grim sparrow
#

so its held for the life cycle of the app

twilit jungle
#

Well you better hope getNetworks is called only once as well, otherwise RIP memory

#

Why does something else own the shared instance instead of itself?

grim sparrow
#

I put everything ndef in one place

twilit jungle
surreal mountain
#

@tepid olive unironically most of my data storage uses yaml instead of json

#

if not a db ofc

tepid olive
#

still can't find the ios 5 sdk

#

ipg shut off the server it was hosted on

grim sparrow
#

why do you need it

tepid olive
#

thanks

proper reef
#

What is the arm64 syscall ABI?

hardy glen
#

daily reminder to use atnt syntax, thanks

proper reef
indigo peak
tepid olive
hardy glen
#

refer to this

tepid olive
#

why are you all so rude

lethal ice
proper reef
#

alright

lethal ice
#

svc immediate doesn't really matter it's ignored but 0x80 is c standard

proper reef
#

thanks

lethal ice
#

np

#

btw it will trample non callee saved registers

twilit jungle
snow python
#

Is there a work around for cannot link directly with dylib/framework, your binary is not an allowed client when linking with SpringBoard? I realise I could do runtime lookup, but I'm trying to use swift where possible

twilit jungle
lethal ice
#

swift uhhsweat

twilit jungle
#

Thats not a swift issue

lethal ice
#

swift is the issue

proper reef
#

how far does that go @twilit jungle

hardy glen
snow python
#

Why

twilit jungle
#

Why what?

twilit jungle
proper reef
#

the chain of discord links

snow python
#

4/20 nice

twilit jungle
#

idk what you talking about

hardy glen
#

what chain

#

?

proper reef
#

nvm

lethal ice
#

the day dgh0st gives a straight answer is the day the world ends

twilit jungle
proper reef
#

has the world ended already?

lethal ice
#

according to the mayans yea

proper reef
#

is this what the afterlife looks like.

lethal ice
#

since @misty cradle is here it can't be heaven

twilit jungle
#

F

proper reef
#

time to convert my x86_64 assembly code to arm

lethal ice
#

F

hardy glen
vivid dew
#

:uhhw:

hardy glen
#

found fiores daily driver

ocean raptor
#
#import <UserNotifications/UserNotifications.h>
@interface UNUserNotificationCenter
-(id)initWithBundleIdentifier:(id)arg1 ;
@end

int main() {
    UNMutableNotificationContent *content = [[UNMutableNotificationContent alloc] init];
    content.title = @"uinotification test";
    content.body = @"nothing ever works";
    UNUserNotificationCenter *center = [[UNUserNotificationCenter alloc] initWithBundleIdentifier:@"us.procurs.uinotification"];
    [center requestAuthorizationWithOptions:UNAuthorizationOptionAlert completionHandler:^(BOOL success, NSError *error) {
        if (!success) {
            NSLog(@"uinotification: requestAuthorizationWithOptions: %@", error.localizedDescription);
            exit(1);
        }
    }];
    UNNotificationCategory *category = [UNNotificationCategory categoryWithIdentifier:@"us.procurs.uinotification" actions:@[/*action*/]
         intentIdentifiers:@[] options:UNNotificationCategoryOptionHiddenPreviewsShowTitle;
    [center setNotificationCategories:[NSSet setWithObject:category]];
    content.threadIdentifier = @"us.procurs.uinotification";
    UNNotificationRequest *request = [UNNotificationRequest requestWithIdentifier:@"us.procurs.uinotification" content:content trigger:nil];
    [center addNotificationRequest:request withCompletionHandler:^(NSError *error){
        if (error) {
            NSLog(@"uinotification: addNotificationRequest: %@", error.localizedDescription);
            exit(1);
        }
    }];
}

what am I doing wrong?

#

I'm using the same ents as notificationd in libnotifications

vivid dew
#

bro your runloop?

twilit jungle
#

why run in a loop when you can exit

tepid olive
twilit jungle
vivid dew
#

@faint timber happy birthday big man

lethal ice
#

@vivid dew happy birthday big man

vivid dew
#

stfu

haughty tulip
#

@vivid dew happy birthday big man

indigo peak
#

@lethal ice happy birthday big woman

restive ether
#

@vivid dew happy birthday big man

vivid dew
vivid dew
restive ether
#

ok

#

wait

#

i can’t

#

.

vivid dew
#

only then can you say happy birthday big man

#

L

restive ether
#

L

indigo peak
#

blue name tri` >>>>>>>>>>>>>

tepid olive
#

its deprecated

#

but works on iOS

#

might as well try

twilit jungle
#

You realize those are 2 completely different functionalities right?

restive ether
#

my balls and my nuts

twilit jungle
#

don't exist

restive ether
#

proof

twilit jungle
#

They don't exist till you prove they do

restive ether
#

jules said otherwise

tepid olive
restive ether
#

yes

twilit jungle
#

Jules only likes lolis so...

tepid olive
#

nsnotificationcenter can do that

#

iirc

#

wait nvm

#

i am r

#

i got the wrong class name

#

im so tired

twilit jungle
restive ether
#

cat girls smh

tepid olive
#

NSUserNotification

#

omg

#

im a r

#

UserNotifications is so much worse tho

vivid dew
#

what is r

tepid olive
#

dm me for more info

tepid olive
#

what the actual fuck

#

why are booleans in obj-c yes and no

twilit jungle
tepid olive
#

why the fuck does everything start with NS

#

does that stand for nextstep?

vivid dew
#

can you stop like posting about development in the shitposting channel

twilit jungle
hexed bolt
#

i think i'm stupid

#

but i can't get my icon to work

#

system literally refuses to load it

#

can you fking explain this

#

i have no idea, all sizes are fking correct

twilit jungle
#

windows moment

hexed bolt
#

is there an autotool actually on macOS for this?

#

i have an source 500x500 png from canva

vivid dew
#

i think your windows font is messed up

misty cradle
#

mf you almost went to heaven

lethal ice
#

no way i would have gone to heaven

misty cradle
#

true

#

hell

#

@lethal ice

vivid dew
lethal ice
#

guitar just fun

#

code for money

untold river
tepid olive
#

I mean technically JSON is valid YAML but

#

I use JSON for anything that needs to be automatically updated by a script rather than human-readable

#

if it's not complex enough to need a DB of course

#

have been using TOML lately for configs since most of my programs don't need overly complex configuration, but I use YAML for one of them now

misty cradle
#

I mean technically JSON is valid YAML but
I use JSON for anything that needs to be automatically updated by a script rather than human-readable
if it's not complex enough to need a DB of course
have been using TOML lately for configs since most of my programs don't need overly complex configuration, but I use YAML for one of them now

tepid olive
ocean raptor
#

man, there has got to be an entitlement to skip notificiation authorization requesting

tepid olive
#

why can't we just do

<key>*</key>
<true/>
#

maybe u could make some sort of headless app

ocean raptor
#

do you know which executable that has it?

#

or what it is?

grim sparrow
#

im looking now

ocean raptor
#

ok

next wadi
indigo peak
ocean raptor
#

I wonder if it would be easier to use Bulletin instead of UserNotification...

surreal mountain
#

@tepid olive i use yaml for configs and yaml for really simple data storage just because sometimes i need it to be readable

tepid olive
#

I still use JSON5 for my "all-in-one" Telegram bot that's written in node.js because I've been too lazy to migrate it over to anything else

#

plus it has a facility to enable/disable configs by modifying the config file, and I'd probably need to write a custom dumper for YAML to be satisfied with the format it outputs in when modifying the config file

lethal ice
#

f

weary heath
tepid olive
#

Ok

#

@weary heath send it

#

i can try it on my iPhone X 14.3!!

weary heath
#

ok, make sure you're logged in and don't change your password after for a few hours please

tepid olive
#

@grim sparrow discordsecuretoken isn’t working

weary heath
#

that's fine, i added that to conflict so you'll have to uninstall anyway trol

grim sparrow
#

Yeah I realised the problem

#

It’s fucking stupid

#

Discord can suck an egg

#

It depends on a fucking feature flag

#

That I don’t have

#

But some people do

tepid olive
#

/s

#

wait you can just remove the token from the plist, Discord doesn't even make use of it?

grim sparrow
#

If you have the flag off yes

#

I have no idea what controls it

tepid olive
grim sparrow
#

That’s why it works for some and not others

tepid olive
#

so discordsecuretoken isn’t doing anything

#

great

#

🙄

grim sparrow
#

It does for some people

#

lol

lime pivot
#

would love to know who the hell decided they had to write out the token in plaintext but only for one specific feature

#

how did that pass code review

tepid olive
#

thats the thing they dont lmao

restive ether
#

worst idea ever

restive ether
#

for sharing.

#

yeah like if i wanna send a file to discs from share sheets

proper reef
#

time to figure out why i am getting invalid mach-o error

ocean raptor
proper reef
ocean raptor
#

Anyone here have iOS 12 and 13 devices that can test something for me?

proper reef
#

hmm weird

#

(lldb) run
error: process exited with status -1 (no such process.)

lime pivot
#

sure they do, discord just have no clue what they’re doing apparently

proper reef
#

Does anyone know what would cause this error?

next wadi
#

send me a deb

#

i'm running an iphone 14 pro max sigma on ios 18

lime pivot
#

apparently decided they’d rather fix the problem by storing a copy of the unrestricted full account access token in plaintext than, say, generating another token that can only list channels and send messages and nothing else

#

and storing that separate from the main token in a less restricted keychain item

haughty tulip
#

No

lime pivot
lime pivot
#

is the camera bump like 4 inches now

next wadi
#

yes

#

and the iphone camera has 6 different lenses

lime pivot
#

interchangeable???

next wadi
#

3 new ones to capture the beauty of your micropenis

next wadi
#

per lens^

lime pivot
#

compatible with my Sony mirrorless lenses?

next wadi
#

yes but you need to buy a dongle

lime pivot
#

fucking apple

#

that’s how they get you

next wadi
proper reef
#

I tried to create a simple executable

#include <dlfcn.h>
#include <stdio.h>
int main() {
int *i = dlopen("/var/root/bin2", RTLD_LAZY);
        char *e = dlerror();
        printf(e);
}

it won't work

next wadi
proper reef
#

it either does:
Killed: 9
or error: process exited with status -1 (no such process.)

lime pivot
#

you need to give your process the get-task-allow entitlement so lldb is allowed to attach to it

proper reef
#

alright

lime pivot
#

if you already have an entitlements plist just add xml <key>get-task-allow</key> <true/> then clean and rebuild

proper reef
#

I don't

lime pivot
#

how are you building this? Theos?

#

the tool template should have one included

proper reef
#

No, I'm just compiling with clang

lime pivot
#

just to make sure you’re aware, you need to fake-sign the binary with ldid for it to run at all

restive ether
lime pivot
#

after compiling

proper reef
#

yeah I tried that, nothing happened

restive ether
#

they’re just hoping bot devs can make a semi working way of blocking them from raiding servers

lime pivot
#

the macintosh operating system and the penguin operating system

#

probably not

proper reef
#

hmmm ok one moment

lime pivot
#

I’m good with my risk of token stealing being limited to Discord’s incompetence

proper reef
#

ok I tried ldid on another thing and got ../ldid.cpp(1455): _assert(): end >= size - 0x10

#

How do I fix this?

lime pivot
#

what was the command?

proper reef
#

ldid -S bin2

lime pivot
#

could be an old version of ldid? don’t know any reason that could fail on a current build

restive ether
#

you didn’t give it an entitlement xml to sign with

#

also gotta love the ldid error logging

#

super great

#

#StanProcursusLdid

proper reef
#

oh ok i found what causes the error

#

if (symtab != NULL) {
auto end(mach_header.Swap(symtab->stroff) + mach_header.Swap(symtab->strsize));
if (symtab->stroff != 0 || symtab->strsize != 0) {
_assert(end <= size);
_assert(end >= size - 0x10);
size = end;
}
}

#

im confused how this is possible

lime pivot
restive ether
#

oh is it

#

wild

#

ldid’s functions are pretty undocumented it’s pretty annoying

#

i’m happy cam took the time to do it at least

lime pivot
#

documentation definitely not saurik’s strong suit

restive ether
#

some of the options are interesting to say the least

#

and i’m not quite sure why they were ever added

lime pivot
#

oh wow he made a manpage

#

bless him

restive ether
#

yeah

#

took him like two days to write it

#

because some of the options had no info at all

#

and saurik’s code is not the best to read...

indigo peak
#

its like my code

#

except, his actually works

lime pivot
#

groff

#

you should not be surprised something described as “looks disgusting” starts with the letter g

restive ether
#

like this

#

why would you use this

#

and why does it print twice? who knows

lime pivot
#

once for each arch in the binary

restive ether
#

it prints the uikit version

#

no clue

lime pivot
#

I feel like that could have been a nice feature if it were general purpose

proper reef
#

so do i need to recompile ldid

lime pivot
#

not specifically hardcoded to uikit

lime pivot
#

what OS are you on? macOS?

proper reef
#

macOS but I was using ldid on the iOS device itself

lime pivot
#

if so you can get the latest on brew

restive ether
lime pivot
#

ok on iOS should also be current

restive ether
lime pivot
#

idk it’s fine

restive ether
#

there’s every arch you’ll ever need

#

have fun

lime pivot
#

it’s never not worked for me

restive ether
#

it won’t work on 15

lime pivot
#

oh great

grim sparrow
#

Gm Repo Man

lime pivot
#

I wonder when someone was going to tell me this

restive ether
#

15.1 at least i don’t know about 15.0

lime pivot
#

not like the tool everyone builds with needs to be prepared or anything

restive ether
#

pro’s has a patch for it

#

does it work? maybe

#

kinda hard to test when no one has a 15 jailbreak i suppose

#

but in theory it works

lime pivot
#

I mean I hope that’s not why @proper reef’s ldid is broken

proper reef
#

it's not

#

it's this weird thing with ldid

#

for some reason

#

it doesn't like my binary

#

I have no idea what _assert(end >= size - 0x10); is for

restive ether
#

epic error logging

proper reef
#

I don't know why ldid doesn't work on binaries that have the data offset larger than the symbol table offset + size

restive ether
#

if theirs breaks saurik’s is def broke

proper reef
#

So why can't I launch ```C

#include <dlfcn.h>
#include <stdio.h>
int main() {
int *ien = dlopen("/var/root/bine2", RTLD_LAZY);
char *e = dlerror();
printf(e);
}

restive ether
#

Hack fix for iOS 15.1 beta
iOS 15.1+ requires either hash agility or sha256 to be before sha1.

#

that’s so dumb lol

lime pivot
#

is he still using ldid in violation of the license

restive ether
#

does he have proprietary changes?

#

i saw he had a repo

#

but i don’t know if he releases builds of ldid included in altstore with changes not on the repo

#

riley and respecting licenses seem to go hand in hand

proper reef
vivid dew
proper reef
#

(This is the best way I've found to get error info on the other thing I'm trying to compile and execute)

restive ether
proper reef
#

but if I can't even get that to execute...

#

I tried signing it with ldid, it didn't say anything, but also just didn't run

#

Killed: 9

#

error: process exited with status -1 (no such process.) in lldb

restive ether
#

what entitlements did you sign it with

proper reef
#

I just did ldid -S

#

does that need any entitlements for the code I posted?

restive ether
#

you always need entitlements

#

and as kirb said for lldb definitely get task

lime pivot
#

you usually don’t need platform-application but it’s dependent on the jb injecting the entitlement for you

proper reef
#

ok i added get-task-allow and platform-application, tried it again, and nothing, killed:9

restive ether
#

what does this even do

proper reef
#

it executes the other binary and tells me what's wrong with it

#

I have no idea why it won't allow me to execute it

#

yes

#

yes

#

it doesn't really matter the name of the other binary

#

why did i name it bine2? no idea

restive ether
#

com.apple.private.security.no-container

#

?

#

idk

proper reef
#

dlopen(/var/root/bine2, 1): no suitable image found. Did find:
/var/root/bine2: code signature in (/var/root/bine2) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

#

I have to sign that somehow though

restive ether
#

what ios is this

proper reef
#

that's the one with ../ldid.cpp(1455): _assert(): end >= size - 0x10

#

14.4

#

but yeah that next binary is a problem because of the ldid error

restive ether
#

<key>platform-application</key>  
<true/>  
<key>com.apple.private.skip-library-validation</key>  
<true/>  
<key>com.apple.private.security.no-container</key>  
<true/>

#

do you have all three

#

codesign is not my specialty

proper reef
#

alright thanks i had to add that libraary vvalidation one

#

dlopen(/var/root/bine2, 1): no suitable image found. Did find:
/var/root/bine2: can't map segments into 16KB pages
/private/var/root/bine2: can't map segments into 16KB pages hmmmm

restive ether
#

you might need more entitlements, i also don’t suggest putting your binary in /var/root/

#

should just be in whatever /usr/ directory it’s applicable too

proper reef
#

thankfully dyld is open source so I can see the root of that error

restive ether
#

not fully

#

pretty sure it differs a little in iOS but you should get what you need

#

awesome bug

proper reef
#

oh i see now

#

wrong page size.

#

ARM64 is a mess

#

like

#

4 byte nops?

restive ether
#

oh no

#

it’s cam

snow python
#

You can’t even put a bin in /var, iOS won’t execute it

ocean raptor
proper reef
#

i executed a binary in /var/root

#

so uh

ocean raptor
ocean raptor
#

not really, it's quite easy to understand and write

proper reef
ocean raptor
proper reef
#

oh

#

ok

restive ether
ocean raptor
restive ether
#

which is why i recommended changing it

#

/usr/whatever depends what it does

snow python
restive ether
#

as cam said pretty sure check will bypass that

#

that was my understanding also

#

but yeah /var/root still a bad idea even if it is possible

proper reef
#

dlopen(/var/root/bine2, 1): no suitable image found. Did find:
/var/root/bine2: can't map segments into 16KB pages
/private/var/root/bine2: can't map segments into 16KB pages still

#

it'd be nice if it told me which segment is the problem

tepid olive
proper reef
#

dlopen(/var/root/bine2, 1): no suitable image found. Did find:
/var/root/bine2: out of address space
/private/var/root/bine2: out of address space

#

what in the world is that supposed to mean

proper reef
#

yes

tepid olive
#

maybe it's a jetsam thing?

proper reef
#
kern_return_t r = vm_alloc(&addr, size, VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_DYLIB));
    if ( r != KERN_SUCCESS ) 
        throw "out of address space";
    ``` also good job apple
#

but like

#

how am i supposed to fix this

#

also yes this is a weird binary

#

I don’t know why it’s saying this or how to fix it

proper reef
#

@tepid olive any idea

lethal ice
proper reef
lethal ice
#

false

indigo peak
#

arm v7 uhh

lethal ice
#

just because a nop is 4 bytes dont make it a mess

grim sparrow
#

Lol

lethal ice
#

go ahead write x86 and use 16 byte instructions

grim sparrow
#

not as bad as booleans being 1 byte

indigo peak
#

bruh

lethal ice
#

that's just for alignment reasons

#

bool is 1 byte on like every os

grim sparrow
#

Yes

#

That’s my point

#

But it’s stupid

proper reef
#

so does anyone know what the

#

out of address space is

grim sparrow
#

You’re accessing an address out of the space

#

Trying to

proper reef
#

I'm just trying to get it to execute

grim sparrow
#

I was just rewording the error

proper reef
#

dlopen(/var/root/bine2, 1): no suitable image found. Did find:
/var/root/bine2: out of address space
/private/var/root/bine2: out of address space

lethal ice
#

i dont think ur able to dlopen stuff from /var

#

try putting it in /Library

proper reef
#

huh ok

#
kern_return_t r = vm_alloc(&addr, size, VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_DYLIB));
    if ( r != KERN_SUCCESS ) 
        throw "out of address space";
    ``` this is the code where the error is thrown in dyld
#

it's very smart that apple did it this way

#

since there's no chance that it'll fail for any other reason

#

How am I supposed to figure out what is wrong

hardy glen
#

i would assume by figuring out what is wrong

vivid dew
lethal ice
#

idk

#

i just know that trying to open stuff from certain paths will break

lime pivot
#

binaries in your .app are an exception to that

#

dylibs* not actual executables

snow python
#

I have achieved one of the worlds greatest achievements: Segfault swiftc

lime pivot
#

that’s not in the app bundle

tepid olive
#

<- this arrow points to json addicts

snow python
#

Of all the things to be addicted to, that is one of the stranger options

restive ether
#

what about meth

tepid olive
pearl sail
gusty pelican
gusty pelican
#

is there such thing as too much ascii

twilit jungle
gusty pelican
#

too bad

twilit jungle
tepid olive
tepid olive
#

no

#

gives a 403 or 402

proper reef
#

Hello does anyone know why the vm_alloc could fail when launching a program with dlopen

#

It’s not from loading from wrong location

#

unless vm_alloc checks binary location which it doesn’t

tepid olive
#

tell me if you have any issues with it :)

proper reef
#

so uhhhhh what could cause vm_alloc to fail like that

snow python
#

Whats the best way to override the compilers framework search path? Lets say I want to modify the SpringBoard.tdb to not be limited by what binary it links against, and store that elsewhere. How would I tell the compiler that I want to link against that version of the framework

twilit jungle
#

-F

vivid dew
#

-F -R

twilit jungle
#

-F -R -coal

indigo peak
next wadi
#

my terminal tells me to kill myself

ocean raptor
#

Why doesn't [[UIScreen mainScreen] setBrightness:] work?

#

Is it an entitlement issue?

grim sparrow
#

probably

#

Considering its private api

twilit jungle
indigo peak
#

how would i put something like this into a tweak

#

also dgh0st, i dont want any bruh comments from you

twilit jungle
#

literally copy paste

indigo peak
#

im learning

twilit jungle
indigo peak
indigo peak
#

copy paste is my specialty

lethal ice
indigo peak
#

what should the file extension be

#

.c, .m, .x,

#

.exe, .png

#

what should it be

twilit jungle
#

Thats c code bruh_l

lethal ice
#

c m or x would all work

twilit jungle
indigo peak
twilit jungle
lethal ice
#

its pseudocode

indigo peak
#

then "literally copy paste" is not the move

lethal ice
#

literally copy paste and move the function definition out of the constructor

twilit jungle
vivid dew
#

i don’t understand please explain it in brazilian portuguese

lethal ice
#

no hablo espanol

indigo peak
#

no hablo c errors initializer element is not a compile-time constant

#

io non comprendo c

vivid dew
#

trolled

lethal ice
#

it uses NSString u need objc

twilit jungle
#

lol

indigo peak
#

is it just TWEAK_LIBRARIES = objc in the Makefile?

twilit jungle
indigo peak
#

#include <objc/objc.h> fr

lethal ice
#

why are u writing this in objc it's literally

%hook
%new
-(int)count
{
  return 0;
}
%end```
indigo peak
#

i know WHAT it is

#

im just bored

grim sparrow
vivid dew
ashen birch
#

that makes me wonder

#

cause i literally know an app on the appstore that can control brightness

lethal ice
#

it's not a private api

#

snapchat changes brightness

proper reef
#

hi. does anyone know what could cause dlopen(/var/root/bine2, 1): no suitable image found. Did find: /var/root/bine2: out of address space /private/var/root/bine2: out of address space

ashen birch
#

mmap(999999);

#

got u bruh

proper reef
#

?

proper reef
misty cradle
#

if u respring it’ll reset

lethal ice
proper reef
restive ether
#

putting your bin in the var woeis1

proper reef
#

it was 4k on x86_64 but for some reason arm64 wants 16k

lethal ice
#

you're trying to transpile x64 to arm64?

proper reef
#

the segment extender thing i originally wrote for x64

#

now i need it to work on arm64

#

i only did it on x86_64 because it's easier to test there

lethal ice
#

yea idk

next wadi
#

fr

#

scoop bad instructor

restive ether
lethal ice
#

bro this aint asm

#

it's really not

proper reef
#

ok then i'll ask you about the asm part of it

lethal ice
#

assembly is machine code

#

he's literally just trying to make __TEXT bigger

ocean raptor