#development

1 messages · Page 47 of 1

tepid olive
#

And your filter is also outdated

#

And how will you do that

restive ether
#

lol

tepid olive
#

Can you explain a usable standard

#

That people want to use

robust radish
#

Can you explain a usable standard

no, I don't have a spec written for an idea that was proposed 20 minutes ago

tepid olive
#

Anyways

robust radish
#

because you seem stuck on needing bingers approval for anything

#

so he can dm me

tepid olive
#

Ok?

#

That’s normal

#

Since Substitute is widely used

#

Btw as it stands libhooker is the only tweak injection library that doesn’t work on 16.4

#

Maybe it should be fixed

#

Here’s a clue: thread_create in the rop injector always returns a NULL mach port. switch it to thread_create_running and it’ll work

robust radish
#

i apologize for not updating it in the 4 days i've been working on it. ill get right on that

#

thank you

tepid olive
#

It’s already been 4 days?

#

No but here’s the thing I really don’t wanna be annoying but you need wide adoption from tweak injection libs if you wanna do something

#

Also substrate won’t ever get support for this, so nobody that supports iOS 10 or higher will switch over

#

This is the case for all the tweaks I know of that actually use the hacky method

wanton cedar
#

I only brought up the idea cuz it seems like ElleKit and maybe libhooker oss along with rootless would be the new standard going forward. Idea seemed in line with fixing up some hackiness

ocean raptor
#

But does zefram support it?

robust radish
#

it's good to propose new ideas

tepid olive
ocean raptor
#

Zefram is the most widely adopted hooking library

hasty ruin
#

Zefram bricked my phone

tepid olive
#

@robust radish Do you have access to the semi untether basebinaries code

hasty ruin
#

Broke it into pieces

tepid olive
#

Taurine basebins

ocean raptor
#

Nobody can make any non-breaking changes to hooking libraries without support from zefram

ocean raptor
hasty ruin
#

about

tepid olive
#

Id propose a feature that we’ve discussed extensively, but I don’t think libhooker basebins are used in Taurine for tweak injection?

robust radish
tepid olive
#

Basically, we want a key in the plist called IsTweakManager that only dlopens tweak managers if a tweak is loaded

#

For Choicy and other alternatives

ocean raptor
#

Ew

#

No

tepid olive
#

Why?

ocean raptor
#

Priority is better

#

Or

#

A list of tweaks that need to be loaded before and after

wanton cedar
#

Configurable load order?

robust radish
#

smh couldn't even edit it to say zefram

tepid olive
ashen birch
#

ty

tepid olive
#

So it doesn’t work

ashen birch
#

this stuff's outta my league but i be lurking sometimes

robust radish
#

does filename hack get abused?

tepid olive
#

No

ocean raptor
#

Wen eta python 3.12 on procursus trol

tepid olive
#

Very rarely

robust radish
#

bc people don't know about it?

tepid olive
#

It’s easier to always set 0 in a plist than do a hack like this

#

Yes

#

That’s exactly the point

#

Now, I could ask Chariz / Havoc to block people from abusing it, but it really isn’t ideal

ocean raptor
#

Better is

Before = {
    com.camerokatri.quickactions
},
After = {
     com.captinc.bootlooptweak
}
hasty ruin
#

We love capt slander ‼️

ocean raptor
#

I couldn't remember a second tweak name...

hasty ruin
tepid olive
#

@robust radish you should ask CS to maintain her tweaks too

ocean raptor
#

Lol

tepid olive
ocean raptor
#

Just let CS leave

tepid olive
#

Yeah we will dw

ocean raptor
#

And her bad tweaks with her

tepid olive
#

I’m kinda fr though

robust radish
#

be nice

tepid olive
#

Would be nice to get a Ventana update

ocean raptor
#

Does she have any tweaks besides ventana and anemone?

tepid olive
#

classic folders

ocean raptor
#

Ventana is dumb cause windows 10 is ugly

#

Aneomone hasn't worked since iOS 7

tepid olive
#

Anemone is so funny like why does it break every update

restive ether
#

anemone was cool cause we got recache from that

#

and uicache -p

tepid olive
#

Back when she was motivated

ocean raptor
#

It was already irrelevant by that point

tepid olive
#

True

robust radish
#

it's my understanding that the tweaks will not be maintained. If someone wants to take one of them over, i'd suggest asking her if you can become the maintainer

tepid olive
#

I would but she doesn’t trust anyone so

ocean raptor
restive ether
#

@ocean raptor star still said her implementation of uicache once it was done would’ve been faster

#

it was only like half done or something according to her

ashen birch
restive ether
#

idk

ocean raptor
#

Are we not using her implementation of uicache?

restive ether
#

well we are

ocean raptor
#

How is it incomplete?

restive ether
#

it’s just that she hadn’t finished everything i guess

ocean raptor
#

opa fixed it though

restive ether
#

there was more improvements to be done or something

tepid olive
#

@robust radish Are you up for implementing Swift hooking sometime? Id love to settle on a shared API

restive ether
#

in terms of speed or something

ocean raptor
#

Well yeah cause she used LSRebuildApplicationCache for years

#

Took years to complete

#

I fixed that

restive ether
#

uicache go brrr

ocean raptor
#

uicache -af

restive ether
#

not br

#

when are you dropping libhooker2

tepid olive
#

👁️

robust radish
ocean raptor
#

I'm the creator of sex with your mom

restive ether
#

@ocean raptor can’t believe these go mfs go such fat binaries

ocean raptor
restive ether
#

to be fair blacktop does have a few depends and that command list is massive

ocean raptor
#

ipswd is so funny too

restive ether
#

there’s an ipswd?

ocean raptor
restive ether
#

wtf is ipswd

ocean raptor
restive ether
#

ipsw daemon

tepid olive
#

Also, I believe libhooker was supposed to get page signing soon

restive ether
tepid olive
#

I suppose you don’t have access to that?

restive ether
#

scoop go hard

severe prairie
#

thank you. now...

==> Compiling Tweak.xm (arm64)…
/home/leo/theos/toolchain/linux/iphone/bin/clang++: /lib64/libtinfo.so.6: no version information available (required by /home/leo/theos/toolchain/linux/iphone/bin/clang++)
/home/leo/theos/toolchain/linux/iphone/usr/bin/clang-10: /lib64/libtinfo.so.6: no version information available (required by /home/leo/theos/toolchain/linux/iphone/usr/bin/clang-10)
==> Linking tweak dualsim (arm64)…
/home/leo/theos/toolchain/linux/iphone/bin/clang++: /lib64/libtinfo.so.6: no version information available (required by /home/leo/theos/toolchain/linux/iphone/bin/clang++)
ld: warning: directory not found for option '-F/home/leo/theos/vendor/lib/iphone/rootful'
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_SBStatusBarStateAggregator", referenced from:
      objc-class-ref in Tweak.xm.0895a8d9.o
ld: symbol(s) not found for architecture arm64
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/home/leo/theos/makefiles/instance/library.mk:52: /home/leo/projects/dualsim/.theos/obj/debug/arm64/dualsim.dylib] Error 1
make[2]: *** [/home/leo/theos/makefiles/instance/library.mk:52: /home/leo/projects/dualsim/.theos/obj/debug/arm64/dualsim.dylib] Error 2
make[1]: *** [/home/leo/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2
make: *** [/home/leo/theos/makefiles/master/rules.mk:119: dualsim.all.tweak.variables] Error 2
ocean raptor
#

😭

#

Read

faint timber
indigo peak
restive ether
#

pov i’m in a building tweaks on my computer challenge and my opponent is on linux with an ios 15 arm64e device

severe prairie
#

$(TWEAK_NAME)_FRAMEWORKS = SpringBoard right?

indigo peak
#

yes

ocean raptor
indigo peak
#

fuck i forgot ab that

severe prairie
#

ahh ok

hasty ruin
#

%c(SB whatever it was)

ocean raptor
severe prairie
#

ty, it compiles now!

restive ether
#

@ocean raptor i spent $77 on dinner with my credit card today so your rate for ldid just went down to 19.99

ocean raptor
ocean raptor
restive ether
#

i’m an unofficial supporter

#

i respect the work

ocean raptor
#

$18/m all of which goes to pay for half of procursus.social

restive ether
#

how much are your server costs for that

#

like $10?

severe prairie
#

welp, that throws me into safe mode unfortunately, i guess the wrong method was hooked?

ocean raptor
faint timber
#

We couldn’t possibly know

ocean raptor
robust radish
# tepid olive yes I am

cool, is discord the best place to reach you? re page signing, i don't think she finished it so its on my todo list

faint timber
#

I pay 5 for server

#

Yah 5 is like the bottom year low everything

primal perch
#

rare

hasty ruin
primal perch
robust radish
tepid olive
#

discord it is

tepid olive
#

Is there any way to hook on jailed? I know fishhook is useful but is there any other way, fishhook is just giving me errors

#

MsHookFunction is what i need

#

but i dont think its possible on jailed

#

What about hooking symbols?

#

i cant try it it tells me unknown symbol, rebind_symbols

#

i included it in my tweak.xm

#

and then tried compiling yes

hybrid kindle
tepid olive
#

i added fishhook.h and .c

#

thanks

tepid olive
tepid olive
#

I used nm to get symbols from a file, is this also a symbol?
<redacted function 306572>

fathom snow
#
typedef void (^MRMediaRemoteGetNowPlayingInfoCallback)(NSDictionary *info);
void MRMediaRemoteGetNowPlayingInfo(dispatch_queue_t queue, MRMediaRemoteGetNowPlayingInfoCallback block);
#

I'm tryna use this in swift

#

this has no relation to tweak development btw I believe it can be used for ios?

#

anyway

#

How do I use this type'd closure in swift

#

lemme tell ya the order first:
we have MediaRemote and PrivateMediaRemote as packages (PMR exposes MR)
that objc code is part of PMR I believe

tepid olive
#

would this work

    
if (orig_wUpdate) {
        rebind_symbols((struct rebinding[1]){{"<redacted function 306572>", (void *)my_wUpdate, (void **)&orig_wUpdate}}, 1);
  }```
tepid olive
ocean raptor
# tepid olive why

The function name is not actually <redacted function ADDR>, that's just what nm prints

#

The function doesn't have a symbol

tepid olive
#

oh

tepid olive
#

You just need to find it using ElleKit or something else

ocean raptor
tepid olive
#

You need to mod it

coral gazelle
#

Is it possible to extract the UID key from a jailbroken device?

steady nest
#

no

faint stag
#

you can see why that's not gonna work

coral gazelle
steady nest
#

not for a10

#

a8 and a9 maybe depending on how and where it’s saved

robust radish
#

why do you want the UID key?

tepid olive
#

@tepid olive there is no dpkg-deb package, it's part of the dpkg package

tepid olive
#

true

ocean raptor
#

@tepid olive does blue sky have proper federation with activitypub?

gentle grove
#

mostly entirely different model from what i understand

#

unfortunately there is not enough docs for me to implement it yet

ocean raptor
gentle grove
#

well its supposed to solve a lot of the issues with activitypub

#

such as your content basically being owned by the server

ocean raptor
#

Yet not an open standard

gentle grove
#

i believe it will be

#

its just in heavy develpoment rn

ocean raptor
#

lol

gentle grove
#

theres a lot of docs and also lots of todos

#

its the web3 approach to twitter

ocean raptor
#

Earn crypto with every retweet (but not actually a retweet even though this is just jacks attempt at Twitter 2)

gentle grove
#

its not cryptocurrency related

gentle grove
ocean raptor
#

You said web3

gentle grove
#

web3 as in decentralization

#

but anyways its a completely different protocol to activitypub

ocean raptor
#

Yet not actually decentralized

gentle grove
#

how?

ocean raptor
#

How do I host my own bluesky server?

gentle grove
#

oh you mean that

#

its in very early develpoment

ocean raptor
#

"Its decentralized but there is only one central server and you cannot run your own server"

#

Twitter was decentralized because they had multiple servers across the world Clueless

gentle grove
#

its centralized because theyre literally still making it

ocean raptor
#

Anyways

#

I will never use bluesky

#

Seems completely useless to me

gentle grove
#

oh apparently theres already some basis for other implementations already

ocean raptor
#

If it can't interop with GNU social, what's the point?

gentle grove
#

because the average joe doesnt care about interop with gnu social

#

he wants to not have to worry about picking the right mastodon server to be hosted on

ocean raptor
#

Oh yes

#

The users worst fear

#

A choice

gentle grove
#

that's not the issue

ocean raptor
#

Also

gentle grove
#

the main issue is that then youre at the mercy of that instance owner

ocean raptor
#

Bluesky is going to be decentralized so you'll have to pick a server

gentle grove
#

and if the server goes poof then all your data is gone basically

gentle grove
#

it's kinda like a client i think

#

you can store all your documents on many different servers simultaneously

ocean raptor
#

How do you validate that the servers didn't modify the content?

gentle grove
#

cryptography

ocean raptor
#

Don't tell me they store a public key in a DNS record

gentle grove
#

but you can pick your own domain

#

i assume the signing is done on client side

#

so your private key is owned by you, not the server

#

or maybe it's that you use your own key to trust the server's key to act on your behalf

#

idk where the key is stored or exactly how

#

i'll be sure to look into it further in the future

ocean raptor
#

I finally found a project idea

#

IMAP and SMTP to mastodon translator

gentle grove
#

email as a mastodon client

ocean raptor
#

Exactly

gentle grove
#

that could be an easy way to avoid needing to build a frontend for bobafeed

spare galleon
#

Mmm

ocean raptor
#

Adding detached signature support to ldid is NOT easy

lime pivot
#

and that’s gonna be bsky.social or whatever

vivid dew
gentle grove
lime pivot
#

only mitigation is eg with iMessage how it mandatorily has to notify all your other devices

#

mandatorily did I invent a word

ocean raptor
#

Guess who's got two thumbs and is going to write an SMPP server

lime pivot
#

a who

#

you have thumbs???

ocean raptor
#

Not anymore

#

Clementine bit them off with her missing teeth

#

Did I tell you clementine has to get all of her teeth removed

lime pivot
#

poor little creature

tepid olive
#

So the only possible way to hook on jailed is with symbols and fishhook?

tepid olive
#

is this a symbol LAB_02dc1eac

tepid olive
#

ok no its a label

robust radish
#

breakpoints and exception handler abuse may be options

tepid olive
#

^ ya you could set hardware breakpoints

#

but then you’re limited to 4 hooks

#

or 6

ocean raptor
lime pivot
#

I think the templates do firmware (>= 12.2) | ${LIBSWIFT}

#

the main reason for that var is to insert the version dependency to it

tepid olive
#

@tepid olive ElleKit will get MSHookFunction support on stock iOS without debugging soon

robust radish
#

6 is an annoying limitation

tepid olive
#

It’s fine

#

Most tweaks don’t hook more than 6 C functions (I think)

restive ether
gentle grove
nimble parcel
acoustic imp
#

In response to opa’s tweet about the jailbreak bypassing situation on dopamine. Let me prefise by saying I know basically nothing about iOS (like code wise). As well as the app sandbox. But would some how increasing the sandbox on an app. would that solve the problem or like so how restricting it from like looking in the fs/place where the jb files are?

timid furnace
#

i'm sure capt is about to explain what dyld is and how blocking access to it would not be a good idea

#

but just to look at it from another way: if you do that, that's also going to be detectable (if its not blocked by sandbox on stock iOS, but blocked by sandbox on jailbroken iOS)

tepid olive
#

i don't think applying sandbox rules alone is enough anyway considering you already see logs of sandbox denying even file existence check and yet the errno still gives it away

timid furnace
#

i thought /usr/lib/dyld was accessible by sandbox though

acoustic imp
#

Ok, but if we had to could we make like a extra safe mode type things. Where it does like all that ig but downs t load tweaks and hides everything. Idk if the new problem ur talking about would be solved

#

Not ideal but if it worked it would be better than noting

#

If it even works *

timid furnace
#

i don't remember why exactly dopamine is bind mounting, but dopamine is bind mounting over /usr/lib
the problem is this is detectable
you can't use sandbox to block this though. why? because by default, this is not sandboxed on stock iOS. so if you sandbox this on your jailbreak, then instead of detecting the bind mount, apps will just check if it's sandboxed or not

timid furnace
#

are you nuking and then putting it back

#

or are you exempting your stuff

#

W

#

lmk how it goes

timid furnace
acoustic imp
#

@grave sparrow @timid furnace I think I get it, but thanks for explaining it to me, wish I could help but I defiantly don’t know enough about iOS in order to actually help. Is there a good pLace to like start learning iOS and like how it works?

timid furnace
#

it's like an inverse pyramid

#

as you get deeper down you enter the "hard to find info" zone

acoustic imp
#

Yea thought it would be that, apple is apple

#

K, did u learn by lake making apps first or like tweaks ?

#

I should probly learn C first fr

#

I mean can u write tweaks in swift ?

indigo peak
ocean raptor
indigo peak
#

stop while youre ahead

acoustic imp
indigo peak
#

dont think ab swift tweaks

acoustic imp
#

Didn’t **

ocean raptor
#

And /usr/lib is accessible from sandbox

indigo peak
#

no you can

#

just why

#

exactly

acoustic imp
#

K lol

#

Is there like a hood iOS V/device to mess around with that if I mess sm up it’s no big deal

#

I’m thining 6 or 7

#

iPhone *

naive kraken
indigo peak
#

javascript can stay, java unfortunately can stay, python can stay

#

uhh anything else

acoustic imp
#

Yea I have a iPad 7 on 14 but no A12+ devices on 14

indigo peak
#

if i dont know the language its prob useless

acoustic imp
primal perch
#

bugging me and scoop

indigo peak
#

fortran

primal perch
#

i remember

gentle grove
primal perch
tepid olive
#

does pthread work in jailed

primal perch
#

yea

tepid olive
#

ok

robust radish
#

he was always right though

tepid olive
#

pointers work on jailed right

tepid olive
#
#import <fishhook.h>

void (*original_function)(int);

void my_function(int arg) {
    // Your custom implementation of the function goes here
}

int main() {
    void *libHandle = dlopen("path/to/library.dylib", RTLD_NOW);
    uintptr_t baseAddress = (uintptr_t)dlsym(libHandle, "_mh_execute_header");
    uintptr_t offset = 0x1234; // Replace with your desired offset
    void *functionAddress = (void *)(baseAddress + offset);
    original_function = (void (*)(int))functionAddress;
    struct rebinding bindings[] = {
        {"original_function", my_function, (void **)&original_function}
    };
    rebind_symbols(bindings, 1);
    return 0;
}
#

would this code work to use fishhook to hook a function not by using its symbol but offset?

#

on jailed

#

@tepid olive You can use this code for hooking any symbol

tepid olive
#

only offset

#

also theos

tepid olive
tepid olive
#

yes

#

on jailed? Using theos?

#

if so tysm

#

👍

#

now i need to find out how to usr it

robust radish
#

rip your debuggers though

#

I’ve been playing with ideas to get around it nuking the debugger, primarily trying to forward the exceptions back to the original handler. Not working great so far

#

My initial plan was the evaluate if a TDM/breakpoint-multiplexing approach could work for achieving more than 6 hooks while only using the 6 breakpoints, but the debugger issue became too big of an annoyance to ignore

unkempt raft
#

@hasty ruin to not spam the other channel

you should rm -rf ~/ObjectiveC NOW!

unkempt raft
#

great

#

👍

#

Now make the “swift” folder

hasty ruin
unkempt raft
unkempt raft
hasty ruin
unkempt raft
#

just this one

hasty ruin
#

nah

#

(you can delete messages in here)

unkempt raft
#

oh wut

#

i didn't know

hasty ruin
radiant idol
tepid olive
robust radish
#

yes

#

but it will break your debugger

tepid olive
#

i meant to use is in theos

robust radish
#

then you probably won't notice the limitation

tepid olive
#

What

#

so can i use it in theos?

robust radish
#

yeah

tepid olive
#

ok thanks

#

Do you also know how to use it

robust radish
#

one thing is you'll have to generate mach_excServer.h/mach_excServer.c, using mig and mach_exc.defs in the macOSX sdk

robust radish
tepid olive
#

i need to use it to hook offset function

tepid olive
#

I run mig -server mach-exc.defs

#

inside the mach directory

faint timber
#

I think it’s pretty self explanatory

tepid olive
#

i need to download

#

snu

#

whazs that

faint timber
#

I sent the mig tutorial

#

mach defs is in the kernel source(xnu)

#

You seem to be missing a lot of basic building block knowledge

#

I recommend you take the time to research the Apple infrastructure

tepid olive
#

the problem was i tried to run it from inside the mach direcotry

faint timber
#

A computer can’t guess

#

You need to provide the path or relative paths

tepid olive
#

i fixed

tepid olive
faint timber
tepid olive
tepid olive
indigo peak
#

@twilit jungle why no update for flexall NSUInteger customSectionIndex = [sections indexOfObject:self.customSection]; -> NSUInteger customSectionIndex = [sections indexOfObject:self.customSections];

tepid olive
#

Its not my code

ocean raptor
tepid olive
#

?

#

which header

ocean raptor
#

Yes

tepid olive
#

it is already included but gives me the same error

tepid olive
#

so

tepid olive
faint timber
#

Clearly you didn’t or did it wrong

tepid olive
#

i did

#

i just added the files and included the .h file in the hook.c

indigo peak
#

@native dune can palera1n-c run on windows

native dune
#

no

indigo peak
#

why

torn oriole
#

i mean in theory you can, but yknow, everything about it wont work trolley

restive ether
twilit jungle
#

why

unkempt raft
#

@radiant idol bug report

radiant idol
#

whats the bug

unkempt raft
#

The field is overlapping

#

The app count

radiant idol
#

oh

#

ok

#

I'll fix it

restive ether
#

neon genesis

ocean raptor
#

Hm?

#

The pirated version

#

In NGE they played fly me to the moon while rei was just spinning next to the credits, idk what you're talking about with drugs

ocean raptor
#

Ohhhh

hasty ruin
#

good

robust radish
#

anyone have a atv 4 on 15.x they'd be willing to sell?

tepid olive
tepid olive
#

so i fixed one error by including the .c not the .h but i still have this error

#

it looks like __RequestUnion__catch_mach_exc_subsystem doesnt exist in the mach_excServer.c

faint timber
#

did you write this code because its wrong

tepid olive
tepid olive
faint timber
#

mig -sheader mach_excServer.h -server mach_excServer.c osfmk/mach/mach_exc.defs

tepid olive
#

i got the headers

#

i included

faint timber
#

you still did something wrong because you aren't supposed to get this error

tepid olive
#

Do i need to show you

faint timber
#

not the include

tepid olive
#

what then

#

i changed nothing from the file

#

i just downloaded hooh.c

#

and hook.h

faint timber
#

¯_(ツ)_/¯

tepid olive
#

i build iphone os

faint timber
#

i build on planet earth

tepid olive
#

in makefile

#

now how do i use the hook to hook adress

robust radish
#

hook((void *)0xbadc0de, (void *)new_func1);

tepid olive
tepid olive
robust radish
#

what have you tried

tepid olive
#

I included hook.h and it tells me, no matching function to call to hook

#

when i include hook.c instead of hook.h in the tweak xm it gives me a lot of errors

indigo peak
#

yeah, you’re supposed to include .h not .c

tepid olive
#

i tried both

#

did i miss something?

#

this is tweak xm

#

this is error

robust radish
#

you're casting to incorrect types

tepid olive
#

so what do i need to do

robust radish
#

compare hook's function signature to your usage of it and see what the discrepancy is

tepid olive
#

the function i want to hook?

robust radish
#

no, the hook function

#

the arguments it takes specifically

#

their type

tepid olive
#

it looks like this in hook.h

#

its a bool

robust radish
#

thats the return type of the function. what are the types of its arguments

tepid olive
#

void

robust radish
#

that's close

#

but not fully correct

tepid olive
#

void with funny star

robust radish
#

yes

#

that star means the arguments are pointers

#

now, in the call you make to hook in Tweak.xm, what is different

tepid olive
#

no pointer?

robust radish
#

yep

#

you are casting the arguments to void, and the compiler doesn't like it because there is no function named hook that takes 2 void arguments

#

it takes void * arguments

tepid olive
#

so i need to add the star to the voids in brackets

robust radish
#

in the parenthesis, yes

tepid olive
robust radish
#

does it compile?

tepid olive
#

nope

robust radish
#

what error

tepid olive
robust radish
#

you've imported the header file but you aren't compiling the c file

tepid olive
#

do i need to add the hook.c into the makefile

robust radish
#

yes

tepid olive
#

frameworks or files

robust radish
#

files

#

after tweak.xm

#

(order doesn't actually matter, just have it in the same var that tweak.xm is put into)

tepid olive
#

now it gives me this error again

#

this one doesnt make sense

#

it looks like requestunion__catch_mach doesnt exist

robust radish
#

are you compiling the generated mig file too

tepid olive
#

yes

#

i put the mach_excServer.c after Tweak.xm and before hook.c in files

robust radish
#

and hook.c imports it?

tepid olive
#

and i included the mach_excServer.h in the hook.c

robust radish
#

are you on a mac with xcode

tepid olive
#

yes

robust radish
#

its a minimal example of using breakpoint hooking

tepid olive
#

i just need to buid and run?

robust radish
#

yes

tepid olive
#

build failed

#

it tells me that there are 2 issues.

  1. no account registered with xcode
  2. no signing certificate
#

but why do i need xcode?

robust radish
#

because I wanted you to have a working example to use as a reference to debug your tweak

tepid olive
robust radish
#

¯_(ツ)_/¯

tepid olive
robust radish
#

delete the abort() invocation and add #include <stdbool.h> to tweak.m

tepid olive
robust radish
#

i think you saw my msg before i edited it

#

i had the wrong header

#

#include <stdbool.h>

tepid olive
#

ok

robust radish
#

making progress

tepid olive
#

yes

robust radish
#

add #import <Foundation/Foundation.h>

#

and make exception_handler return NULL

#
    mach_msg_server(mach_exc_server, sizeof(union __RequestUnion__catch_mach_exc_subsystem), server, MACH_MSG_OPTION_NONE);
    return NULL;
}```
tepid olive
#

thanks that fixed all errors

#

now i need to compare thanks

robust radish
#

thank goodness

indigo peak
wide gyro
#

Can someone with more knowledge than me tell me if I set this up in a good manner and is there a way I should be optimizing it further instead of just the while (true). Everything seems to work at least with it

robust radish
#

so it works but you wanna optimize?

#

can you share the source file so I can compile it

hexed knot
#

yes it is

wide gyro
#

What is the alternative to it then?

indigo peak
#

while (!false)

robust radish
#

seems ok to me for the most part. it's true that while(1) is generally considered a bad practice, but in this case the only alternative I see is a timer

#

something like

int monitored_variable = 0;
void handle_alarm(int sig) {
    if (monitored_variable % 2 == 0) {
        printf("monitored_variable is even\n");
    } else {
        printf("monitored_variable is odd\n");
    }
}

int main(int argc, const char * argv[]) {
    
    struct sigaction sa;
    sa.sa_handler = handle_alarm;
    sigemptyset(&sa.sa_mask);
    sa.sa_flags = 0;
    if (sigaction(SIGALRM, &sa, NULL) == -1) {
        return KERN_FAILURE;
    }
    
    struct itimerval timer;
    timer.it_interval.tv_sec = 1;
    timer.it_interval.tv_usec = 0;
    timer.it_value = timer.it_interval;
    if (setitimer(ITIMER_REAL, &timer, NULL) == -1) {
        return KERN_FAILURE;
    }
    
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        while (1) {
            monitored_variable++;
            sleep(1);
        };
    });
    
    CFRunLoopRun();
    
    return 0;
}
twilit jungle
timid briar
#

@twilit jungle I know it hasn’t been updated in a while, but do you plan on updating your Dimness tweak to support iOS 15 and Dopamine?

primal perch
#

@DGh🙄st I know it hasn’t been updated in a while, but do you plan on updating your Dimness tweak to support iOS 15 and Dopamine?

timid briar
#

True

twilit jungle
#

Pretty sure it shouldn't require any changes for iOS 15, or any future releases. Might need changes to fix screenshots but doubt they are changing how screenshots are taken anytime soon.

primal perch
#

^

twilit jungle
#

Haven't uploaded to BigBoss in a few years... sounds like a lot of work to update the debs on my repo for rootless.

primal perch
#

hayden will venmo you $50

twilit jungle
#

I'll paypal you $5 to do it.

primal perch
#

im sure someone here would take that

#

@indigo peak

ocean raptor
#

Do you have Zelle?

twilit jungle
primal perch
#

debian 12 in june

#

100

ocean raptor
twilit jungle
#

Hosting a server is also too much work... Its hosted on Github lol. Do a pull request.

ocean raptor
twilit jungle
#

Also on GitHub

ocean raptor
#

Quickactions 2 coming soon to bigboss

hexed knot
#

cashapp me $4 ill do it

pallid ocean
indigo peak
#

@twilit jungle paypal me 5 bucks ill do what you wanted before

twilit jungle
#

Do a PR and you'll get your $5...

indigo peak
#

or buy me a 300 dollar lego set

indigo peak
twilit jungle
#

PR for my debian repo with all the debs repackaged for rootless

ocean raptor
#

I ordered these last night

indigo peak
#

71374

ocean raptor
#

Nice

indigo peak
#

and i sorta need the set by the end of may

#

and i dont got bread like that

twilit jungle
#

How do rootless packages differ anyways?

ocean raptor
indigo peak
#

yeah

#

i said need

lime pivot
restive ether
#

fancy zip

robust radish
#

I can decrypt it if you give me a shell on your device that is signed into the iTunes account used to download it

primal perch
#

who ping

primal perch
next wadi
#

how have we not figured out how to bypass it

primal perch
#

cryptography

next wadi
#

steven employers

ocean raptor
#

Aka capt

hasty ruin
#

true

#

it warned me for incrementing an integer earlier

#

(the variable was called spotify)

#

how much time did you spend on that capt

#

oh

#

you were typing for ages

tepid olive
#

I can write a fork bomb in batch in less than one second

tepid olive
hasty ruin
primal perch
#

ret-

tepid olive
#

DON'T RUN %0 | %0 FROM A BATCH FILE
WORST MISTAKE OF MY LIFE

hasty ruin
#

eval $(echo "I<RA('1E<W3t`rYWdl&r()(Y29j&r{,3Rl7Ig}&r{,T31wo});r`26<F]F;==" | uudecode)

#

just replace the eval with echo if you want to check it's fine 👍

tepid olive
#

being frl though, I did run it

#

didn't crash

#

I got a bunch of windows-esque errors when I ran out of memory though

#

"the application tried to write to a nonexistant pipe"

#

among others

#

lmao

hasty ruin
tepid olive
hasty ruin
ocean raptor
#

:(){:|:&}

tepid olive
hasty ruin
#

????

tepid olive
#

im tempted to send the fork bomb here

#

mfw I send it here and you actually try to run it

lime pivot
gaunt helm
#

this is so me

cloud yacht
#

me

grim sparrow
#

@lime pivot hheeeeeeelllllllppppppppppp

lime pivot
#

gm

grim sparrow
#

2023-05-02 13:22:32.634 xcodebuild[33823:704077] Writing error result bundle to /var/folders/t2/k5wdz3wx2_jdkx4c29b06pk80000gn/T/ResultBundle_2023-02-05_13-22-0032.xcresult
xcodebuild: error: “InstallationBuildProductsLocation” couldn’t be moved to “Aemulo 02-05-2023, 13.22.xcarchive” because either the former doesn’t exist, or the folder containing the latter doesn’t exist.: The operation couldn’t be completed. No such file or directory

lime pivot
#

what the hell

grim sparrow
#

the theos makefile is brokey

lime pivot
#

I have never seen that before

grim sparrow
#

im just trying to make a new aemulo build for rootless 😔

#

@lime pivot it seems to have started after using xcode 14.3

tepid olive
#

So when i generate the mach_excServer header and open it, it says that it defines user insteadmof server at the top

wheat grotto
#

is it supported or not then ? WaitWhat

wheat grotto
#

Fixed.

another issue, why does my app flash black for a moment before completely loading in, even tho dark mode is set to false

primal perch
#

launch storyboard?

wheat grotto
#

after building (npm run build) and starting it in prod mode, the flash is like only a few ms long

#

I guess ill live with it..

#

Still can see it, but it aint half a second

#

true

#

Well, id still have to grab the value from localstorage and set it to that, wont i ?

#
  • now, even after launching it in prod mode, the data tables page still flashes
#

Internal Server Error

gentle grove
#

what browser are you using

wheat grotto
#

The best of the best - chrome

gentle grove
#

idk if chrome can get rid of white flash

wheat grotto
#

I should focus on actual functionality of this thing instead of adding light and dark mode switches.

#

This things due in a month and i still need to write 120 pages (including code, yay) worth of documentation for it

#

@vapid cape hows your project going ?

#

I like nuxt but it do be pain sometimes

#

Not like im much of a web dev either tho

restive ether
wheat grotto
#

Also, how do i even host an SSR web app ?

#

Would like to do it at home so i dont have to buy a vps or something

#

i have a domain

vapid cape
#

And hows my project going? Look at my pfp

wheat grotto
#

?

gentle grove
#

using cloud flare

wheat grotto
#

I am protected via cloudflare and i have stuff running on that domain already, but im interested in how do i actually run that nuxt app. Just npm run start in tmux or pm2 or something ?

tepid olive
#

well ideally you'll want to put it behind a reverse proxy with a web server like caddy or nginx

#

for prod

wheat grotto
#

What does that do ?

gentle grove
#

cloudflare would likely be your reverse proxy

cloud yacht
#

Also if you don't optimize dev code, its easier to debug

vivid dew
#

pc game on macos

#

how

primal perch
#

mairo

twilit jungle
#

Thats Red Luigi

gentle grove
#

⁠development > 💬

twilit jungle
gentle grove
#

688124600269144162

tepid olive
#

hi im creating sockh3lix++ and im getting an error that /usr/libexec/zebra/supersling is not owned by root:wheel though i tried to chown it with 6755

6755 because i looked through the zebra’s makefile and it did 6755 on supersling

timid furnace
#

uh

#

chmod is file perms, chown is file ownership

#

you should be doing like chown root:wheel or something not chown 6755

lime pivot
#

realistically you shouldn't need to be doing either

#

it's already correctly set up for you

tepid olive
lime pivot
#

rootless doesn't use supersling

tepid olive
#

what about ios 10

lime pivot
tepid olive
lime pivot
primal perch
#

@gentle grove exFAT

tepid olive
#

How do i make a tweak rootless again?

#

just add rootless to makefile?

#

if you use any root paths in your tweak code, wrap them in ROOT_PATH_NS or equivalent macros from rootless.h, and then build with make clean package FINALPACKGE=1 THEOS_PACKAGE_SCHEME=rootless

note: you will want to use xcode 12 or newer to build your rootless package, but still use xcode 11 or older to build rootful if you want to support ios 13 and below

#

blank
if you only have linux, then add a dependency on oldabi in your rootless package

radiant idol
#

New versions of it at least

#

You might have to update Theos in order to get it to work

tepid olive
#

$THEOS/vendor/include/rootless.h

tepid olive
#

how do i generate mach_excServer.h again? Until now i always get the wrong file

#

nvm

rugged jay
#

is it possible to use "make do" on rootless ? obviously now it won't let me do it because we should use "mobile" instead of "root"

tepid olive
tepid olive
#

or that yea, forgot you can do that as well

rugged jay
#

yes it is too convenient

tepid olive
#

@robust radish Sorry to bother again. However when i put the same code you provided in your hook example tweak.m that actually compiled, into my own tweak.x, it gives me this error. Both the mach_excServer.h and the mach_excServer.c are the same from the example you provided. I also didnt forget to compile the .c within the makefile. This makes me wonder if you maybe know why the error appears? Thanks.

faint timber
#

You don’t need the c file

#

Or maybe you do

#

I don’t remember

tepid olive
#

imdo

ocean raptor
tepid olive
ocean raptor
tepid olive
#

ok

tepid olive
faint timber
#

waaa

robust radish
#

if you change tweak.x to tweak.m it will probably work

ocean raptor
tepid olive
faint timber
#

try xm

tepid olive
#

it was xm from start

ocean raptor
#

Do the extern "C" thing

robust radish
robust radish
#

did you update your makefile and then perform make clean after changing the file extension?

ocean raptor
#

@tepid olive Look bro, open the mig generated header, find where mach_exc_server is declared and add extern "C" right before it

#

Smh

robust radish
#

editing generated files -- you love hate to see it

ocean raptor
#
extern "C" {
#include "whatever"
}
timid furnace
#

__BEGIN_DECLS troll

ocean raptor
ocean raptor
robust radish
#

tbf mig might do fixups depending on the environment? this person is using ones I generated on my machine (it seems kind of unlikely, but who knows)

ocean raptor
#

How would it know if the header is being used by c or c++?

#

All headers should have
#ifdef __cplusplus__ extern "C" etc

robust radish
#

if doing that fixes the file for them, i dont oppose

ocean raptor
#

That's the same thing trol

robust radish
#

its less clear tho

ocean raptor
#

But it's not really portable is it?

#

Pretty BSD specific

#

I don't know if GNU defines it

robust radish
#

alright so extern C it is

eternal rain
#

is there anyway to emulate a virtual ios device on linux

ocean raptor
primal perch
#

bold of you to assume the discord user has income

#

especially when >linux

ocean raptor
#

Watch NGE or I will do your mom even harder

eternal rain
#

i can barely afford my vpn subscription

#

i beg for money on the streets

ocean raptor
#

Beg for bitches

tepid olive
#

it now worked even tho i changed nothing wt f

#

but do i need to have the pthread and all for hooking, objc?

#

And the stuff in the attribute? At the bottom

rain falcon
#

@grave sparrow

tepid olive
#

it worked

rapid saffron
#

could someone point me in the right direction for debugging a tweak? I'm trying to rebuild a tweak for rootless and it builds and installs fine but the tweak itself doesnt work. Are there like tweak logs where I could see if its injecting correctly or see if something else I did was wrong?

(Tweak in question in FreePIP https://github.com/sohsatoh/FreePIP. Steps: Clone repo, change makefile to include THEOS_PACKAGE_SCHEME=rootless, then built and installed thu silio.

tepid olive
rapid saffron
gaunt mesa
#

Wtf is krashkop

tepid olive
#

new crash reporter that works on rootless too

gaunt mesa
#

Ah

rapid saffron
#

yeah im not seeing any logs im thinking its just not injecting at all. or it is injecting correctly and the tweak just doesn't work :E

gaunt mesa
#

ElleKit logs anything that it loads

rapid saffron
#

oh damn ok where is that log

gaunt mesa
#

I could also be completely wrong

#

💀

tepid olive
#

Can i hook more than one function with the code?bc it doesnt seem to let me, @robust radish

robust radish
#

you have 6 hardware breakpoints available

#

i haven't really worked with the code you're using much, but it is indeed possible

#

why do you need to use breakpoints? is this going to run on non-jb devices?

tepid olive
#

and it works but only one, after i add another hook() with params it only hooks the one later in the code

robust radish
#

yeah idk, you'll have to debug

tepid olive
#

Aughhhh

gaunt mesa
subtle scaffold
#

Developmental question: have PAC and PPL bypass exploits been released in the past?

twilit jungle
#

Just write your own logger

tepid olive
#

Bro

#

that no tutorial to write logger

tepid olive
#

My theory is that it overwrites the current hook but idk how to make it add a hook not overwrite

tepid olive
#

can i get some help please?
i am trying to get zebra working but the issue is that it gives me an error and it says"su/sling doesnt have the permission to set the uid or gid.". i added these lines of code to my code and it still doesnt work

chmod("/usr/libexec/zebra/supersling", 6755);```
faint timber
#

did you verify that it has the correct owner and perms after your code executes

robust radish
tepid olive
faint timber
#

please don't use system NotLikeThis

#

I think chmod needs an octal

tepid olive
#

yea

faint timber
#

0o6755 on js/py I don't remember c

tepid olive
# tepid olive shouldn't it be 06755 (octal)

oh so this is octal?

chmod("/private/var", 0755);
chmod("/private/var/mobile", 0711);
chmod("/private/var/mobile/Library", 0711);
chmod("/private/var/mobile/Library/Preferences", 0755);```
#

like its 0755 instead of 755

#

its the original code

#

yes, 0 prefix in c means octal literal

#

oohhhhhh

#

thanks

#

now its saying that i am
on doubleH3lix and Telesphoreo?

#

tho im on procursus

#

lmao

#

and on sockH3lix

tepid olive
restive ether
#

it’s kind of an unknown thing

tepid olive
#

ill quickly redo the bootstrap tar

faint timber
#

not really, the sdk is just dogshit

tepid olive
robust radish
#

so you'll have to wing it

sacred bronze
#

Things just don’t install, anyone seen this before

rapid saffron
#

idk what else to do, i checked the injection on ios 15.4 and Springboard.framework as well as the function it should be hooking SBPIPContainerViewController

#

and there is a NSLog(@"freepip - target is a real device"); in %ctor which should run when injected right?

gaunt mesa
#

Yeah

rain falcon
#

@grave sparrow SHUT UP!

#

@grave sparrow DO IT!

sterile root
#

How difficult is it to develop simple tweaks? I know some C, Python, JS, made a few websites, and other hobby projects in Python and C. Really interested in maybe starting tweak dev

tepid olive
#

you'd need to know some objective-c

sterile root
#

Yeah I'm aware, and learning new languages isn't a problem

cloud yacht
#

Just use a racial non-slur

rugged jay
#

im hosting PreferenceLoader from artikus , edited by MrGcGamer for rootless support .

it use GNU Lesser General Public License v3.0
so should be fine as distribution is allowed , right ?

tepid olive
#

yes

cursive rampart
#

are you guys developing catgirls yet?

tepid olive
#

meow

cursive rampart
#

mow

hasty ruin
cursive rampart
tepid olive
#

does ptrhead count as debugger

vivid dew
#

maybe

tepid olive
#

its not my code its from the devs who made the hook

robust halo
#

Is there any documentation on how to start making your own tweaks

robust radish
elder scaffold
#

In the current project, injects libinjector.dylib into xpcproxy com.apple.cfprefsd.xpc.daemon by setting DYLD_INSERT_LIBRARIES with posix_spawnp hook.
Next, inject cfprefsdhook.dylib into cfprefsd by libinjector.dylib with posix_spawnp hook as well.
Do you think there is a better way? or is this good enough...? @naive kraken

naive kraken
#

btw if you or any other member of the palera1n team wants to work on the installd hook, be my guest lol

#

The hook should
A) Redirect icon cache to /var/jb
B) Add /var/jb/Applications to the applications indexed by the system

elder scaffold
naive kraken
#

a POC for B) is in the Dopamine repo, keep in mind it causes a bootloop when actually rebuilding icon cache, no idea why but SpringBoard just enters crash loop (like with the bind mounts)

elder scaffold
#

oh catok
icon cache related are cursed. 💀

naive kraken
#

it might just be the fact I did not resolve the /var/jb symlink

#

but I'm not sure

acoustic imp
#

Theos issue?

faint timber
#

Seems like xcode is frozen

#

Install procursus to avoid this kind of bs

acoustic imp
#

This what I clicked

faint timber
acoustic imp
faint timber
#

Should

#

Don’t quote me tho

steady nest
#

yeah

tepid olive
robust radish
#

another hook does not count as a debugger, its another breakpoint

tepid olive
#

Then why does it break my other hook

ocean raptor
#

Does setting a second hook remove the first break point? Or does it cause the first breakpoint to think it's the second?

tepid olive
#

how do i debug that

ocean raptor
#

Well figure it out

#

Idk

tepid olive
#

yeah how

#

I released this code in ElleKit (with limited %orig support) @tepid olive

tepid olive
#

how do i use ellekit

coral gazelle
#

What tool is used by iOS restore ramdisks to flash the NOR/iBoot partition?

tepid olive
# tepid olive how do i use ellekit

build the library with xcodebuild or take one from a published deb and use ```
void EKJITLessHook(void* _target, void* _replacement, void** orig)

steady nest
tepid olive
#

Yes

#

where do i get the library

#

github?

#

yeah

#

How do i include it in my tweak

#

is it possible to decompile a tweak that has already been compiled into an iOS dynamic library (.dylib)? Google couldn’t give me a straight answer (which is why I’m asking here)

#

dont think so but isnt that piracy

tepid olive
tepid olive
tepid olive
tepid olive
robust radish
#

the dylib

tepid olive
#

so i need to build with xcode and then link the dylib i get

#

but my xcode want dev account

tepid olive
ocean raptor
tepid olive
ocean raptor
tepid olive
#

Which folder

ocean raptor
#

GitHub actions in the ellekit repo

tepid olive
#

Thanls

#

thanks

#

i used LDFLAGS to link but it telle me library not found

acoustic imp
faint timber
acoustic imp
faint timber
#

Please don’t

#

tar will extract zst and untar automatically

#

sudo gtar xf bootstrap.tar.zst -C /

acoustic imp
#

nvm that didn't work

faint timber
#

No , -C / was intentional

#

It’s extracting to root

acoustic imp
#

ohh, so then ineed to replace the bootstart... w the actual name of the filr (sry iv never used gtar/zstd before, and im not use to mac os)

acoustic imp
faint timber
#

Nope it worked

acoustic imp
#

oh, so the bootsrtap is installed?

faint timber
#

It’s tryna modify /. Which is impossible

acoustic imp
#

(sry if this is dumb q)

radiant idol
#

Someone installed my tweak through Saily and it seems to just not be working for them. I've never had anyone experience this issue before. Anyone know what I could suggest them to do?

radiant idol
# tepid olive not use saily

Well yeah they reinstalled it from Zebra and it still doesn't seem to be working; I think Saily messed up dependency issues.

I don't want to straight for restoring rootFS since they seem to have lots of tweaks installed.

They're using an iPhone 12 Pro Max on u0 (iOS 14.3)