#development

1 messages · Page 42 of 1

merry glade
#

is there any security setting i need to disable on aarch64 macOS to do simple buffer overflows? i get bus error no matter what payload i use lol

naive kraken
#

@grave sparrow your xpc thing doesn't seem to be working if the mach port comes from host_get_special_port

#

xpc_pipe_routine seems to return 5

hasty marsh
#

hi opa

#

wyd bbg

naive kraken
#

does the daemon need to check in into the port or something?

naive kraken
#

yeah I checked amfid

#

see nothing special there

#

yes

#

but I get the port fine

#

just the xpc thing doesn't work

#

isn't there this weird priviledged flag

#

but on macOS right?

timid furnace
#

@grave sparrow

#

i hate apple

naive kraken
#

I see

#

so you say I cannot use bootstrap_look_up synchronously from launchd

#

I guess because that goes back to launchd and it can't process the message as it's deadlocked waiting for a response

#

can I not just find the function inside launchd that does the look up and use that?

#

I think I have it idk

#

you know, patchfinding exists

naive kraken
#

no1 cares about early shit

#

For early shit I will probably use either mach directly or file descriptors or some crap

#

heck maybe just even writing to text files

#

I will call that libshit

#

idk

#

I just have to get primitives back to launchd

#

from some process that had been running through the userspace reboot

#

shouldn't be too bad

#

launchd deadlocks and waits for the other process to write the ppl mapping back to launchd and give it the address of the mapping

#

kcall is a different beast, no fucking idea how I will get that done yet

#

there is PPL mapping

#

PPL mapping is magic mapping in process space

#

and you can map whatever physical memory you want into the process using this mapping

#

and when you have kcall and pplrw, you can give this mapping to whatever process you want

#

you give the shit to a process, then make launchd do execve, then make the process give it back

#

yes

#

if you have the mapping applied

#

like the mapping is basically a higher level table of other mappings

#

and when you have this table mapped into your process you can write entries to it and then other pages will be mapped into your process space

tepid olive
#

@naive kraken we can exploit on fugu twice though

#

we can launch oobPCI and jbd again

#

the kernel exploit doesn’t require any spray

silver rampart
silver rampart
#

lolol i'm actively working on that

naive kraken
#

the kernel exploit is unstable as is

silver rampart
#

you can also just like, use some functions to grab the pointer to the existing config and update the values there

#
SBIconListGridLayoutConfiguration *config = 
[[(SBIconListGridLayout *)[[[objc_getClass("SBIconController") sharedInstance] iconManager] listLayoutProvider] 
layoutForIconLocation:@"SBIconLocationRoot"] layoutConfiguration];
[config setNumberOfPortraitColumns:5];
[config setNumberOfPortraitRows:6];
naive kraken
#

@grave sparrow what hostspecialport are you using for your jbd?

#

wait what

#

damn

#

Maybe port 15 is just already taken idk

#

what do I know

silver rampart
#

not that i know of but i'm doing some RE to try and figure out if there's a better way to do it than this

naive kraken
#

whatever this means

#

wait

#

do I need to add 7 when doing host_get_special_port?

#

hm but I saw Fugu14 was using 22 or something

merry glade
naive kraken
#

huh

#

fugu uses HOST_CLOSURED_PORT

#

aka 21

#

hm I can write one too tbh

silver rampart
#

if there were though you'd have to either call this one demonic function or respring for the layout to get updated afaik

naive kraken
#

so 15 not 0?

#

ok

#

then that's the issue

#

probably

#

what

#

it uses 21

#

ok

#

yes

#

what do I know

#

communicate from launchd to jbd

#

how many ports are there

#

32?

#

Yeah I guess? I have my own kickstart binary that calls launchctl api

#

balls

#

yep 15 is in use

#

ports on iOS

zenith hatch
#

gorn

#

gm “developers”

naive kraken
#

so you'd rather have me do more port fuckery?

#

but that's what you're suggesting troll

#

Also jbd is first before launchd

#

I'm not even in launchd yet

#

just making sure hsgp works

#

bro no one's using that crappy port

#

otherwise it would be taken

#

lol

#

I don't

#

Hm I get it

#

anyways what port number is this

#

I mean I am using the launchctl api lol

#

That seems more trouble then it's worth

steady nest
#

ramdisks

naive kraken
#

yep 16 works

#

no error

#

xpc works

#

yes...

steady nest
#

lol sorry opa

naive kraken
#

yes it was just the port that was already used

#

thanks @steady nest

steady nest
#

I thought it wasn't used

#

it isn't

#

🐒

#

speaking of which, I should put them up for sale

#

do you have a use for it

#

I'll gladly trade a 256 for your 15.4.1 128 trol

#

I'll get one eventually

#

or I'll have two available for Fugu16

silver rampart
#

all my devices are on 14.x pain

#

wait no the A12X ipad is on 13.5.1

#

wtf

#

rows is kinda busted

#

columns is fine

#

what vers are u on

#

are u hooking

#

L

#

yeah so you're setting every single location to 5

#

you need to check the iconLocation

#

no

#

you can check the existing values and compare them to what you know they should be for a given location but there's a reason doing it there sux

#

%hook SBHomeScreenViewController

  • (void)loadView
#

why i'm looking lol

#

then:

SBRootFolderController *rfc = [[objc_getClass("SBIconController") sharedInstance] _rootFolderController];
    for (SBIconListView *list in [rfc iconListViews])
        [list layoutIconsNow];
    [[(SBRootFolderView *)[rfc contentView] dockListView] layoutIconsNow];
    [[(SBRootFolderView *)[rfc contentView] dockView] layoutSubviews];

to flush layouts

#

dock ones not relevant if you arent touching those

#

no run that in that hook

#

after my orig code

#

but yeah if you call that same hook code again with new values and then run that stuff ^ it should also update

#

enough moving parts respringing is probably safer/easier though

#

a few months ago?

#

i haven't touched ios in years wtf

#

yeah

#

also ren might know better on layout stuff at this point not sure

#

could bother them

#

no on the layout shit lol

#

i'll look at vertical scroll later™️

shell sphinx
#

hi, does anyone know how i could remove these? they block me from creating a new cert. right clicking does not work

#

looks like a need a paid acc for that

#

should have noted that i have a free one

#

following an apple support thread i deleted them from keychain but that didnt really change anything

#

forgot to censor have my last name

silver rampart
#

chad self-doxx

shell sphinx
#

real

tepid olive
#

the exploit is literally zero overhead

naive kraken
#

we can persist ppl primitives easily

#

the hard part is pac

tepid olive
naive kraken
tepid olive
#

that’s what oobpci does

wicked shale
#

what to do here developers

indigo peak
#

@naive kraken using altlist, would it be possible to have it so when you toggle one app from the Applications section, it goes to a section called like Enabled and THEN that section allows the user to control the order in which the items appear one by one (like how the control center modules are customized)

gentle grove
#

That is not possible

tepid olive
#

Does azule work with github actions?

late ridge
#

does anyone have a way to contact ren?

tepid olive
#

interesting af video

hasty ruin
prime ingot
gentle grove
naive kraken
faint stag
#

man, this statically linked zsh is borked

#

oh i had to use the installer for static

indigo peak
#

or would it just be easier to make my own

sly knoll
#

anyone know how to use PongoOS for m1

#

i built it but idk how to boot it

tepid olive
#

@sly knoll set it as the boot object

sly knoll
#

I don’t know how to do thatapplepleading

sly knoll
#

kmutil configure-boot -c?

tepid olive
#

yes

sly knoll
#

sorry for ping

#

or can i usse them to boot macOSblobwhat (maybe no)

#

and i dont know what is the home directory path on recovery mode

#

ping me when you reply🙏

naive kraken
#

although I feel like someone else already did this…

primal perch
hasty ruin
coral gazelle
#

How do you mount a modern iOS restore ramdisk DMG? I've tried 16.3.1 ramdisks from both iPhone X and iPhone 14 Pro Max IPSWs, and trying to mount both of them outputs this error, even though they supposedly aren't encrypted.

steady nest
#

you have to remove the img4 header

#

the payload is a dmg

faint timber
#

Why do no mfs know how to hexdump head

steady nest
#

we spent that time looking for bitches

wicked summit
#

good morning

#

@winter viper

noble zodiac
#

How can you codesign an IPA in JS (online) ? I can't find anything anywhere talking abt this.

tepid olive
#

or use wasm

blazing warren
#

if you need a tester for fugu15 max, here is a volunteer troll 🤓

indigo peak
indigo peak
naive kraken
#

by linking the framework

indigo peak
#

ATLApplicationListControllerBase?

#

im assuming its that

naive kraken
#

yes

indigo peak
#

OHHHI GET IT NOW

#

idk why it didnt make sense

indigo peak
#

i get it, but idk how to apply it LOL

glacial matrix
primal perch
blazing warren
#

😅

tepid olive
#

Don’t worry we won’t take that long

blazing warren
#

😎👍

Nice

steady nest
#

which one

silver rampart
#

oki

blazing warren
#

xina support ?
troll

silver rampart
#

changing column count once on springboard troll
updating it in real time trolldisappointed

blazing warren
#

I can't complain about xina, it's worse not having a jailbreak and tweaks working. but i'm excited to try fugu15 max when it's released

silver rampart
#

me? glitchy code? impossible Clueless

primal perch
#

cynder not leave challenge

#

difficult

#

stkc also has trouble with that one

#

@stkc

silver rampart
#

true

primal perch
#

also wtf youre using emotes almost every message like a true dev here

silver rampart
#

tbf i've had no reason to be in this server till this week

blazing warren
silver rampart
#

been trying to find something to do after work other than "just keep working" and it was this or sewing kek

#

tell cam (not procursus one) he can send me fabric to make me leave

tepid olive
#

what are good plugins for xnu re

hasty ruin
#

true. please leave

restive ether
#

fabric

#

sewing is for nerds and virgins

#

doing meth is for real men

silver rampart
next wadi
#

I dont sew

#

schizo

restive ether
#

fr

hasty ruin
ocean raptor
tepid olive
#

send link

wind ravine
#

anyone know how to release ram from mdc?
ive tried munlocking and munmapping yet its not lowering ram usage when the task is done

#

its leading to files being corrupted or having it abort with bigger operations like icon theming

#

or if it is freeing up the ram, it isnt doing it until the iteration is done

primal perch
#

my dongle cock

#

nah fr tho what the fuck is mdc

wind ravine
#

macdirtycow

primal perch
#

o

#

ya gl

wind ravine
#

it has to load the file into memory in order to replace but it isnt releasing it from memory

#

when i replace, ram jumps up by 300 mb and then jetsam kicks in

#

swift should be doing it automatically but it isnt

primal perch
#

swift

wind ravine
#

thats what the impl was coded in

hasty ruin
tepid olive
primal perch
#

every line of swift is built because C++ is good

hasty ruin
#

I’ve been laughing at swiftui for the past hour because I just found out it didn’t support text boxes in Alerts until iOS 16

primal perch
wind ravine
#

u are doing it wrong

#

u need textfields not textboxes

hasty ruin
#

same thing trol

tepid olive
#

second is nexus

#

💀💀💀💀

hasty ruin
#

works on palera1n rootless

tepid olive
#

Cap

hasty ruin
tepid olive
#

Don’t you have a fugu15 device

hasty ruin
#

my main

tepid olive
#

Lmao

#

Wanna try it

#

It’s fucking stable

#

Wait what device

hasty ruin
#

what’s the chances of kicking me off this firmware atm troll

primal perch
#

the iphone 13 pro x

hasty ruin
#

A13

tepid olive
#

because it’s rootless

#

you can rm rf the rootless install and it’s gucci

primal perch
#

yeah but theres MDC idiots getting bootlooped

hasty ruin
#

when Xina came out some redacts deleted the wrong folder in /priv

#

no longer booted

hasty ruin
#

@tepid olive I’ll test it tmrw if it’s fine on my device (a13 15.1)

wind ravine
hasty ruin
#

cba to debug anything rn

tepid olive
#

that’s okay

wind ravine
#

what processes can currently be modified with fugu15 max?

#

ive only seen the ls so far

naive kraken
silver rampart
#

Does xinaa15 use some new package layout?

lime pivot
silver rampart
#

LMAO

#

oh too real

velvet path
#

XinaA15 is some of the jankiest shit out there

#

example: it's using an iOS 13 rootful bootstrap that's heavily patched up (this is a common theme)

lime pivot
#

NewTerm and any other binary that uses the system libswift continues to not work because it rewrites /usr/lib/swift load commands to /var/lib/swift

grim sparrow
lime pivot
#

I was thinking of doing it in postinst

grim sparrow
#

Might be worth just making a package for it

lime pivot
#

but then I don’t know if dyld is smart enough to follow a symlink to what’s supposed to be a shared cache binary

grim sparrow
#

So that lots of tweaks can just refer back to that

grim sparrow
#

@silver rampart you might know the answer to that

naive kraken
#

if it's just a string you can bypass xinas binary patch

lime pivot
#

I still don’t have a xina device and honestly don’t intend to at this point, so that’s on you to test lmao

grim sparrow
naive kraken
#

well then

#

no clue

#

ur fucked I think

grim sparrow
#

Yeah it’s not possible to fix without a Xina jb update, again

lime pivot
#

yep

grim sparrow
#

You have no idea how long it took me and Adam2 to figure out this is the problem

lime pivot
#

the ugly alternative is checking the load commands in postinst, and if it’s been changed, then you un-change it and resign

#

but I mean… yeah…

#

how many levels of hacks do you want

#

hacks for the hacks

naive kraken
#

I told xina about this

naive kraken
#

I could not figure out how to resign a binary in a way that it actually works

#

and I tried just about everything

lime pivot
#

ldid doesn’t work?

naive kraken
#

no

lime pivot
#

oh because it does that dylibifying thing

grim sparrow
#

sigh

naive kraken
#

that has been done on the whole bootstrap once before it was packed

#

I think

lime pivot
#

hmm ok good

tepid olive
#

you could hook dyld and check paths

silver rampart
grim sparrow
#

Well that was worth a shot

silver rampart
#

if you do something janky like this it works, if that's enough to throw off whatever auto-patcher

#

(no symlink involved it'll just look for a missing file in multiple spots)

grim sparrow
#

You know what, yes that’s actually perfectly reasonable

#

I’ve Set a reminder in case I forget, should have a chance to do it this week

hasty ruin
#

omw to send them whilst i can

coral gazelle
# steady nest you have to remove the img4 header

OK, removing the img4 header with img4tool appears to work on an iPhone X restore ramdisk, but then I tried it on an iPad (4th generation) restore ramdisk and it says:

img4tool version: 0.193-e6a43f7d130ae94e38898292844d7cf5933699c5
Compiled with plist: YES
img4tool: failed with exception:
[exception]:
what=File not recognised
code=20578312
line=314
file=main.cpp
commit count=32:
commit sha  =254b42f067893ce32a10e8a99b2dfbec2149cb54:```
tropic axle
#

I have an xcframework Swift project that I develop and build through Xcode. I would like to build it into a dylib for tweak injection. How should I go about doing this?

tepid olive
#

Whats a team identifier? From a tweak if it matters

steady nest
#

All 32-bit images are encrypted

#

You need to use xpwntool

coral gazelle
#

I'm trying to mount an iOS 10.3.4 ramdisk, which shouldn't be encrypted.

naive kraken
#

@lime pivot xina wants broken example (the /usr/lib/swift thing)

#

just send me a deb

grim sparrow
#

He fixed it (apparently)

#

he actually responded to me for once

naive kraken
#

lol

#

alright

coral gazelle
#

What key am I supposed to use to decrypt it then?

tepid olive
#

no more wifi bug

steady nest
coral gazelle
#

How do I use this?

tepid olive
#

Is deb injection just moving files where they have to be or is it more complicated

indigo peak
#

Idk how it works with a jb, but if you’re adding a tweak to a ipa and side loading it you need to add a load command to the apps binary file in order for it to actually know what to do with those files

steady nest
#

@coral gazelle just downloaded an ipsw for the iPad 4, 10.3.3, the restore and update ramdisks aren't encrypted

#

the root fs though, is

#

wait what, it's not lmfao?

#

wtf is apfs.framework doing in a 32 bits device ramdisk

tepid olive
#

I want to make smt with GitHub actions but it seems like azule fails at the part when it actually injects the deb file

indigo peak
#

bc it takes in a dylib and a binary

tepid olive
indigo peak
#

uh no idea

tepid olive
#

I mean they are for additional ui I think

tepid olive
coral gazelle
timid furnace
#

Would there be a reason to not use @rpath

#

Wondering if I should just switch my rootful and rootless builds to @rpath

#

Instead of just rootless

ocean raptor
#

@rpath >>>>

#

Ok capt, let's hear what idiotic thing you have to say

timid furnace
#

Hmm. Ok

faint timber
#

anyone have security sso tweak for latest youtube, the one I have no longer works

ocean raptor
#

WRONG

#

apps don't use @rpath

#

They use @executable_path or @loader_path

#

The only way that would work is if one of the LC_RPATH is @loader_path/ so it doesn't count

faint timber
#

rip @ executable

ocean raptor
#

L bozo

#

So it's using @executable_path/ but with unnecessary layers of indirection

#

(This is what is described in the dyld manpage)

lime pivot
#

does he understand something about why newterm doesn't work on xina?

wind ravine
#

xina moment

vivid dew
#

@unkempt raft happy birthday big man

primal perch
#

@unkempt raft happy birthday big man

unkempt raft
#

thanks pepeok

tropic axle
#

My dylib doesn't seem to get injected into some apps w/ Substitute. Any ideas why?

It gets injected into Airbnb for example.

1678618144.836 200ddd5 INFO  Airbnb(955): Injecting /Library/MobileSubstrate/DynamicLibraries/libAXServer.dylib
1678618144.838 200ddd5 DEBUG Airbnb(955): Injection of /Library/MobileSubstrate/DynamicLibraries/libAXServer.dylib completed in 2 ms
1678618144.838 200ddd5 DEBUG Airbnb(955): /Library/MobileSubstrate/DynamicLibraries/libAXServer.dylib used 64 kbytes of memory

But not Slack.

1678618190.823 200ddd5 INFO  Slack(960): startup
1678618190.857 200ddd5 INFO  Slack(960): Injecting /Library/MobileSubstrate/DynamicLibraries/0Cr4shed.dylib
1678618190.860 200ddd5 DEBUG Slack(960): Injection of /Library/MobileSubstrate/DynamicLibraries/0Cr4shed.dylib completed in 3 ms
1678618190.860 200ddd5 DEBUG Slack(960): /Library/MobileSubstrate/DynamicLibraries/0Cr4shed.dylib used 128 kbytes of memory
1678618190.860 200ddd5 INFO  Slack(960): Injecting /Library/MobileSubstrate/DynamicLibraries/CepheiSpringBoard.dylib
1678618190.862 200ddd5 DEBUG Slack(960): Injection of /Library/MobileSubstrate/DynamicLibraries/CepheiSpringBoard.dylib completed in 1 ms
1678618190.862 200ddd5 DEBUG Slack(960): /Library/MobileSubstrate/DynamicLibraries/CepheiSpringBoard.dylib used 176 kbytes of memory
1678618190.862 200ddd5 DEBUG Slack(960): completed in 46 ms
#

I have already added both apps' bundle id to the plist file

grim sparrow
grim sparrow
#

Hi

#

No you cannot have boob pics

#

For free

indigo peak
grim sparrow
#

Boob pics is not prostitution

#

I’m 18 I can legally sell my tit pics

indigo peak
#

selling feet pics

hasty ruin
unkempt raft
#

Thanks!

timid briar
#

hbd!

#

🎉

lime pivot
#

@unkempt raft happy birthday big man!

lime pivot
indigo peak
vivid dew
gentle grove
#

selling lemonade

hasty ruin
#

Underaged

#

hot

primal perch
#

nah im fugly

lime pivot
primal perch
#

wtf

#

i have like 5 times

hasty ruin
lime pivot
primal perch
hasty ruin
#

imagine never seeing the pic of shep repping the linux drip

primal perch
#

fr

#

the tux plush

hasty ruin
#

so true

unkempt raft
faint timber
#

Guys I'm back

#

been years since I've done iOS tweaks

gentle grove
#

dont

#

its all hopeless

faint timber
#

I only make tweaks for apps I use

#

right not I only need youtube and freevee

#

@gentle grove why do you say its hopeless anyway

gentle grove
#

idk

#

theres like no more jbs anymore or something

#

and it keeps getting worse

faint timber
#

I mean my a15 is on 15.4.1 so I have tweaks

#

¯_(ツ)_/¯

gentle grove
#

wtf

faint timber
#

same as every year

#

your own fault if you didn't stay on the correct version

#

nothing has changed

gentle grove
#

I didn't even know there were any jbs for any iOS 15 version

faint timber
#

lol you out of the loop?

gentle grove
#

Maybe

faint timber
#

I mean mostly fully working jb (public) but tweaks are private

gentle grove
#

I only hear what's in general

faint timber
#

the jb is public but the tweaks are not

#

here

gentle grove
#

"the" tweaks?

faint timber
#

?

gentle grove
#

I go to bed

silver rampart
#

finally found the magic trick for row/column adjustments on iOS 15+ pog

faint timber
#

yooo I need that color pallette

#

sauce pls

silver rampart
#

default vscode

faint timber
#

I dislike code

primal perch
vivid dew
#

:meth:

primal perch
faint timber
#

how to I hook a __PROTOCOL_ class

silver rampart
#

or is there some epic new type of class i haven't seen

faint timber
#

new type its swift

#

either its not called or it didn't hook

#
%hook PVPlayerSDK_Player

-(void)start:(id)arg0 {
    NSLog(@"[*] PVPlayerSDK.Player: start hook: arg0: %@ start", arg0);
    %orig;
    NSLog(@"[*] PVPlayerSDK.Player: start hook: arg0: %@ end", arg0);
}

-(void)load:(id)arg0 {
    NSLog(@"[*] PVPlayerSDK.Player: start load: arg0: %@ start", arg0);
    %orig;
    NSLog(@"[*] PVPlayerSDK.Player: start load: arg0: %@ end", arg0);
}

%end
...
%init(PVPlayerSDK_Player=objc_getClass("PVPlayerSDK.Player"));

// symbol: 000000010013f170 s __PROTOCOL__TtP11PVPlayerSDK6Player_ ::: 000000010013f170 s __PROTOCOL_PVPlayerSDK.Player
#

@silver rampart

faint stag
#

i just wanna turn off this damned bar 😭

#

killing it on a loop is very inefficient

silver rampart
#

SIP enabled L

faint stag
#

I still have the boot arg tho

#

but yeah, i got no reason to keep it on and i forgot why i turned it back on

faint stag
#

Lel

restive ether
#

trolled by the entire internet

hasty ruin
#

It happens when you have sip and amfi disabled

#

Even though I never disabled amfi manually

faint stag
zenith hatch
timid briar
primal perch
#

i love SIP

gentle grove
#

developers hating SIP and forgetting that normal people that use macs exist

primal perch
#

fr

#

security 💪

gentle grove
#

you are not normal

tepid olive
primal perch
#

gorn

silver rampart
#

2 years have gone by and i'm still dumb as shit 😎

silver rampart
primal perch
#

yeah the left side pointer is a dead giveaway

silver rampart
#

job has brainwashed me into left side pointer always

faint stag
primal perch
#

job like the guy from the bible

silver rampart
#

yeah

primal perch
#

oh real

silver rampart
#

he told me god would kill my kids

#

if i didn't

primal perch
#

inshallah alhamdulillah

indigo peak
faint stag
#

need to keep it warm or it flickers

primal perch
#

unfortunate

faint stag
#

it's so strange. something has to be fucking up internally when the temp drops and i have no idea what that could be

faint stag
#

so that's why i've decided to just kill the touchbar server entirely

#

no bar no blinding lights

timid furnace
#
typedef SBIcon* SBIconRef;
SBIconRef icon;
primal perch
#

ya idk blame joe

#

joe biden

#

Joseph R. Biden Jr

#
Uint8Ref data;
#

cursed

timid furnace
#

true

primal perch
#

at least 3

silver rampart
hasty ruin
#

[news] orange name doesnt know what an IP is

cloud yacht
#

No thats an ipv6 address, obviously

hasty ruin
#

base64 ips when

hasty ruin
#

how old is that pic now frcoal

#

prob not as old as capt though

#

dudes ancient

primal perch
hasty ruin
faint timber
#

how to fix this

primal perch
#

use kvc

primal perch
#

the apple interns making 18$/hr

#

(swift)

hasty ruin
#

face reveal

primal perch
#

this is capt

hasty ruin
tropic axle
hasty ruin
tropic axle
#

Let me try.

hasty ruin
#

just to test

#

dw im not about to make typecentury2

#

captware

tropic axle
#

cat /var/log/extensionloader.log

hasty ruin
#

true

tropic axle
#

see: Notion doesn't get injected

#

But Twitter does (libAXServer.dylib)

faint timber
#

@grave sparrow sir

hasty ruin
#

incorrect bundle id

tropic axle
#

Right, I'll give it a shot

hasty ruin
#

ofc you have

tropic axle
#

I am pretty confident it isn't getting injected because Console doesn't show Notion though

hasty ruin
#

nice assumption that they're using theos

tropic axle
#

theos? idk whats that. I'm compiling it manually

hasty ruin
tropic axle
#

with swiftc and clang

#

there's no deb

#

it's a dylib file i dragged into /Library/MobileSubstrate/DynamicLibraries

#

in the same direcory as the dylib? /Library/MobileSubstrate/DynamicLibraries

#

lemme rename Cr4shedMach.plist to libAXServer.plist

primal perch
#

owned by Andrew [redacted] in [redacted], VA

hasty ruin
#

.ret

tepid olive
#

@tropic axle what command you use for compile you project?)

primal perch
#

c3

#

your mom isnt a virgin(ia) either

tropic axle
# tepid olive <@573423849933242369> what command you use for compile you project?)
swiftc ./AXServer/AXServer.swift ./AXServer/Bundle.swift ./AXServer/AXOverlayWindow.swift ./AXServer/ControlsView.swift ./AXServer/AXSnapshot.swift \
    -emit-object \
    -module-name AXServer \
    -emit-objc-header-path AXServer-Swift.h \
    -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk \
    -target arm64-apple-ios16.2

clang -c ./AXServer/DylibEntrypoint.m \
    -fobjc-arc \
    -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk \
    -target arm64-apple-ios16.2

clang DylibEntrypoint.o AXServer.o Bundle.o AXOverlayWindow.o ControlsView.o AXSnapshot.o \
    -dynamiclib \
    -o libAXServer.dylib \
    -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk \
    -target arm64-apple-ios16.2 \
    -L/usr/lib/swift

install_name_tool -id @executable_path/Frameworks/libAXServer.dylib ./libAXServer.dylib 

/usr/bin/codesign --force --sign "Apple Development" libAXServer.dylib
tepid olive
#

maybe you use theos?

tropic axle
#

I can give it a try.

#

anyways the plist file is in there correctly

#

Permissions look good.

#

oh shit it works now

#

i have no idea why

#

i just deleted the plist file and scp it back in. no content changes.

#

I am using com.apple.Foundation in the plist.

#

thanks everyone

#

maybe Substitute doesn't listen for changes to the plist unless you explictly delete it?

#

i did that

#

yeah haha

hasty ruin
#

at least add a constructor filter

tropic axle
#

yeah, wouldn't want it to be injected into every single library 🙂

#

so say my jailbreak tweak causes the target app to crash in some cases... how do i debug it? where are the crash logs?

ocean raptor
#

wtf

#

byte_sex

faint lionBOT
#
Cr4shed

A modern crash reporter for iOS

Author

Muirey03

Version

4.3.0

Price

Free

Repo
Bundle ID

com.muirey03.cr4shed

hasty ruin
#

who codes like this

faint timber
#

@grave sparrow why is string not found

#

yes

#

how to fix the dump and hook

#

wym by instance of

hasty ruin
#

maybe clean this up + pin?

#

other pins can also be unnecessary if you know where to look for the right docs

#

but new devs prob dont know really about the objc runtime and what it can do

#

nice formatting

primal perch
#

yea thats the mid way though

#

(rawInstance + rand() % 240)

faint timber
#

@grave sparrow got it working but just says obj is the original class not a new object

glacial matrix
faint timber
#

please swift hooking support in logos 🙏

#

what I mean is accessing swift members from the module class

#

current methods are hacky to say the least

glacial matrix
#

You can try Orion instead?

faint timber
#

I don't need to write swift because I don't know it anyway

#

need to hook swift from theos(so objc)

#

hooking works fine but accessing data is tricky

indigo peak
#

Orion has full swift hooking support?

silver rampart
#

if u dont wanna use orion just avoid swift 👍

tepid olive
ocean raptor
#

@grave sparrow want to work on a project with me?

#

It's a very simple project

#

Involving FreeBSD

#

Basically

#

Codesigning on FreeBSD

hard cloak
#

Not sure if this would be helpful in creating a fix for Activator Tweak for iOS 16 on palera1n-c (since in the past someone have created ActivatorFixiOS14), but I will leave this here for those who might want to come up with a solution since the Dev of Activator is MIA and tweak is not open-sourced.

hard cloak
#

It may have seemed that rocketbootstrap was the issue. So I went ahead and installed the rocketbootstrap from havoc instead along with libhooker-shim, and the following error was generated. I will leave this here.

ocean raptor
#

One of the FreeBSD devs was donated an m1 laptop to add support

#

But

#

It has a Japanese keyboard

#

And he needs US

#

So he can't even type his password correctly

#

Or something

#

Kyle Evans

cloud yacht
#

what about USB keyboards?

peak hornet
#

Hey, I have been spending days doing my best to reverse engineer this IOS app for my door lock. It supports Google Home but I just want to use Siri with it. I have a plan to add a URL scheme and from that handler call into existing code that trigger my lock to lock or unlock.
So far I actually have that URL scheme aspect working (created a Dylib that adds a method to the AppDelege for handleURL).
But from there I am stuck because the app is written in Swift.

My only decent plan left is to try and write another DyLib in Swift or ObjC or some combination that maybe hooks or adds methods to expose the objects I need from the AppDelegate application:handleOpenURL: method. (Any ideas welcome, please!!!!)

I have exhausted all ideas with tools like LLDB and Frida. Using Frida's heap search I can get an instance of these objects I should be able to lock/unlock the door with but because they are Swift objects I cannot inspect/access their properties and methods.

I have even considered trying to just send a touch event to the middle of the screen from application:handleOpenURL: but couldn't figure out how to do that.

Does anyone have any ideas I haven't thought of by chance? Thank u so much!

ocean raptor
#

It's not his until FreeBSD works on it so he can't

primal perch
ocean raptor
marsh gulch
primal perch
#

mtjailed probably is

restive ether
#

perhaps

marsh gulch
lime pivot
#

that’s assuming it talks over HTTP, which is true most of the time for smart home stuff. it may use some other proprietary protocol while on wifi

peak hornet
#

@lime pivot Thank you, I was thinking that would be a good idea too. Just wasn't sure which path to go down. I think I got excited about adding my own handleURL method to the app delegate and wanted to try to hook into the existing app.
But I can just figure out their auth process

The actual API/request to lock/unlock is simple
But they are using AWS Cognito ( https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html )which refreshes a JWT really often. So I need to figure that out.

The Kwikset app supports google home but not siri and has no other way to integrate. I thought it would be cool to be able to have my door unlocked by siri or by using iOS shortcuts.

I think you are right and that would probably be a way better use of time. I already have been dumping the HTTPS requests/responses using Charlies Proxy and think I am close with that route. Thank you so much!

ocean raptor
#

Dont inject into launchd

#

launchd handles so much stuff I would not at all be surprised if it mounts disks

gaunt helm
lime pivot
#

I'm assuming that's their goal, but they need to reverse the protocol first

acoustic imp
vivid dew
#

not funny. didn't laugh

hasty ruin
#

That’s the type of joke I’d expect from someone named Thomas

hasty ruin
blazing vault
#

is it even possible to make a char * const VLA in C

ocean raptor
#

Use char** and malloc like a normal person

faint timber
#

Im gonna murder the mf who made this default behavior

#

show your dylib

#

you mean the best discord server

faint timber
lament mica
#

does anyone know if Apple changed anything for app notarization in Ventura?

blazing vault
#

With CoreTrust you can insert a dylib into launchd and sign. I'm not that experienced with tweak injection or fishhook so this is prob not the best, but would this successfully inject dylibs into processes if compiled and injected into launchd or am i being a fucking idiot (i don't have a iOS 14.X device to test this out on) https://github.com/0xilis/Subsidiary/blob/main/posix_spawn_hook.m

GitHub

messing around. Contribute to 0xilis/Subsidiary development by creating an account on GitHub.

#

it (should) hook posix_spawn and posix_spawnp and add DYLD_INSERT_LIBRARIES= environment variable, or modify it if it's already there to include the dylib

tepid olive
#

you also need a codesign bypass

blazing vault
#

the coretrust bug

#

isn't that a codesign bypass

#

or do you mean something else by that

tepid olive
#

springboard for example will have a trust level too high to allow injection

#

also it won’t have get-task-allow

marsh gulch
#

Just noticed i forgot the /s

ocean raptor
#

Waiting on my tax return so I can buy Lego

faint timber
#

gonna go to the mall next week which one should I get

ocean raptor
#

I just bought the captain Rex helmet

faint timber
#

why does the lego store smell so good

ocean raptor
#

There are no Lego store near me 😭

#

Nearest one is in Boca Raton 🤢

#

Rat city

primal perch
faint timber
#

arenas do this kinda thing too

primal perch
#

i have big lego fan friends that have considered getting a part time job at lego just to buy a shit ton of lego with the discount then quit

faint timber
#

lmao

steady nest
primal perch
#

yh

#

The best thing about working for the Lego Brand Retail store is you can buy LEGO at a good discount price, for the first 90 days is 30% off, and after 90 days is 50% off.

ocean raptor
hasty ruin
#

hey @lime pivot, Zebra seems to prioritise iphoneos-arm packages when trying to installing a package available for both iphoneos-arm/iphoneos-arm64

example: trying to download Nexus from havoc gives the "non-rootless tweak on rootless jb" error, even though theres an iphoneos-arm64 build of nexus on havoc

(this is on rootless palera1n)

primal perch
#

shameless plug

hasty ruin
hasty ruin
restive ether
#

nexus is now free

hasty ruin
#

oh

lime pivot
#

that should have been working with Zebra 1.1.29/1.1.30

#

what does dpkg --print-architecture give you?

hasty ruin
lime pivot
#

the value of that is what Zebra will put the most weight to when searching for a suitable package

hasty ruin
lime pivot
#

let me see…

hasty ruin
#

omg it works!! apt better than zebra

primal perch
#

apt better than 🦓

lime pivot
#

that's like saying x86 is better than windows fr

hasty ruin
primal perch
#

x86 is better than windows

primal perch
#

yea 32 bit arm is

lime pivot
#

wake up babe, new ld64

#

cc @nimble parcel or @ocean raptor or whoever wants to be a wonderful person and compile linux/ios builds of this

steady nest
#

@ocean raptor trol

lime pivot
#

and you're going to release it on chariz

ocean raptor
#

Got latest tapi building as an llvm project

#

With swift 5.7 tree

#
-DLLVM_EXTERNAL_PROJECTS="tapi" -DLLVM_EXTERNAL_TAPI_SOURCE_DIR="/path/to/tapi"
ocean raptor
#

What do I use to compile ld64 though

#

Cmake or autotools

#

Or meson

#

Cause no chance in hell am I doing Xcode

lime pivot
#

lmao

#

whatever works for you honestly

ocean raptor
#

I'm gonna do meson

#

It seems the easiest

#

ld64 as llvm sub project??

lime pivot
#

I can't wait for the day it is just part of llvm

#

but I'm not holding my breath for it

ocean raptor
#

what we want is ld64.lld to be good

#

I've been working on llvm-vtool too

#

Ironically

peak hornet
#

So it seems like swift runtime modification isn’t something that is really supported or made easy by the language. I see Frida had some useful looking swift bridge implemented a few years ago but now this crashes. Is the swift ABI just a moving target or something or is it something else that makes things like swift introspection and method hooking unavailable? I know obj c has functionally built in which makes a lot of this easier right? I can’t find a ton of example resources for hooking into Swift without recompiling an app from source. I was hoping to hook Swift with an injected dylib. I am looking at a few different ideas but figured you would all know what the best use of time is there. Thank you!

#

Btw @lime pivot still trying to reproduce the auth flow the app uses myself. AWS cognition doesn’t have great documentation for where I am starting from and the solutions I have tried have been out of date I believe, the protocol has changed and it’s rejecting one of my requests. This will probably be the right way to go like you said

#

The app has google assistant integration btw so maybe I could use that service that was mentioned earlier too

blazing vault
#

since tmk isn't pmap_cs preventing that, and A11- don't have PPL

#

(not referring to get-task-allow, only referring to TL)

steady nest
peak hornet
#

@grave sparrow Thank you so much for the breakdown. That makes sense.
I need to get better with lldb and read up on the swift ABI it looks like. It would be awesome to get https://github.com/frida/frida-swift-bridge working. Might try to see what is going on there.
I have been wondering if I can do something like dump memory from this running process. Copy out the bytes for a few Swift objects.
Then write a Frida script to malloc memory for these objects, copy the same data back in to recreate the objects. Adjusting any pointers if necessary. Then manually setup registers following the Swift ABI and jump to the start of the swift function.
Sounds a little crazy now that I write it out though..

GitHub

Frida's finally getting Swifty. Contribute to frida/frida-swift-bridge development by creating an account on GitHub.

peak hornet
#

Actually this is working if you just ignore this ContextDescriptorKind that is in a swift concurrency lib and make a few other changes.
The apple/swift repo here has the same enum that this frida swift bridge does: https://github.com/apple/swift/blob/main/include/swift/ABI/MetadataValues.h#L1491
But its finding:

Unhandled context descriptor kind: 8
in: libswift_Concurrency.dylib

8 isnt actually listed in that Apple Swift enum I listed. Is Swift changing so fast that apples own swift repos are out of date with what xcode produces?

GitHub

The Swift Programming Language. Contribute to apple/swift development by creating an account on GitHub.

#

Everything else parsed correctly too.. so I don't think it just read a value from the wrong location..

marsh gulch
#

when i try to compile the xnu kernel i get these errors

#

i run this command make KERNEL_CONFIGS=DEVELOPMENT ARCH_CONFIGS=arm64

#

does anyone know a fix for that?

peak hornet
#

Last time I built the XNU kernel I was building for Mac OS but I didn't need anything that wasnt already in the SDK. Are you following any guides?
If I remember right there was a decent amount of work that went into preparing the source for building after pulling it down

marsh gulch
#

oh no i am not following any guide

#

i used the instructions from github

#

after it failed the first time, i asked chatgpt

#

but nothing useful

marsh gulch
#

can i use macports to install it?

#

as its listed on their website

peak hornet
#

Id have to look at their build script for it. Can u send a link?

marsh gulch
peak hornet
marsh gulch
#

the installation fails anyways

marsh gulch
peak hornet
#

Yup

#

I just checked

#

Download that source code, unzip it, open up the xcode project

#

Then select ctfconvert as a target and build it

marsh gulch
#

ok ill try that

peak hornet
#

There are 4 dependent libraries actually.. it might take some work to get it to go this route

marsh gulch
#

it tells me unable to find sdk 'macosx.internal'

peak hornet
#

Yeah let me poke around

#

If you goto each of those 4 targets and set the base SDK to a valid one it should build:

#

Ur gonna have to goto the signing tab and set that up too prob

#

Yeah I was just able to build it

marsh gulch
#

well seems like this is fixed it, gotta do this for some other ones that fail with the same error

#

yay build succeded

#

so what exactly do i do now?

peak hornet
#

Nice.
When I try stuff like this, half the time I end up in a rabbit hole of finding tooling and libs like this. hope it works out for u

#

Put that binary and probably the libraries it created in ur path

marsh gulch
#

where exactly are these?

peak hornet
#

Hit Command + ,

#

Goto locations tab

#

There will be a dtrace folder in ur Derived Data path with the build in there

#

XCode used to have a products tab in the fileview but things have changed since I did much in xcode

#

Oh there it is, U can just use that and itll be easier

marsh gulch
#

ah i found it

peak hornet
#

Maybe put the .a files in ur /usr/local/lib or some other /lib dir that clang looks at

#

and the bin somewhere appropriate

marsh gulch
#

xcode told me build succeded but it failed anyways

#

but now it worked

#

its highlighted in red now and i cant really interact with it

#

i can press show in finder but it doesnt do anything

peak hornet
#

Something when wrong with the build then

#

After I setup signing and set the base SDK for ctfconvert and the 3 libraries it required it built fine

#

I can send u a zip but ur gonna run into way more issues then this trying to build a kernel

#

I have no idea how different the XNU kernel is from iOS to MacOS

marsh gulch
#

ok ill just try this script

peak hornet
#

If you look at that link though ull see they are pulling down dtrace too and building all this

#

Cool yeah its a good starting point. Whatr u trying to do with a kernel image?

ocean raptor
marsh gulch
restive ether
ocean raptor
ocean raptor
restive ether
ocean raptor
#

Need your opinion

marsh gulch
#

thanks for all your help @peak hornet

restive ether
ocean raptor
peak hornet
peak hornet
# marsh gulch thanks for all your help <@696293437649059891>

There are also more gists on github that are prob more up to date (more recent XNU sources) if u search. I dont think apple releases the XNU kernel code that is used in recent iOS versions btw. U'll be fuzzing against older versions of iOS. And thats if the XNU kernel ios uses is from the same source as OSX. I think it was but cant remember

marsh gulch
peak hornet
restive ether
#

some minor restrictions on ios

ocean raptor
#

Meson or cmake and attach it to llvm trolllaugh

restive ether
#

like a MAN

ocean raptor
#

NO

blazing vault
#

does ios 16 require some new entitlement to use posix_spawnp in an app? from what i hear some ios 16 users are having trouble with the respring button for badger

ocean raptor
blazing vault
#

wtf

#

worked for me on ios 13

#

...

ocean raptor
#

It's called the sandbox

blazing vault
#

yeah, the app is unsandboxed

ocean raptor
#

Rootless?

indigo peak
faint timber
#

@indigo peak doesn't matter clutch already worked without kernel stuff

indigo peak
#

it only works with apps that dont have app extensions

faint timber
#

extensions aren't usually encrypted

#

so you manually copy the app and replace the main binary with decrypted

#

remove SC_Info, then its good to go

indigo peak
#

hm

#

interesting

vivid dew
#

every well meaning build system eventually comes back to running arbitrary shell scripts

primal perch
#

fr tho

#

"it's all build scripts?"

peak hornet
#

@lime pivot hey u were the one saying to go and just reverse the http/s requests right?
I am pretty stoked I got that all figured out and it’s working great. Thanks for the good advice. There are zero examples, online of using AWS Cognito directly. I wonder if I share the code and blog a little about it how much trouble I would get in.

#

I’m gonna inject my dylib and use a info plist modification to make it handle a url scheme. Already tested th at and it works. Just gotta make the request from the app.. or I’ll prob just write a shortcut to do it

#

I really wish Frida had swift support or there was tooling out there for runtime introspection and hooking and all. This would have been a lot more fun that way. Still can’t figure out a good way to hook into or call methods on a swift object.. prob gonna mess with some arm assembly and see what I can do u less anyone knows of some better tooling. Just to learn

gentle grove
#

vim doesnt understand llvm IR

lime pivot
#

I think you’d be fine if you make it general, about any app using Cognito not just this specific one

#

@hasty ruin why

hasty ruin
#

bored

ocean raptor
gentle grove
#

no way

#

im totally gonna use this so often after i add it

#

oh god its cloning the entireity of llvm into my plug dir

#

i think its shallow though

ocean raptor
#

why would you do that androidskull

gentle grove
#

i gave up because vim-plug kept hanging when cloning it

#

even though it was a shallow clone

ocean raptor
#

Just copy the files to .vim or .local/share/nvim manually

gentle grove
#

lazy

silver rampart
#

do you have the file i sent you like however long ago

silver rampart
#

i have a really fucking dumb idea for how to do it this might work one sec

wheat grotto
#

Can someone ELI5 what Single Page App and SSR/SSG is ?

gentle grove
#

static site generator is a program generates your website by generating a bunch of static files that you can just throw on a webserver

#

server side rendering is the server generates the page on the fly

cloud sundial
#

Think of it like the behavior of a blog vs a social media platform

#

The former can be static HTML files, while the latter requires some backend processing so that the content is always different

rose wren
#

You all are NERDS

gentle grove
topaz yew
#

dear lord

topaz yew
cloud sundial
cloud sundial
#

Or that. Why customize user experience when all users can see the same thing

topaz yew
#

@tepid olive is MSFindSymbol still borked on mac arm64e

topaz yew
#

its crashing

#

the code is long gone though i found something else

#

although i do have to try it again

topaz yew
#

anyway im trying to hook the Appkit C function _NSDrawMenuBarBackground

topaz yew
#

anyone know how?

topaz yew
#

the problem is its a private function

topaz yew
#

MSFindSymbol crashes tho

#

on ellekit mac anyway

#

thats why i asked @tepid olive

tepid olive
topaz yew
#

Appkit C function _NSDrawMenuBarBackground, MacOS Ventura 13.1

#

M1 if that matters

#

found it inside of hopper and figured id give it a go (im trying to change the menubar background image)

#

idk what controls the menubar drawing

#

i just found that function

#

but im pretty sure its it

hasty ruin
#

Good

tepid olive
#

Show code

topaz yew
#

uh

#

yeah

tepid olive
topaz yew
#

everything

#

well

#

im hooking the gui processes

#

its a injector i kinda cobbled together

tepid olive
#

why don't you use the ellekit injector?

#

it works on mac

topaz yew
tepid olive
#

lol okay

topaz yew
#

no uh

#

not like that

#

i dont wanna sell ellekit

tepid olive
#

yeah i get it

#

it's chile

#

have fun

#

but yeah this symbol is found on my machine

#

M2, 13.1

topaz yew
#

tepid olive
#

send the crash log and your symbol loading code

topaz yew
#

im not injected into the dock just the windows

#

uh