#development

1 messages · Page 35 of 1

faint timber
#

I’m one license violation away from breaking bad

blazing vault
#

it's been more than 4 hours webkit is still compiling does it usually take this long

blazing vault
#

i was compiling for the wronf arch the whole time im so pissed

#

uh

#

any tips on how to compile webkit faster

#

im on macos btw

restive ether
#

mold

primal perch
#

mold

faint timber
#

what's the best alternative to get shasum's in c++ instead of openssl

primal perch
#

small header only library

#

theres dozens on github

faint timber
#

was thinking that

timid furnace
#

I know there's compile time header only hashing libs too

#

Didn't work for my use case because kernelspace C++ doesn't have a lot of the normal C++ stdlib, but it should work for userspace just fine

faint timber
#

thoughts

primal perch
#

it's one of the libraries ever

#

if it does what you want then sure

faint timber
primal perch
#

it's one of the libraries ever

faint timber
#

what is that supposed to mean

restive ether
#

it's certainly a library of a particular task

pearl sail
#

same reason your mother gives head for $5

primal perch
#

who’s you people

pearl sail
#

racism by Capt

pearl sail
#

Average Spirit flight moment

#

$62

next wadi
#

sixty tew dara

velvet path
#

@tepid olive sorry for the ping but very important question, does ellekit call the usleep function? (There's a reason I ask)

tepid olive
#

why

velvet path
tepid olive
#

that makes no sense

velvet path
#

because palera1n doesn't nuke protobox

tepid olive
#

?

#

if it’s being called it’s because of something in the shared cache

velvet path
#

I'm referring to the 16.2+ daemon issues Substitute has that ellekit doesn't

tepid olive
#

according to dora

#

but stock ios did too lol

#

usleep being an issue is strange

#

what the hell is a protobox

primal perch
#

iOS 16

native dune
velvet path
native dune
#

how would protobox be the culprit if it only happens 16.2+

velvet path
#

increased sandbox restrictions?

tepid olive
grim sparrow
#

@ocean raptor have you made any progress in patching the core bootstrap for use on arm64e?

ocean raptor
grim sparrow
#

By you I mean Procursus peeps

#

And you’re in charge of that!

ocean raptor
grim sparrow
#

For Theos users all that will change for you is having to add the flag ROOTLESS=1 to your compile command

#

Theos will handle the rest for you

velvet path
grim sparrow
#

I can pin it

ocean raptor
#

XinaA15 will likely gain support for iphoneos-arm64 packages
sure buddy

fleet shell
#

is it possible to check the URL parameters an application was launched with from inside main.m/main.swift?

grim sparrow
velvet path
grim sparrow
#

If you develop a tweak or package that supports XinaA15, read this

While the details are being worked on still, XinaA15 will likely gain support for iphoneos-arm64 packages in the future. Additionally, the current rootless theos PR breaks support for building iphoneos-arm packages with support for XinaA15

Moving forward, once the rootless theos PR is merged and once XinaA15 gains iphoneos-arm64 support, you’ll need to start building your tweaks to support a proper rootless setup with the iphoneos-arm64 architecture, or they will not work with XinaA15. To do this just append the flag ROOTLESS=1 to your Theos command, it will handle the rest for you.

(Note: Packages built this way should also support palera1n rootless when that ends up happening)

Things that need to happen first:

  • Repos add support for iphoneos-arm64. This should be very simple if you’re using apt-utils, just set your control to iphoneos-arm iphoneos-arm64
  • Xina finishes his implementation of iphoneos-arm64
  • Theos support is finalised and merged. It can currently be tested by cloning my fork of both Theos/Theos and Theos/Lib. If you would like to install iphoneos-arm64 packages on Xina already just run the command dpkg —add-architecture iphoneos-arm64 and use make package install.

Note:
The current release of Sileo is not compatible with iphoneos-arm64 on Xina due to the patches required for the jailbreak, do not attempt to install new arch packages yet. I will update this message when this has been resolved.

Changes to make to tweaks:
@naive kraken has published a gist to help simplify the process of supporting both architecture’s: https://gist.github.com/opa334/b14fa4a593bbb79f025cda6113e8b81b

Gist

Macros to support rootless jailbreaks in your packages - rootless.h

indigo peak
#

how does the maps app have no objc functions 😭
its all just a bunch of subs

grim sparrow
#

@velvet path I stole and claimed your message

velvet path
#

that’s fine

velvet path
grim sparrow
#

True!

ocean raptor
#

no

ocean raptor
#

Also, enabling cloudflare proxy created a redirect loop somehow androidskull

gentle grove
#

what's it redirecting to

#

It works for me

ocean raptor
gentle grove
#

is it cache

indigo peak
#

how feasible is a location spoofer using DirtyCow & the sandbox escape if these 5 binaries have the location simulation entitlement

timid furnace
#

ROOTLESS=1 does not help much if you have helper binaries

#

you would still need either compile time path hardcoding or runtime testing

#

same thing with install scripts

pearl sail
#

TLDR: Don’t support XinaA15 if it doesn’t work as needed troll

lime pivot
#

I might change it to like TARGET_ROOTLESS or something

#

or TARGET = iosrootless

#

not sure what feels more correct

timid furnace
lime pivot
#

I think you're pointing out the obvious

timid furnace
#

although to be fair i don't think the people who are actually reading this channel need to be told that

velvet path
#

when something actually happens a slightly different thing will be put out in a more public manner in a sense

lime pivot
#

it needs dev wiki documentation for sure

timid furnace
#

@next wadi oh yea can you add xmi support

#

i want my ifdefs

#

with hooks

lime pivot
#

god no

timid furnace
lime pivot
#

did I merge that?

timid furnace
#

no that's on my fork

lime pivot
#

ok I guess not

ocean raptor
#

What's xmi

lime pivot
#

bribe me

timid furnace
lime pivot
#

give me your lunch money

velvet path
#

what’s xmi

timid furnace
#

^

ocean raptor
#

If you add rootless to theos and chariz

ocean raptor
velvet path
lime pivot
#

it runs the clang preprocessor before Logos, so you can do things like put Logos directives in #defines, or #import to merge multiple files into one

velvet path
#

it’s already added, just no way to upload debs

lime pivot
next wadi
timid furnace
#

scroll up

lime pivot
#

all I did was type iphoneos-arm64 into the Release file template and rebuild the repo

lime pivot
#

yeah, that

#

also probably don't leak DMs that's kinda not cool

velvet path
#

sorry

velvet path
lime pivot
#

it's ok, that one is fine

#

just can be unexpected

#

I try not to say anything in private I wouldn't have said in public anyway

#

you're not the one who posted a screenshot of a message bro lmao

velvet path
#

here’s my stance about dms by the way: they should be private, but at the same time if you say something publicly and you said the exact same thing privately (but potentially better explained) then it’s not the end of the world if something is shared

lime pivot
#

thank you

ocean raptor
#

What pussy does to a mfer

#

Bro thinks it's Sunday

lime pivot
#

we got him

#

me when I tell people off for leaking DMs and then I proceed to leak DMs

ocean raptor
#

Anyways

#

Which repo lets me sell iphoneos-arm64 packages

#

I will be moving quickactions 2 (paid edition) to that repo

#

Also

#

How do I meet girls 😔

ocean raptor
#

Thinking of removing chariz-keyring, packix-keyring, and havoc-keyring from the bootstrap on rootless

velvet path
#

what would the benefit of that be

tepid olive
#

im going to post a (probably uninformed) thought i had about apple devices and data security

#

at least in theory, passcode bypasses and data extraction from a locked iphone in bfu (before first unlock mode, where it asks for your passcode) and for which you don't know the passcode should be, or at least could be made impossible if the device never stored the encryption keys used to decrypt the user data and apps. however, the only way data extraction could exist is if those encryption keys were stored on the device

my thought is that apple might either be too ignorant, complacent, and/or incompetent to realize trusting their own hardware is dumb when its been shown time and time again that they can't trust their hardware to keep data secure, or they're intentionally keeping the possibility of a bypass existing there so the government and law enforcement doesn't get angry and try to make apple glow

its more likely the former is the case, because "don't attribute things to malice that can be explained by incompetence" and all that, but its still interesting to think about

faint timber
#

c++ tatsu api

faint timber
#

next quest is to find an async http requests lib for c++

faint stag
#

could also just use libevent directly but this does seem nice

faint stag
#

but the top of the readme

#

lel

faint timber
#

lol

faint stag
#

and uhh

#

issues

#

the issues are a bit concerning

faint timber
#

who tf are these mf's hiring? middle school computer lab students

faint stag
#

they recommend libcurl

#

lmaoo

faint timber
#

I'm not using anything that uses openssl

faint stag
#

yeah i just found it funny that it's leaking

#

but just looking around at everything open, you might find something that you'd run into

faint timber
#

unfortunate hv doesn't seem to implement schannel

#

I kinda want to use native for each os

faint stag
#

dev encountered a skill issue

faint timber
#
  1. uses native ssl(Win: schannel, Linux openssl, Darwin: Security/CommonCrypto)
  2. async
  3. non-bloat
    rare criteria 😦
faint stag
#

yeah but we need a client here so that's even less

#

ixwebsocket seems like the best

ocean raptor
faint stag
primal perch
#

simply use threading primitives

faint timber
timid furnace
#

which

#

i just deleted dhinakg/kdk-mirror, that was for testing

#

the one on dortania, well let's just say that's on a separate repo for a reason

#

i mean we need the kdk to rebuild KC and apple killed the "pretend to be Xcode and get free download token" method

#

thanks apple

velvet path
#

or am I just completely forgetting the KDK process I did like a week ago on my Mid 2011 iMac 21.5"

timid furnace
#

but on the other hand, i see a bunch of code on github for it

indigo peak
#

what is a sandbox extension, like can any other types of entitlements be used that way

velvet path
timid furnace
indigo peak
#

why has opa done everything

faint timber
#

@faint stag @ocean raptor
we have a winner winner chicken dinner
IXWebSockets async https requests

faint stag
#

lets gooo

faint timber
#

can pass it custom certs

#

so I can do an oscheck on linux

#

hard code for each distro

faint timber
noble zodiac
#

@naive kraken I have a question. In you're code (TSUtil.h) , you specify this :
extern void killall(NSString* processName, BOOL softly);
Can it be used to kill a daemon ? I saw it was used for SpringBoard

naive kraken
noble zodiac
naive kraken
naive kraken
# noble zodiac How can I ?

get some entitlement and call some reboot3 function or something with some userspace flag, don't remember it exactly

#

launchctl source should have it

noble zodiac
noble zodiac
naive kraken
grim sparrow
#

thats a lot of entitlements lmao

noble zodiac
noble zodiac
naive kraken
noble zodiac
#

it's mean to be for trollstore

grim sparrow
#

oh

#

yeah that makes sense

noble zodiac
grim sparrow
#

You still need something iirc

naive kraken
#

cranehelperd has only

grim sparrow
#

im pretty sure its platform-application

naive kraken
#
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>platform-application</key>
    <true/>
    <key>com.apple.private.security.container-required</key>
    <false/>
    <key>task_for_pid-allow</key>
    <true/>
    <key>com.apple.private.security.no-container</key>
    <true/>
    <key>com.apple.multitasking.termination</key>
    <true/>
    <key>com.apple.security.exception.mach-lookup.global-name</key>
    <array>
        <string>jailbreakd</string>
        <string>com.apple.mobilegestalt.xpc</string>
        <string>com.apple.cfprefsd.daemon</string>
        <string>com.apple.containermanagerd</string>
        <string>com.apple.securityd</string>
        <string>com.apple.pluginkit.pkd</string>
        <string>com.apple.lsd.xpc</string>
        <string>com.apple.accountsd.accountmanager</string>
        <string>com.apple.apsd</string>
    </array>
</dict>
</plist>
#

and it's enough

#

yeah probably platform application

#

com.apple.multitasking.termination is only for backboardd API

noble zodiac
# naive kraken yeah probably platform application

I have another question ;
When I delete ScreenTimeAgent.plist with my app and FileManager.default, it delete the file but when rebooting nothing is changed (I did not killed anything in my app), the file respawn.
In Filza, it works.
What thing do I need ?

noble zodiac
naive kraken
#

no idea

noble zodiac
noble zodiac
naive kraken
#

yes

#

but

noble zodiac
#

And launchctl have the entitlement to restart

naive kraken
#

don't copy it like you did with all other stuff you did

#

you already have platform-application

noble zodiac
#

oky

indigo peak
#

so couldn't you do that for any entitlement?
or am i missing the whole idea

#

like can you find a proc that has X entitlement and just do the funny code to get that extension

vivid dew
#

no

#

fs or mach extensions only

indigo peak
#

can you achieve what this does with the sandbox extension thingy

grim sparrow
#

what what

indigo peak
#

you said you need the AppleStockholmControlUserClient entitlement to do something w iokit

#

idk what tho

grim sparrow
#

mhm

indigo peak
#

could the sandbox extension allow you to do your thing

grim sparrow
#

sandbox extension?

indigo peak
#

Give yourself permission to open an IOKit user client or registry entry otherwise not permitted by sandbox (See sandbox_extension_issue_iokit_registry_entry_class, sandbox_extension_issue_iokit_user_client_class)

grim sparrow
#

yes

#

say I had that I'm pretty sure I could do all of Aemulo

grim sparrow
indigo peak
#

iOS 15-16.1.2

grim sparrow
#

hold on

#

lemme try this

indigo peak
#

well i was thinking ab a location changer

grim sparrow
#

yeah i dont think you can give an iokit client with this

indigo peak
#

but that seems out the door lmao

#

i tried

#

oh well

restive ether
indigo peak
#

you need entitlements

restive ether
#

be the copy paste dev you were born to be

indigo peak
#

you need
com.apple.locationd.simulation or something

#

@grim sparrow could you give me an example of a block of code id need to run to test to see if i can give myself a client

grim sparrow
#

dm

exotic saffron
#

Thank you

grim sparrow
#

Ideally, none

restive ether
#

0

indigo peak
#

@naive kraken
could you give me more insight into sandbox_extension_issue_iokit_registry_entry_class_to_process and/or sandbox_extension_issue_iokit_registry_entry_class
like; how can i use them for doing the same tasks that

 <key>com.apple.security.iokit-user-client-class</key>
 <array>
      <string>AppleStockholmControlUserClient</string>
 </array>

allows for

#

that was prob a really bad/stupid question

#

but

#

anything helps

#

and you seem to be the only person who publicly knows anything ab this

indigo peak
#

remaking ellekit in pure asm /s

#

x86 asm

tepid olive
#

there is zero chance you can find a JOP target to use these functions with MacDirtyCow

timid furnace
#

oh you beat me to it

#

although tbf i wasn't gonna be that detailed anyway

#

anyways
let me guess, you want to try to use this with MDC

indigo peak
#

4 binaries have com.apple.private.stockholm.allow which i think is what i want

- Applications/HomeUIService.app/HomeUIService
- usr/libexec/nfcd
- usr/libexec/nfrestore_service
- usr/libexec/seld```
timid furnace
#

mac developer conference

indigo peak
#

and only 1 has com.apple.private.stockholm.remoteservice
- usr/libexec/nfrestore_service

#

idk how tho

#

bro

#

stock

#

iOS 16.1 iP13

#

well how does the sandbox extension thing do it

#

like it doesnt load a tweak/binary

next wadi
#

properly sign dn

#

BOOMER

indigo peak
#

no?

next wadi
#

uhhhh

#

@grave sparrow

indigo peak
#

com.apple.private.stockholm.allow, com.apple.private.stockholm.remoteservice are 2 entitlements that seem related to what we're talking about
com.apple.private.stockholm.allow:

usr/libexec/nfcd
usr/libexec/nfrestore_service
usr/libexec/seld```

com.apple.private.stockholm.remoteservice:
`usr/libexec/nfrestore_service
`
#

i though i had to

#

i mean, cant i just hijack tccd then

#

since its unsandboxed

#

and thats what is used for the sandbox extension

timid furnace
#

give me tccd from 16.1

indigo peak
#

1 sec

#

eat a dick

#

😂

timid furnace
#

i don't think there's going to be a realistic difference between this and the sim binary but i'll double check

pearl sail
#

those are the same levels

indigo peak
#

i was sending capt racial slurs

next wadi
#

@grave sparrow

next wadi
indigo peak
timid furnace
next wadi
#

ok

dire flume
#

Slur dn

indigo peak
next wadi
#

I aint readin allat 💯💯‼️‼️

timid furnace
#

there's no sandbox_extension_issue_iokit_user_client_class

#

so you can't hijack tccd to give you an sandbox extension for a userclient

#

unless sandbox_extension_issue_generic saves you but idk what that is

#

yes these are imports

#

how are you going to call it

#

the way zhuowei's POC works is that it basically hijacks CFStrings in __DATA_CONST

#

you can't make use of that when the target function isn't even called

#

honestly there's only one solution here

indigo peak
#

is APP_SANDBOX_IOKIT_CLIENT === const char APP_SANDBOX_IOKIT_CLIENT[] = "com.apple.app-sandbox.iokit-client";

timid furnace
#

get hired by apple

#

write the code to do it

#

get it signed

#

and then leak it

#

ez

indigo peak
#

well tthats wehre i found it

timid furnace
indigo peak
#

@grave sparrow @timid furnace yep <Notice>: [test] com.apple.app-sandbox.iokit-client

timid furnace
#

killing backboardd wont restart daemons right

next wadi
#

on GOD

timid furnace
#

ok let's hope xpc_crasher works on my target daemon

#

do your homework mf

#

yea we just finished box plots so uh

#

my first stat assignment is due on friday

hasty ruin
timid furnace
#

lmao

#

btw

#

if i make a useful jailed app

#

would you be willing to host it

hasty ruin
#

sure

timid furnace
#

nice

#

i'll get back to you when i finish (in 3 years)

hasty ruin
hasty ruin
timid furnace
#

my plans have been foiled woeis

#

sandbox prevents read

tepid olive
#

just unsandbox

cloud yacht
#

Just read in the sandbox

hasty ruin
#

just wear glasses

#

🤓

tepid olive
#

impossible

#

but okay

#

you don’t know anything about ios bro

#

how are you gonna link a random dylib in a daemon

#

no you’re not

#

this is the exact issue we have rn with fugu

#

do you have any idea how codesigning works androidskull

timid furnace
tepid olive
#

no you don’t

tepid olive
#

cuz u have a sandbox rw escape

timid furnace
tepid olive
#

u can use it

#

okay

#

Slur

timid furnace
#

good, the daemon crashed

#

let's see if my code worked

#

HAHA IT WORKED

#

overwrote cfstring

#

or well

#

made cfstring point to a different location in the binary

hasty ruin
#

you dont know what tipa is?

timid furnace
#

and overwrite empty place with new stuff

hasty ruin
#

its just ipa

#

but different

#

to stop ios sometimes trying to install

#

and trollstore is registered to auto open tipa files

tepid olive
#

that’s why it’s the best iOS 15 jailbreak

#

LOL

#

i’m so right

indigo peak
#

so would this work if my app consumes the sandbox extension first and THEN i try to give myself the char *extension after

indigo peak
#

like could i generate the extension w the sandbox extension

tepid olive
#

fugu15 + ellekit

#

all swift jailbreak

timid furnace
#

i have yet to start 💀

indigo peak
#

so if in my app i consume the sandbox extension

#

right

hasty ruin
#

you wont

indigo peak
#

can i generate the iokit extension inside my app purely

#

or do i have to do xpc shit

#

hm

#

so id have to find a process that has the function symbol

timid furnace
#

for fucks sake

tepid olive
#

If you’re smart enough you can predict the dyld layout and do it from any process

timid furnace
#

my lightning cable just broke

#

stupid cable

tepid olive
#

But ideally you’d find a process that calls that function

indigo peak
indigo peak
#

Ok.

tepid olive
#

Use ellekit.findSymbol

timid furnace
#

nvm my usb controller shit itself

tepid olive
#

Then use memmem to find a symbol ref

#

yeah exactly

#

wait actually you can just use dlsym in your own process yeah

indigo peak
#

so yes or no

tepid olive
#

what are the functions’s arguments

indigo peak
#

well idk which function i need exaclty

timid furnace
#

now the question is how are you getting your victim executable to run that function

tepid olive
#

ok so if you target nfcd

#

this will be very hard

#

good luck

#

i doubt its impossible

#

but borderline impossible

indigo peak
#

nothing is impossible

#

🫠

timid furnace
#

zhuowei's approach works because you can fuck with CFStrings and the argument passed to sandbox_extension_issue_file was [NSString stringWithFormat] or something like that

tepid olive
#

someone send those nfcd binaries you mentioned

timid furnace
#

i doubt you'll find another binary doing the same with sandbox_extension_issue_iokit_user_client_class

indigo peak
cloud yacht
tepid olive
#

Impossible

indigo peak
#

why

tepid olive
#

That string isn't there

#

And it doesn't issue tokens

#

Wait

indigo peak
#

im waiting

tepid olive
#

uhhhhhh

timid furnace
#

ig your only hope if you want to use that API is seeing if a framework uses it

indigo peak
#

@timid furnace

#

💀

#

PrivateFrameworks & Frameworks

timid furnace
#

🅱️uddy

#

they're almost all in the dyld cache

#

use like ipsw or something to check for xrefs

indigo peak
#

trust:
iPhone:/ root# sudo grep -rF sandbox_extension_issue_iokit_user_client_class .

#

./System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64 🙏

#

we got a hit

indigo peak
#

i know

tepid olive
#

fr

indigo peak
#

its ios 15

#

thats why

#

how.

timid furnace
indigo peak
#

its crashing ida

timid furnace
#

well i did say use ipsw for a reason

#

also skill issue, i can load whole dyld caches just fine

#

just get enough ram

#

and 20gb of storage space

indigo peak
#

i have 32 gigs of ram

#

and lik

#

over 100gb free

#

322gb free

#

im using 11gb of my 32

tepid olive
#

youre kinda out of luck buddy @indigo peak

indigo peak
#

why

tepid olive
#

looking into the cache for you rn

#

its looking bad

indigo peak
#

fuck

#

well

#

what else could i do

#

are there any other possible things

#

or is it impossible

tepid olive
#

if nothing calls it its borderline impossible

#

i mean

#

its possible but very hard

indigo peak
#

well how does like libsandy work then

#

does it just work bc its a tweak

#

and it uses hooks?

#

like this is out of my realm of shit i kinda know

#

we're going into the "fuck around and find out" territory

timid furnace
#

it's because the device is jailbroken

#

if you're jailbroken you can inject into whatever the fuck you want and call whatever the fuck you want

#

if you're jailed you have to find an exploitation vector

indigo peak
#

mhm

#

why tf does everything i try to do end up extremely difficult

tepid olive
#

wait actually @indigo peak this is not that hard

timid furnace
indigo peak
#

nah i get it

#

it makes sense

tepid olive
#

but its doable otherwise

#

wait no yeah thats possible

#

just rebind the sandbox_issue_file symbol to the iokit symbol

indigo peak
#

yeha i have no idea how to do that

tepid olive
indigo peak
#

wdym

#

trying to get a part of aemulo to work for anamy

tepid olive
#

what part

indigo peak
#

uh @grim sparrow can i send the code to evelyn

#

its 2:40 by amy

#

shes prob awake

grim sparrow
#

Yes

timid furnace
#

what is __got

tepid olive
primal perch
#

@grave sparrow faptain kink

timid furnace
#

hmmmmmmmmmmmmmmm interesting

ocean raptor
#

Bro that's literally how every linker works

#

Capt don't suck apple's dick challenge

primal perch
#

literally

#

impossible

primal perch
gentle grove
primal perch
#

i prefer to take the nuanced approach

#

apple makes some good products and theres instances where apple is dogshit

pearl sail
primal perch
#

yea

tepid olive
#

can anyone help me with compiling netmuxd big brain people

forest dock
#

Is there a way to lookup associated CVEs by dylib?

#

See if anything was reported for a specific version

ocean raptor
#

why kermit got teeth??

snow python
#

kermie just needs teefies

hasty ruin
tepid olive
#

I want to install Theos on mac, but when using the command it says that i dont have xcode installed. Even tho i installed in the app store and the package too. I also installed homebrew

ocean raptor
pearl sail
#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

#

Meth

restive ether
#

so real for that

pearl sail
#

FR

#

Back to the ether

tepid olive
#

How do i do that?

pearl sail
#

METH

hasty ruin
ocean raptor
hasty ruin
restive ether
#

there is a difference between rc and profile

ocean raptor
#

zshenv is what you really want

#

I love minor differences that I never fully remember

restive ether
hasty ruin
#

????

restive ether
ocean raptor
#

checkmate

hasty ruin
ocean raptor
#

yes, it's a reference to oobPCI

hasty ruin
ocean raptor
#

zprofile is on login shells only

#

zshrc is on interactive shells only

pearl sail
#

Thanks nerd

ocean raptor
#

a login shell is started by login

#

usually a terminal emulator starts a login shell though

pearl sail
hasty ruin
#

i just pick a random one each time

ocean raptor
#

so /bin/zsh as a shebang in a shell script will only load zshenv

#

running zsh from a shell as a shell will load zshenv and zshrc

#

running login will load zshenv zshrc and zprofile

tepid olive
#

But i dont have theos installed

#

i cant run the install command

#

this command

#

i cant run it, it says i dont have xcode installed

hasty ruin
#

send the full output

tepid olive
hasty ruin
#

whats the output of xcode-select -p

tepid olive
#

/library/developer/commandlinetools

hasty ruin
#

does /Applications/Xcode.app exist

tepid olive
#

yes

hasty ruin
#

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

#

run that

#

then try installing again

tepid olive
#

what does it do

hasty ruin
#

xcode-select controls the location of the developer directory used by xcrun(1), xcodebuild(1), cc(1), and other Xcode and BSD development tools.
This also controls the locations that are searched for by man(1) for developer tool manpages.

tepid olive
#

It works now, thanks

hasty ruin
#

np

faint stag
#

i am still using the old xcode beta lel

gentle grove
#

rust is a sham

faint timber
#
    PList::Dictionary *test2 = test.get();
    PList::Dictionary test3 = *test2;
    test3.Begin();
    for(const auto& [key, value] : test3){
        assert(key && value);
    }
error: invalid range expression of type 'PList::Dictionary'; no viable 'begin' function available
    for(const auto& [key, value] : test3){
                                 ^ ~~~~~

What am I doing wrong?
PList::Dictionary has a Begin method that returns std::map.begin()
as you can see there's no error thrown for test3.Begin(); manual but for each fails to use that method?

timid furnace
#

Um

#

Might be a stupid question but shouldn't Begin be lowercase

faint timber
#

I derived the class and named it lowercase as a test still not viable, spelling is not the issue

#

this is the libplist++ class Dictionary

faint timber
#

/solved

primal perch
#

NSConstantAttributedMutableDistributedOrderedSortedMutableConstantMutableDictionary

hasty ruin
#

NSConstantAttributedMethbleDistributedOrderedSortedMethbleConstantMethbleDictionary

primal perch
#

@hasty ruin penis?

hasty ruin
#

yes

#

👍

#

admin abuse

primal perch
#

penis

#

Microsoft PEnis Object File

turbid fjord
primal perch
#

peen

faint timber
#

we do a little smart pointers

faint timber
#

Guess they pretty dumb since it only works in debug mode

gentle grove
#

kekw

ocean raptor
#

I should do tweak bounties

hasty ruin
#

you should do twerk bounties

#

all I see is naked black men

ocean raptor
#

I want money 😡

hasty ruin
restive ether
#

fun and games until you don't get paid

#

and 60% aren't worth the time to do

#

this one is funny

lime moat
lime moat
# lime moat

Theos dependecies installed already IOS15.6 palera1n

lime moat
#

Fixed thx

faint timber
#

my code works in debug but not release

#

a private member is being deleted before I can use it 😦 when I go to use it it crashes because its null

#

.size calls the private member _array.size

#

don't ask me I did shit until no warning lol

#

its kinda a class linked list

primal perch
#

reinterpret cast

#

it’s kinda self explanatory

faint timber
#

so why does it free my _array too soon in RELEASE builds but not in DEBUG

primal perch
#

is your destructor virtual / should it be

faint timber
#

making destructor virtual causes a different crash

#

weird since _ptr is valid, how is it bad access?

faint timber
#

fixed the bugs typos of course...

#
  1. I need to be using share pointer to emplace in a vector
  2. I forgot to call make_shared
unkempt raft
#

Hi, anybody knows how to get Data of a symlink itself?

#

if I throw a symlink into an online hex editor that doesn't have the destination it CAN read its data

#

datadata

#

i need to overwrite a file in fs with a symlink, so it (hopefully) becomes a symlink

#

at the start of file

#

(i hope it works because it probably won't frcoal )

tepid olive
#

good luck

#

you dont have a symlink file type

#

so it won't work

unkempt raft
primal perch
unkempt raft
#

or it isn't in the file contents?

azure sail
#

no it's your mom

primal perch
#

hot

#

where

slate yoke
hasty ruin
#

There’s a precompiled ipa in the GitHub releases fr

faint stag
slate yoke
#

like the newer versions aren't merged with the watchkit stuff

hasty ruin
#

Last commit: feb 2021
Last release: June 2022

#

i think it’ll be fine

#

should be merged at this point but yk it’s Brandon

slate yoke
#

which is why I’m asking for someone to compile this older version so I can get the apple watch version of the app

faint stag
#

doesn't include the ios app at all

grim sparrow
#

@ocean raptor your shits broken

#

NEVERMIND

#

CALLING DIST-UPGRADE DOESNT WORK

#

BUT UPGRADE DOES

hazy geyser
#

Is this a correct channel for posting questions about osx/ios internals? I have a pretty specific question about dyld, interposing and a supposedly new system call __map_with_linking_np

restive ether
#

@grave sparrow

ocean raptor
grim sparrow
#

Well I was gonna get an error

#

Log for you

#

And then it started working

pearl sail
slate yoke
wheat grotto
#

So..

#

How would i deobfuscate a C# app ?

#

Actually i have 2 apps, but they both seem to use different obfuscation methods, but do pretty much the same thing for different things, if that makes sense

steady nest
#

what app

wheat grotto
#

ECU flash tool

#

@hasty ruin trill

#

come laugh at me

steady nest
#

dnspy helps figuring stuff out

wheat grotto
#

Looks pretty fun if you ask me

#

Guess i should "unescape" those

#

but then theres another issue

#

tried like 3 tools for that, none of them know what to do with this shit

#

@turbid fjord hlep

turbid fjord
#

Ask and you shall receive

wheat grotto
#

😭

turbid fjord
#

I’m happy you think I know anything fr

#

Jokes aside what’s up

#

Oh wait is it the thing you just sent ?

wheat grotto
#

The 2 messages that are up

turbid fjord
#

Nvm

#

Yeah

wheat grotto
#

on sc ye, this the same

#

just different screens lol

#

wait no

#

one of em isnt

turbid fjord
#

I got no bloody clue

#

@grave sparrow will know somehow

wheat grotto
#

ive never done any of this stuff, lets not even talk about succeeding in it

turbid fjord
#

Yeah me neither

wheat grotto
#

I guess sniffing the data that gets sent to the ECU using this app is an easier approach

#

And well

#

thats what i wanted to do

#

But

#

the chip/ic thats used for the actual communication

#

has some weird as fuck pinout

#

which in no way, shape or form matches the datasheet

#

in the K pins place is CS pin, and none of the power pins match too

#

so i dont want to risk hooking it up to anything

gentle grove
#

example 1: twitter

#

tf you mean

wheat grotto
# wheat grotto

Might be obfuscated using SmartAssembly, how do i confirm this ?

gentle grove
#

have you heard of api keys

#

they can make you pay in order to get an api key

#

to monetize it

#

lots

#

capt have you ever seen the internet

#

they use private apis

#

that you can reverse engineer

#

but the api might be like protobuf or something

#

so more difficult to reverse engineer trol

#

to be official

#

and not require revcerse engineering

#

chads just scrape the html

#

the private endpoints might be hidden or obfuscated or complicated to use

#

yeah

gentle grove
#

oh and there are also things that exist with no mobile app or private api

#

like openweathermap, ignoring their free tier

#

that is what most sites do

#

either that or free entirely

#

because they're poor and also stupid

#

no one is paying $100 a month for twitter api

#

you mean current

#

there are typically different capabilities too

#

you can get banned/ratelimited very easily and quicly on user token

#

that is what most sites do

wind ravine
#

is it even possible to reset icon cache with mdc and tccd?

#

it cant read /var/containers/Shared/SystemGroup/systemgroup.com.apple.lsd.iconscache/Library/Caches/com.apple.IconsCache

indigo peak
#

i dont think so

#

i tried

#

@steady nest @grave sparrow do either of you know how to do 0x70617373636f646520627970617373 on iP7 iOS 12; not breaking the rules i promise

#

yeah

#

man

#

do yk anyone that w/could

#

ik how to do that one

steady nest
#

no, my lawyer never wrote a server for that

indigo peak
#

:/

#

im assuming this is the p one

#

and this is the i one

#

i need the data from the phone

#

as much as possible

#

im not sure

#

true

#

hear me out

#

extremly stupid

#

just

#

steal the entire os

#

like drag and drop / out of a sftp

#

idfk

#

on another note, the sandbox_extension_issue_iokit_registry_entry_class seems to be present in /usr/lib/libsandbox.1.dylib, is that file in the dyld cache

#

yeah

#

fuck

#

okay

#

what do i need to extract that on windows

#

great, cmd doesnt recognize dyldex as a command

#

just gonna do it in wsl

#

easier

#

@grave sparrow can i also steal messages

#

over ssh

#

what ab contacts

#

do yk the paths

#

if you dont its fine

#

i can get them

#

alr

#

thanks capt :)

#

LOL

#

being 100% serious, i do not give anyone enough credit for helping me all the time, especially you capt

#

capt whgats the syntax for thge command

#

to get sandbox

#

real

pearl sail
#

where the fuck is reagan bro

#

only cause of reagan that shit could've worked fine along with companies offering pensions but that all changed during Reagan's administration

unkempt raft
#

Hi @naive kraken , I'm making an icon changer using the recent exploit. Already have a working method of modifying Assets.car, but can't rebuild icon cache. _LSPrivateRebuildApplicationDatabasesForSystemApps method wouldn't obviously work, and a sandbox extension can't access /var/containers/Shared/SystemGroup/systemgroup.com.apple.lsd.iconscache/Library/Caches/com.apple.IconsCache, gives a permission denied error, though works for its parent folder (Caches). Do you have any ideas how one can trigger it without a reboot?

indigo peak
#

i have 0 ideas

#

i tried this before

unkempt raft
indigo peak
#

^

unkempt raft
indigo peak
#

no

#

@unkempt raft my only idea

wind ravine
#

can u trigger with a reboot at least?

indigo peak
#

that would overwrite the changes lol

wind ravine
#

no

#

it persists after reboot surprisingly

#

according to source

unkempt raft
wind ravine
#

o

indigo peak
#

make a copy of every thing in /var/containers/Shared/SystemGroup/systemgroup.com.apple.lsd.iconscache/Library/Caches (except for com.apple.IconsCache)
remove the folder at: /var/containers/Shared/SystemGroup/systemgroup.com.apple.lsd.iconscache/Library/Caches
make a new folder /var/containers/Shared/SystemGroup/systemgroup.com.apple.lsd.iconscache/Library called Caches
add the copy of everything beforehand back into the new Caches folder
respring
???
profit

#

i think

unkempt raft
#

remove the folder at: /var/containers/Shared/SystemGroup/systemgroup.com.apple.lsd.iconscache/Library/Caches
you can't

wind ravine
#

u cant write to it

indigo peak
#

hm

unkempt raft
#

can you update cache with xcode?

#

at least with computer :/

indigo peak
#

you legit cant remove any folders part of this path
like up to systemgroup (havent tried passed that since that would be too much)

unkempt raft
#

owned by either root, nobody or _iconservices

wind ravine
#

that sucks

indigo peak
#

@naive kraken since youre kinda active, how do i call sandbox_extension_issue_iokit_registry_entry_class with a sandbox extension to generate a new extension for my app

#

evlyn is trying to help me through the process, but to me it seems a lot more complicated than it needs to be

naive kraken
#

I'm guessing you want tccd to call this

indigo peak
#
 <key>com.apple.security.iokit-user-client-class</key>
 <array>
      <string>AppleStockholmControlUserClient</string>
 </array>
#

allow for the same permissions as this

naive kraken
#

that's not registry though

#

sandbox_extension_issue_iokit_user_client_class is what you want

#

I'm guessing sandbox_extension_issue_iokit_user_client_class("com.apple.security.iokit-user-client-class", "AppleStockholmControlUserClient", 0) might work

#

but no clue

ocean raptor
#

@naive kraken did you ever test your uicache changes on iOS 12-14?

naive kraken
#

No one has ever called this before so it's impossible to know

indigo peak
naive kraken
#

I guess I can test it on 12 now

ocean raptor
#

Oh sweet

#

I think my 12 and 14 phones are dead

#

Wait

#

I don't have a 14 phone

indigo peak
#

2 results fr

#

sick

indigo peak
unkempt raft
indigo peak
#

it can create an extension for sandbox_extension_issue_iokit_user_client_class("com.apple.webkit.extension.iokit", "AppleStockholmControlUserClient", 0);

#

The exact meaning of the flags in the XPC_FLAGS environment variable can vary depending on the specific XPC service and the version of the operating system. However, some common flags include:

XPC_FLAGS_PRIVILEGED: This flag indicates that the XPC service should run with elevated privileges.

XPC_FLAGS_ALLOW_SYSTEM_LAUNCHD: This flag indicates that the XPC service is allowed to be launched by the system's launchd process.

XPC_FLAGS_MAINTAIN_AUDIT_TOKEN: This flag indicates that the XPC service should maintain the audit token of the process that launched it.

#

chatgpt ^ fr

naive kraken
indigo peak
#

does flags not exist on this?

#

i see the edit

#

hm still null

naive kraken
#

you're aware that you need to call it from a process that actually has access to that, right?

indigo peak
#

wait yeah

#

The exact value of XPC_FLAGS_PRIVILEGED can vary between different versions of macOS and iOS, but it is typically defined as:

#define XPC_FLAGS_PRIVILEGED 0x00000001

indigo peak
#

like dlopen & dlsym the symbol etc

naive kraken
#

sandbox_extension_issue upcalls to kernel

#

kernel checks whether you are allowed to issue the extension

indigo peak
#

yeah but certain processes have to have permissions to do that tho

ocean raptor
#

I see no reference to those

indigo peak
#

so would doing something similar to how the sandbox extension generator from tccd work in this case

#

or would i have to do something completely different

naive kraken
#

why interesting, those are different things

#

mach is some other daemon

#

iokit client is a userclient in the kernel

#

it depends on what extensions are defined in the sandbox profile

#

just because you can issue an extension and consume it, it doesn't mean it actually does anything

#

the sandbox profile defines what extensions exist for a process

#

and there is no easy way to dump these from recent iOS versions

#

at least none that I know of

#

no clue

indigo peak
#

@naive kraken how would i even go about running that function as a process w permissions to

#

stock

gentle grove
#

https://github.com/BBaoVanC/bobaclient/blob/714fd63013efa2efc5bb03d0883c53953fa45b4c/src/cli.cpp

[1/4] Compiling C++ object src/liblibbobaclient.so.1.p/bobaclient.cpp.o
../src/bobaclient.cpp: In member function ‘bobaclient::types::InfoResponse bobaclient::Bobaclient::get_info(const std::string&)’:
../src/bobaclient.cpp:39:1: warning: control reaches end of non-void function [-Wreturn-type]
   39 | }
      | ^
[4/4] Linking target src/bobaclient
FAILED: src/bobaclient 
c++  -o src/bobaclient src/bobaclient.p/cli.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,--start-group /usr/lib/libcurl.so -Wl,--end-group
/usr/bin/ld: src/bobaclient.p/cli.cpp.o: in function `main':
/home/bbaovanc/projects/bobaclient/build/../src/cli.cpp:14: undefined reference to `bobaclient::Bobaclient::Bobaclient()'
/usr/bin/ld: /home/bbaovanc/projects/bobaclient/build/../src/cli.cpp:15: undefined reference to `bobaclient::Bobaclient::get_info(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: /home/bbaovanc/projects/bobaclient/build/../src/cli.cpp:18: undefined reference to `bobaclient::Bobaclient::~Bobaclient()'
/usr/bin/ld: /home/bbaovanc/projects/bobaclient/build/../src/cli.cpp:18: undefined reference to `bobaclient::Bobaclient::~Bobaclient()'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

https://github.com/BBaoVanC/bobaclient/blob/714fd63013efa2efc5bb03d0883c53953fa45b4c/include/bobaclient.hpp#L18
how tf is it undefined

indigo peak
#

and then do what with that 😭

gentle grove
#

I should just write it in nvim tbh because c/c++ in vscode isn't very good

misty cradle
#

anybody know if i can decrypt / dump apps with xinaA15

gentle grove
#

I'm so confused

misty cradle
#

@indigo peak

#

did u figure out how to decrypt apps

#

on ios 15

indigo peak
#

no i didnt

misty cradle
#

L

indigo peak
#

mremap_encrypted is borked

#

and i never figured out how to fix it

misty cradle
#

ok need to find someone with ios 14 then

indigo peak
#

@grave sparrow

misty cradle
#

@grave sparrow

indigo peak
#

@grave sparrow

misty cradle
#

decrypt app for me psl psl pls pls pls @grave sparrow pls pls pls pls

#

RN

#

Plpls pls pls pls pls pls pls pls pls

#

ok decrypt, then i fix ur code aPES_Hacker

#

BUNQ

rain falcon
#

fuck you

misty cradle
#

issa bank

rain falcon
#

fuck you

#

bitchass mf

misty cradle
#

ok

indigo peak
#

@misty cradle we do some trolling

misty cradle
indigo peak
#

doesnt work on 15

#

com.bunq.ios

#

com.burbn.instagram

misty cradle
#

true

indigo peak
#

i have bundle ids memorized 😭

misty cradle
#

i used to aswell troII

indigo peak
#

this is why i fail exams

#

my brain is just appstore bundle ids

misty cradle
#

hopefully this app can help me figure out why the response of this request is

#

when i generate it myself exactly how the website does it

indigo peak
#

wait

#

why do you need it decrypted

#

if youre just trying to see code

#

you can see encrypted binaries in ida

#

??

#

yes?

tepid olive
#

Does anyone have experience with Sunst0rm?

indigo peak
#

are you dumb?

#

iOS 13

#

??

misty cradle
#

ok dump the app pls captain

#

inc

indigo peak
#

when it says "this binary is an iOS encrypted binary" just press ok or whatever

#

and it loads normally

misty cradle
#

fr

#

downloaded

#

thank u

#

❤️

misty cradle
indigo peak
#

its readable for me

misty cradle
#

eta s0n

naive kraken
#

some apps do some funny stuff to neuter encryption to have lower compressed sizes

#

For those the code can be partially viewed

#

for others not

indigo peak
#

interesting

#

@grave sparrow @naive kraken i think (from help from evlyn) i just need to get the address of the symbol when its mapped in the address space and then just call that

#

or something

#

i find the fixed address, add it to the dyld slide, get that offset, and then i rebind the function to call the function at that offset

#

i think

#

so i need to call sandbox_extension_issue_iokit_registry_entry_class in a process that has permissions to generate the extension

#

in any unsandboxed process?

#

well either way, i have to figure out how to call it

#

is tccd unsandboxed?

naive kraken
#

it's unsandboxed enough to issue extensions

#

I think

indigo peak
#

do yk any other processes that are like that?

#

well libsandbox.1.dylib should be unsandboxed enough to give out extensions tr

#

i just dont know how to get the base and then be able to calc the function offset

#

oh yeah

#

forgot about that

#

yeah

fossil zodiac
#

Is there a good file reference for Mach-O? I have to parse LC_DYLD_INFO_ONLY

glacial matrix
pure dust
#

Does anyone know how to use dpkg to correctly recompress files into a deb package after you have modified the files in the deb? When I installed the modded deb I created I clearly forgot something so the contents of the deb package ended up being installed to the root folder of iOS

#

I am basically tryna get the App Library controller tweak to install on iOS 16. I’m pretty sure it’ll work just fine bc that seems to be the case for most tweaks designed for iOS 14/15 on iOS 16 granted those tweaks don’t modify the lock screen in any way