#development

1 messages · Page 515 of 1

gentle grove
#

Eudy

#

Rusy

#

Rust

tepid olive
#

yes

gentle grove
#

No

tepid olive
#

it is rust

gentle grove
#

I've committed war crimes while learning rusr

hardy glen
#

Do you need a dev account to be able to sign safari extension apps. No it’s not for piracy fr thinking of making my own

twilit jungle
#

The label for the contact’s mother’s sibling’s younger daughter or father’s sister’s younger daughter

lime pivot
#

god they really made an enum of all of them, impressive

#

who wasted their time on that

undone nest
#

someone at apple did something bad and got punished fr

hardy glen
#

this shit is so easy to make tho

tepid olive
#

this is also funny:

Oct  5 15:22:06 familycircled[7342] <Error>: No iCloud, no family. You know the rules.                                                                    ```
grim sparrow
slender glade
#

Process() nfr

tepid olive
#

I think it was syslog but yeah

#

are you able to see it on a jb devic

#

yes, even without JB

#

just Console.app on macOS or idevicesyslog otherwise

#

on a JB device oslog may work on-device

#

do you have to be signed in

#

out

#

of ic

#

no that's the whole point, this happens if you're not logged in to iCloud

#

alr

#

who fucking made that string tho frfr

indigo peak
#

the not useful things that have been enumed*

lime pivot
#

enumed, that's a brand new word

indigo peak
#

enum -> enumerate/enumeration | enumed -> enumerated

slender glade
#

me -> your mom -> you

torn oriole
#

😳

indigo peak
#

arent i older than you?

slender glade
indigo peak
#

12

slender glade
#

.

#

wtf

indigo peak
#

im not 12

#

missclick

#

im 11

slender glade
#

I turned 16 in September

#

So

indigo peak
#

hah loser

torn oriole
#

hah loser

#

I turned 16 in July

tepid olive
#

hah loser
I turned 16 in January 2015

slender glade
#

tell us stories abt the wars you fought in

#

Since you’re old

indigo peak
#

youre old and shit

#

cases = cases.cases amazing code CH_Clap

torn oriole
#

Isn’t oslog a tweak?

#

Also that menubar kinda fresh doe 😳

slender glade
indigo peak
hardy glen
#

you just need to look at the syslog

indigo peak
#

so after you install it you can run the oslog command

slender glade
indigo peak
#

im putting it in terms i think the whitename can understand

slender glade
hardy glen
#

i do that sometimes

#

bruh... i have rats in my walls

indigo peak
#

i still havent gotten to gage the knowledge

hardy glen
#

i legit hear rats running all around

#

my walls

indigo peak
#

L

hardy glen
#

and i hear them too

#

like their annoying little noise

#

when they eat

indigo peak
#

i used to have squirrels in my rafters

#

and then we finally kicked them out

#

and like 3 in the morning all i would hear would be

hardy glen
#

bruh how tf do i get rats out my walls uhh

#

great the walls

slender glade
indigo peak
#

rattatatatatattatatatatatatata brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr skskskskskskkkskksks

indigo peak
slender glade
#

Fiore got that dev role and forgor how to act

hardy glen
#

im taking a shit and i heard a fucking rat do his minion high pitch noise for the longest time

#

im taking a shit and i heard a fucking rat do his minion high pitch noise for the longest time

tepid olive
#

Any oslog cli deb that actually works on 14

indigo peak
#

im just superior to everyone

torn oriole
#

My guys got the minions in his walls

indigo peak
#

thats not higher than me on the foodchain

hardy glen
#

the ideal way is through a computer

torn oriole
#

Just use console.app 💀

slender glade
hardy glen
#

not everyone has macos

indigo peak
#

not everyone has a mac

hardy glen
#

^

indigo peak
#

i dont

slender glade
#

broke asses

torn oriole
#

Cope then

slender glade
#

I know Nathan does tho

indigo peak
#

but i still use syslogs

slender glade
#

There’s some libimobiledevice utility for it

hardy glen
#

console.app is just a frontend for device syslog

#

idevicesyslog

torn oriole
#

wait libimobiledevice was built for windows

indigo peak
#

yes

torn oriole
#

Idevicesyslog ez

indigo peak
#

i ssh into my phone and run the oslog command on that ssh thing

#

ez

torn oriole
#

DCSD cable

#

Ez

slender glade
#

ssh without USB is the slowest thing

#

Ever

#

ssh over usb is cum

tepid olive
#

Sex over usb

hardy glen
#

depends what you are doing over ssh

#

if you just using theos/syslog and running simple commands over ssh. you don’t really need the usb its still pretty fast

slender glade
#

not for me

#

My terminal starts to lag

#

tremendously

hardy glen
#

is ur router good?

slender glade
#

Doing, well, anything over non USB ssh

slender glade
#

Like

#

General internet speeds?

hardy glen
#

bandwidth

slender glade
#

It’s very fast

hardy glen
#

dk then. what terminal do you use on your computer

slender glade
#

iterm 2

torn oriole
#

Does it lag with stock terminal.app

slender glade
#

Yes

hardy glen
#

they do the same thing

slender glade
#

people who use stock terminal are kinda weird

#

just download it2 bro!!

hardy glen
#

idk it doesn’t lag for me, but then again i don’t run that many commands on it

#

i use on device lldb and it works decent

#

it lags sometimes but no hella

torn oriole
hardy glen
#

it takes one second fr

haughty tulip
#

have you tried

#

not 'bricking' your os installs

hardy glen
#

my terminal gotta be all setup before i can even do anything

torn oriole
#

i think my ssd is failing rather than me bricking them tbh

haughty tulip
#

i use stock term

torn oriole
#

Read/write speeds are getting slower by the day

haughty tulip
#

L

#

Available Spare Threshold: 99%
Percentage Used: 1%
Data Units Read: 44,269,572 [22.6 TB]
Data Units Written: 27,111,259 [13.8 TB]
Host Read Commands: 609,098,871
Host Write Commands: 261,952,897

#

that's my mac

torn oriole
#

Give the tool you used and I will show mine

hardy glen
haughty tulip
#

brew install smartmontools

torn oriole
#

I think from last time smartctl just didn’t be very smart with my ssd

tepid olive
torn oriole
#

Well then

#

That’s a few more “old age” and “pre-fail” from when I last checked

slender glade
#

your_mom()

#

@grave sparrow do I just need to add setuid and setgid for a root helper tool

#

for it to run things as root

#

then you can give it any command to run as root and it’ll do so?

#

What if I verify who spawns it

#

Run 1 command as root

#

That’s it

#

dimentio

#

there is libdimentio but idk how I’d use that

#

But that requires root too I think

#

yes sir

#

like this

#

wheee is the like this tho

#

Ok nvm

#

LOL

#

thanks

#

So that’s for the helper tool itself?

#

o

indigo peak
#

Hello mr assembly man

slender glade
#

execl() is the obj c version of System()?

indigo peak
#

Would you be my friend if I made a hook for gameseagull in assembly?

#

Like pure assembly

slender glade
#

o

tepid olive
#

I just use posix_spawn fr

indigo peak
#

same

grizzled gulch
#

How can I access this.potion variable in PhuThuy.js to use in index.js guys ?

slender glade
#

Isn’t that bad

#

Wouldn’t that crash the app

grizzled gulch
#

Really lol

slender glade
#

Thanks!

indigo peak
slender glade
#

@grave sparrow on one last question

#

I’d have to create a make file for the new tool

#

Right?

tepid olive
slender glade
#

In the original make file

#

What do I put

#

To tell it to the compile the helper tool

#

Wouldn’t this make a separate deb for the helper tool?

#

Indeed

#

W

#

thank youuuuuuu

tepid olive
slender glade
#

Thank you MenheraChibiThankYou

#

Looks epic

#

Will do it later and tell you how it goes 😁

#

I never figured out, how do you configure Xcode to use make files

#

I don’t want to keep switching between terminal and Xcode

#

🤨

#

ohhh

#

Can you do that without an xcodeproj

#

I started writing code for jb stuff by putting a Package.swift so Xcode would open the source root properly

#

It’s def a nice setup

grim sparrow
#

Package.swift is fun

restive ether
#

true

slender glade
#

@lime pivot dumb question, but can something that uses $(THEOS_MAKE_PATH)/library.mk makefile use the LIBRARIES flag? like for example randomLib_LIBRARIES = MobileGestalt

west grove
slender glade
#

do not fr me.

#

thank you

twilit jungle
gentle crescent
#

anyone know react? i need some help

#

i have no idea why, but using axios to make a post request makes my page refresh. fetch doesnt

lethal ice
#

try reacting to the times and using a better language

tepid olive
#

Is Lua used?

gentle crescent
#

ive used react and vue react def on top

#

react typescript specifically

pearl sail
#

He is not. Why do you think he is an admin for this server

stable wharf
#

I am making some xenHTML widgets and was wondering if there is a way I can emulate an iphone on my pc so I dont have to upload the files to my phone everytime I want to preview it?

weary heath
#

Maybe the Xcode iPhone simulator and Simject would work

stable wharf
weary heath
#

The vscode thing? Yeah I remember but I haven’t heard anything about it since

#

Maybe someone here will know

#

WWTC doesn’t have the best track record of tweaks announced there actually coming out though

stable wharf
#

Thanks, I will check out the xcode simulator

twilit jungle
#

Its HTML... can use a browser

slender glade
#

lies.

#

HTML Requires an IDE

twilit jungle
next wadi
#

nothing does

slender glade
#

almost like i was joking fr

stable wharf
#

without altering the code for it to work on pc instead of iphone

upbeat wyvern
#

yeah that's been around a while, it's amusing

indigo peak
#

What is wildcard

twilit jungle
slender glade
#

what lang uses .s? i think swift doesnt

#

nvm

#

its assembly

#

im uncultered

indigo peak
#

Like one uses .asm but one with better syntax uses .s

#

I think

slender glade
#

is this what the whole

#

at&t vs intel

#

thing is about

indigo peak
#

Sorry I’m not well versed in assembly yet

#

what’s the difference between .s and .S

#

What’s the difference between jpg and jpeg

#

ah

#

that surprisingly made sense

indigo peak
#

yeah

#

i do actually

#

you got a problem?

#

gcc is a console tweak

hardy glen
#

did you finally turn off the gpu?

#

fan

#

?

#

damn

indigo peak
#

@hardy glen birdshit in da ida

hardy glen
#

autoshot wen

late ridge
#

._.

indigo peak
slender glade
#

Just when the talk abt a stable .1 release began

hardy glen
#

real ones only use objdump

tepid olive
#

/s ofc im not pirating applerollingeyes applerollingeyes applerollingeyes applerollingeyes applerollingeyes applerollingeyes applerollingeyes applerollingeyes applerollingeyes applerollingeyes

indigo peak
#

yeah ofc bestie

lethal ice
#

wtf

#

no it only processes the one

#

i remember i was trying to use a .s file in a theos project and it kept shitting itself until i changed it to .S

#

cflags n shit don't work on .s files only .S

#

idk why .s even exists

#

forgot about that project

#

i was trying to make a chip8 interpreter in raw arm

tepid olive
#

with theos?

lime pivot
#

damn you got me there bro

lime pivot
gentle grove
#

reaction

lime pivot
#

is there even a difference between .s and .S?

gentle grove
lime pivot
#

well that makes it clear as mud thanks

gentle grove
#

i think you need your eeyes checked

tepid olive
#

True

lethal ice
next wadi
upbeat wyvern
#

has anybody seen problems with substrate on 14.6+? I saw somebody say that on reddit but it has no details or info

#

only thing I've seen to indicate there are issues other than one reddit post is some suspect GIR spam that makes no sense

hardy glen
tepid olive
#

truly

#

just make it in C like a normal functioning human being

upbeat wyvern
tepid olive
#

there was a tag explaining that substrate was broken on 14.6+ on here

haughty tulip
faint lionBOT
# haughty tulip !t checkra1n
checkra1n

checkra1n supports A7-A11 devices on iOS 12.0-14.8. However, A11 users on 14.0-14.8 cannot use a passcode, Face ID, Touch ID, nor Apple Pay. checkra1n also requires macOS or Linux - for Windows, see Odysseyn1x.

Substrate Safe Mode is broken for some users on 14.6 and higher and you may experience respring loops. It's recommended to use Odysseyra1n instead, Sileo Safe Mode does not suffer from this issue.

A9X devices on 14.5+ should read [this](#common-issues message).

haughty tulip
#

Oh safe mode is broken

#

nvm

upbeat wyvern
#

Which seems to have no basis in reality

#

Where is any info about this?

#

Or person with the problem or how to duplicate it or anything

#

Yes that bs message is why I’m asking for anybody with a legit issue with it

slender glade
#

But I never was

#

I restored roots and re jail broke like 5 times

#

And no issues

#

@tepid olive I don’t think you were able to, either

upbeat wyvern
#

If anybody can get me crash logs or how they duplicate an issue (or you know let me know when there is something having issues so I can look at it lol)

tepid olive
#

yeah I didn’t have any issues with Substrate on 14.6+ so far but I’ve only used it rarely

steady nest
#

I just installed it on my a10x and it broke, 14.6 and 14.7

slender glade
#

send a mfin log

tepid olive
#

A11 is fine for me

#

only A10X I have is the Apple TV 4K which only supports Substitute fr

steady nest
slender glade
#

BRUHHHH

high citrus
slender glade
#

whats with you and the memory leaks man

native dune
#

substrate was fine on 14.7.1 on my 6s

tepid olive
#

@grave sparrow mfer forgot how to enter dfu

#

wdym Apple's website doesn't even say how to enter DFU

gentle grove
#

Docs

#

I remember apple has a page for dfu

#

But it was very vague

tepid olive
#

but the link to "how to enter DFU" just shows how to enter recovery

gentle grove
#

oh idk the difference between those

tepid olive
#

booba

#

are you using a usb c cable @grave sparrow tr

#

you're not using USB-C right?

slender glade
#

@grave sparrow did you just fail a restore

tepid olive
#

have to make sure man

gentle grove
#

Toilet vat

#

Cat

tepid olive
#

gm

slender glade
#

One time I wasn’t able to go into dfu, the apple logo would flash for like half a millisecond

#

After a failed restore

tepid olive
#

iOS 15 lets you enter DFU with USB-C btw fr but only from normal mode, not from recovery

#

and for some reason when entered this way, DFU times out after 2 minutes

gentle grove
slender glade
#

bruh

tepid olive
#

mfw

slender glade
#

why did that restriction even exist

tepid olive
slender glade
#

Do you need dfu for checkra1n

high citrus
tepid olive
#

they're not changing DFU itself

tepid olive
#

Siguza tried it and it worked for him too

steady nest
#

unless it's pwned

tepid olive
#

sometimes it times out even when pwned for me

#

but sometimes it stays there forever unless I reboot it

#

you literally just enter DFU the same way as before from normal mode

#

but it works with USB-C too on iOS 15

#

wtf i do

#

(this time)

#

hope your brain bootloops mid restore

#

i believe that's called a stroke

#

did you try another cable

#

time to give it up

#

no more iphones

proper reef
#

Hello. Does anyone know how to extend a Mach-O segment?

slender glade
proper reef
#

Of course - but it always gets killed

slender glade
#

Something something ldid

#

Something something

proper reef
#
otool -tV /Users/aiden/binary2
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: '/Users/user/binary2': truncated or malformed object (load command 6 with size less than 8 bytes)
```
#

No idea

#

I'm trying to figure out how to do it properly

high citrus
slender glade
#

It crashes my notes app

#

lmfao

high citrus
#

lol

proper reef
#

Whenever I try to write to certain headers it'll error

high citrus
#

Safari seems to have even more trouble when I create urls that are around the 12mb lol

slender glade
#

I don’t blame it

high citrus
#

It almost seems like Safari wasn't built for large urls

proper reef
#

now my new question is how do I patch it properly

slender glade
#

ask the assembly man

high citrus
nimble parcel
#

it’s not that easy

#

depending on where the segment is, one might need to rebase every other segment as well

#

which is also not easy because you might need to deal with fixups as well

proper reef
#

that's what I have been trying to do (by increasing the offsets)

nimble parcel
#

the only segment that’s easy-ish to extend is LINKEDIT afaik

#

since it’s usually the last one

#

(see codesign_allocate)

proper reef
#

well I'm trying to extend __TEXT so i can insert code

#

(and before anyone ask s- no I can't just inject a dylib)

#

So I hav to find a way to static modify the code of the program

#

(and change entrypoint but yeah)

#

Whenever I try to overwrite the LC_SYMTAB, even if I make no modifications, it errors...

#

@grave sparrow Do I also need to increase vmaddr?

#

0x0000000100000000 yep

#

Yes, but I'm extending it so doesn't the address for the next commands have to increaase by the same amount?

#

alright

proper reef
#

truncated or malformed object (for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB bad library ordinal: 8 (max 4) for opcode at: 0x0)
hmm

#

@grave sparrow I might've found the problem

#

I need to list symbols.

proper reef
#

Symbols seem to be pointing 16 bytes behind where they hsould

proper reef
#

Now I can hopefully figure it out

tacit spade
#

has anyone tried getting the mouse cursor effects working on iPhone

tepid olive
#

Any solutions?

#

@proper reef

#

<@&355177530061357057>

proper reef
tepid olive
#

OH YEAH

surreal mountain
#

write correct code

tepid olive
#

I’m dumb af

native dune
proper reef
#

yeah we all make dumb mistakes sometimes

surreal mountain
#

mod menu

proper reef
#

still trying to figure out how to properly expand a mach segment

restive ether
gentle grove
#

night

grim sparrow
gentle grove
indigo peak
#

@developers

#

gm

indigo peak
#

cant ping all devs

native dune
#

<@&355177983398641674>

vivid dew
#

stfu

indigo peak
#

they also installed theos to root bruh

next wadi
#

@developers

#

bruv.

gentle grove
#

DElveoper

#

s

next wadi
#

<@&355177983398641674>

gentle grove
#

slim’s kittenRole icon, Developers

Today at 5:59 PM
@Developers

slender glade
#

I’m starting to think it’s not “another”

indigo peak
#

<@&896169980779962380>

#

yoooo

#

bruh

next wadi
#

ok you may have a girlfriend but have you ever seen an obese man shooting heroin outside of a tj maxx

#

thought not.

indigo peak
#

<@&355177983398641674>

#

yay i got it

twilit jungle
slender glade
#

@indigo peak

indigo peak
indigo peak
twilit jungle
indigo peak
#

dont you bruh_* me

twilit jungle
tepid olive
indigo peak
#

dont you bruh* me

slender glade
#

Wildcard bruh

twilit jungle
indigo peak
#

i swear to god

#

wtf

hardy glen
#

bruh squid game was weird asf

slender glade
hardy glen
gentle grove
next wadi
#

@twilit jungle

#

dbruv

indigo peak
#

👻

#

d ^

next wadi
#

hi there dbruv

#

i mean dbruv

#

dbruv

#

dbruv

#

sorry

#

dbruv

#

dbruv

#

dbruv

#

?????

indigo peak
#

im gonna make a tweak that automatically adds text replacement to dgh0st to dbruv

twilit jungle
gentle grove
#

or [Bb]ruh.*

twilit jungle
gentle grove
#

grep -i bruh.*

hardy glen
#

you can thank me laterfr

gentle grove
hardy glen
#

art

gentle grove
#

nice

hardy glen
#

looks nice as wallpapers, ngl one of the best artwork i’ve seen

indigo peak
#

fuck regex

gentle grove
#

around it

indigo peak
#

idk stackover flow gave it to me

gentle grove
#

i assume \w is the same as \W

#

it seems pointless when you can just match .*bruh.*

indigo peak
#

its supposed to ignore case, and catch all bruhs, no matter what's around it

gentle grove
#

itll remove all the surroundings too

indigo peak
#

/.*bruh.*/i works

#

this is why i dont regex

#

who the fuck likes to regex

#

besides kabir

gentle grove
#

what's wrong with that regex

#

it looks fine to me

indigo peak
#

there is nothing wrogn

#

im saying it works

gentle grove
indigo peak
#

i mean

#

who enjoys regex

#

like

#

honestly

gentle grove
#

i do

#

it's very useful

indigo peak
#

im currently trying to write tweaks without logos

#

because i want to feel cool

gentle grove
#

idk what that is

indigo peak
#

logos is the typical language for tweaks

#

its what implements all the directives

gentle grove
#

hmm

indigo peak
#

like %orig; %hook\%end %new

gentle grove
#

wth

indigo peak
#

so how im trying to write a tweak not using that

#

in pure objc

#

and then after that

#

assembly!

lime pivot
indigo peak
#

yes, bit it would be funny

#

plus i want scoob and capt to like me again

vivid dew
#

false.

indigo peak
#

@gentle grove ```OBJC
#include "Tweak.h"
#include <substrate.h>
#include <Foundation/Foundation.h>

// Without logos

@interface ArcheryScene
@end

static void hook_ArcheryScene_setWind(ArcheryScene *self, SEL cmd, float power, float angle);
static void (*orig_ArcheryScene_setWind)(ArcheryScene *self, SEL cmd, float power, float angle);

static void hook_ArcheryScene_setWind(ArcheryScene *self, SEL cmd, float power, float angle) {
orig_ArcheryScene_setWind(self, cmd, 0.0, 0.0);
}

attribute((constructor)) static void init() {
MSHookMessageEx(
objc_getClass("ArcheryScene"),
@selector(setWind:angle:),
(IMP)&hook_ArcheryScene_setWind,
(IMP *)&orig_ArcheryScene_setWind
);
}```
yields the same result as

#
%hook ArcheryScene
// with logos

-(void)setWind:(float)arg1 angle:(float)arg2 {
    %orig(0.0, 0.0);
}
%end
gentle grove
#

wth

#

dumb language

vivid dew
# indigo peak <@!115076234869735428> ```OBJC #include "Tweak.h" #include <substrate.h> #includ...

how about you ```objc
#include "Tweak.h"
#include <substrate.h>
#include <Foundation/Foundation.h>

// Without logos

@interface ArcheryScene
@end

static void hook_ArcheryScene_setWind(ArcheryScene *self, SEL cmd, float power, float angle);
static void (*orig_ArcheryScene_setWind)(ArcheryScene *self, SEL cmd, float power, float angle);

static void hook_ArcheryScene_setWind(ArcheryScene *self, SEL cmd, float power, float angle) {
orig_ArcheryScene_setWind(self, cmd, 0.0, 0.0);
}

attribute((constructor)) static void init() {
MSHookMessageEx(
objc_getClass("ArcheryScene"),
@selector(setWind:angle:),
(IMP)&hook_ArcheryScene_setWind,
(IMP *)&orig_ArcheryScene_setWind
);
}

indigo peak
#

.

#

that was the intention

#

but i dont brain

#

yeah i know exactly what that does

faint timber
#

Cursed as fuck lmao

indigo peak
#

hah no

#

can confirm, no he does not

#

i just asked him

#

understood

#

wait

#

what

#

fuck you capt

faint timber
#

Wait a second wouldn’t it be #2? @grave sparrow

#

I’m a bit rusty tho

#

Yeh

#

That’s something Snapchat definitely did in the past

#

Fuckers

indigo peak
#

Cryptic mr snapchat man

indigo peak
#

@faint timber

#

its going great!

native dune
#

no

#

no

#

no

next wadi
#

f

faint timber
gentle grove
#

@next wadi wtf why are you orange

gentle grove
#

wait

restive ether
gentle grove
#

idk why but i forgot that develpoer was orange

#

for like 3 mins

faint timber
#

anyone have libiresolv.9 dylib for iOS

misty cradle
vivid dew
indigo peak
#

It’s a learning process , but I don’t wanna learn anymore

slender glade
#

i love the extensive documentation

hardy glen
#

self explanatory

slender glade
hardy glen
#

new devs after they are told to google

slender glade
#

shut up reallybitch

slender glade
#

also the method was kinda hard to find on the website

#

On the NSTask page

hardy glen
#

launch

#

and

#

return

#

error

slender glade
#

you know what I mean

hardy glen
slender glade
hardy glen
#

why tf is it growling

slender glade
#

have you ever touched a cat before

#

Hearse when he’s told to google how cats work

hardy glen
slender glade
#

?????????????????

hardy glen
#

who was that

slender glade
#

you saying you touch cats with baseball bats

slender glade
#

that’s not it growling

#

That’s it purring

#

Means they’re comfortable

#

?!

#

Nah don’t delete it

#

Cause I caught you

hardy glen
slender glade
hardy glen
slender glade
#

WTF

#

NAH

hardy glen
#

caught you too

slender glade
#

TJATS FAKE

hardy glen
#

thats wht they all say uhh

slender glade
#

Your honor

#

Hearse is fabricating evidence

hardy glen
#

deleted

slender glade
#

Wtf

slender glade
#

Shit bro

#

My whole career is over

#

I’m gonna fake an ID to mexico

hardy glen
#

nah don’t delete it

slender glade
hardy glen
proper reef
#

This is very confusing.

#

I am trying to properly extend a Mach-O segment

#

I get the error truncated or malformed object (for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB bad library ordinal: 8 (max 4) for opcode at: 0x0)

lethal ice
#

ooh someone is doing cool stuff with mach o

#

finally

#

@proper reef what are you trying to change

proper reef
#

to modify a binary statically

lethal ice
#

that might prove to be way more difficult than you think

proper reef
#

It already has.

indigo peak
lethal ice
#

you would have to adjust every single offset

#

past the end of __TEXT

#

also it looks like the dyld opcode table doesn't like u fucking around with the segment

#

i assume you're trying to extend it to fit in some custom code, you might just be able to overwrite unused code if you're lucky

proper reef
lethal ice
#

another strategy would be to "back up" a chunk of original code into an unused part of the binary, then your code can restore it back

proper reef
#

If I were to compile a simple hello world, there wouldn't be enough unused space

proper reef
lethal ice
#

you'd be surprised there's tons of empty space in mach o binaries

#

im just not sure if writing to it would cause issues

#

why don't you use something like theos-jailed which can create static binary modifications with ease

proper reef
#

Actual static binary modifications?

lethal ice
#

yeah you take the IPA of the app and its just like writing a tweak but it packages it into a new patched ipa

indigo peak
#

GamePigeon++ uhh

lethal ice
#

probably doesnt support app extensions trol

proper reef
lethal ice
#

it probably does but is that an issue

proper reef
#

Yes

#

because that isn't statically modifying it

#

All I need help with is getting the binary to run after extending it

#

I can do the code patching myself

#

Do you know anyhting about this?

proper reef
#

@lethal ice can you elaborate more on the "another strategy would be to "back up" a chunk of original code into an unused part of the binary, then your code can restore it back"

#

would I have to create a new segment?

proper reef
#

any help?

paper shore
#

How can you make own jailbreak tweaks and stuff like that

#

And can you do it on windows?

grim sparrow
paper shore
#

Ok thx

#

May i ask in which Programming Language do you code Tweaks?

grim sparrow
#

If you refer back to my previous message

twilit jungle
#

Read that comment

grim sparrow
#

What this means is that you need to be familiar with Object Oriented Programming and how to use Objective C.

twilit jungle
#

uroboro was kind enough to create a guide

grim sparrow
restive ether
#

i have never learned how to read and i don’t plan to!

grim sparrow
#

i have been suffering all day

proper reef
#

what if nothing is unused

#

or if there's not enough unused space

restive ether
#

at least 1

indigo peak
proper reef
#

i'm trying to add enough so that I can add more later

#

@grave sparrow also i tried the thing with disassembler but im bad at finding details

twilit jungle
#

There are quite a few write ups on mach-o formats, you shouldn’t have to find the details yourself except for debugging

proper reef
twilit jungle
#

No.

proper reef
#

Yeah. That's my problme.

twilit jungle
#

No it’s not

#

Your problem is you are trying to modify a system without understanding it

proper reef
#

Ok

twilit jungle
#

There are lot of write ups on mach-o format to understand that system. What you are trying to do would be straight forward once you understand how the system handles segments.

proper reef
#

Alright. Can you link me some?

#

I'm sure there are some write ups that you recommend as higher quality etc.

twilit jungle
#

Not at my computer but google for parsing Mach-o format. The one with diagrams of the various structures is good one.

vivid dew
#

the ones written in chinese are good

twilit jungle
#

True

restive ether
#

source: am chinese

vivid dew
# restive ether source: am chinese

This is an auto-generated message from the First National Socialist Bank of the People's Republic of China to inform you that 25 social credit points have been added to your balance. Please do not reply to this message.

vivid dew
#

no, the First National Socialist Bank of the People's Republic of China

proper reef
#

no it's actually the People's Bank of China

vivid dew
#

no, the First National Socialist Bank of the People's Republic of China

gentle grove
#

is it the People's First National Socialist Bank of the People's Republic of China

proper reef
#

see

gentle grove
#

oh

proper reef
gentle grove
#

the Central Bank of the People's Republic of China

proper reef
#

people's bank of china

restive ether
gentle grove
#

so the People's First Central National Socialist Bank of the People's Republic of China

proper reef
#

from what I've seen my issue is symbol related maybe

hardy glen
#

so you’re telling me i must look up the information myself on google and you simply can’t tell me

proper reef
#

i already tried much of googling

hardy glen
#

you have to learn how the mach-o format works in order for you to understand how you would need to do this.

#

this is what i would assume

#
GitHub

Mirror of OS X ABI Mach-O File Format Reference. Contribute to aidansteele/osx-abi-macho-file-format-reference development by creating an account on GitHub.

vivid dew
#

you're telling me i have to read those

#

and you can't just tell m exactly what code i need to write

hardy glen
#

that is exactly what i am saying fr

vivid dew
#

the ios development community is toxic

hardy glen
#

last one even has a overview of a hello world executable @proper reef

#

if you don’t hold my hand, how will i learn

gentle grove
lethal ice
#

@proper reef if you look at a mach-o binary in a hex editor, you can see that most of the space is just 0s (probably for alignment reasons)

misty cradle
lethal ice
#

what i meant by what i said earlier is that you might be able to remove a section of original code from the binary, store it in the empty space, and then you can overwrite the original code and after you're done copy it back from where you saved it

proper reef
#

alright

lethal ice
#

1f2003df

indigo peak
#

@lethal ice tweak in brainfuck when?

proper reef
#

best language

lethal ice
#

brainfuck is pixelomer's thing

indigo peak
#

@ornate emberomer

#

hes gon

lethal ice
#

f

indigo peak
#

so you take his place

#

L

#

pwn20 got banned

lethal ice
#

i dont wanna use brainfuck

#

its interpreted so its slow

#

fuck interpreted languages

indigo peak
#

what other language would you use

#

could you actually write tweaks in like java/python or shit like that

lethal ice
#

C is just perfect i would use that

indigo peak
#

so like

#

Tweak.c

lethal ice
#

you could if you interface with c/c++ or another language that can read and write mem

#

logos is processed down to c/c++ code anyways so its not much different

indigo peak
#

i wanna be funny and make tweaks without objc/logos

#

or at least one gamepigeon hook

#

i did that

#

but

misty cradle
#

i wanna waste time and make tweaks without objc/logos

indigo peak
#

thats only without logos

lethal ice
#

just write in asm trol

indigo peak
#

I TRIED

#

FUCK

lethal ice
#

how far did u get

indigo peak
#

uhm

lethal ice
#

let me guess it never stopped crashing

indigo peak
#

you dont wanna know

#

no

#

i uh

#
.text
_init:
    ret


.align 4

.mod_init_func

.data
class: .asciz "ArcheryScene"
sel: .asciz "setWind"
#

i dont know where to start

lethal ice
#

does .mod_init_func actually work

indigo peak
#

it compiles thishowitis

lethal ice
#

you dont have a constructor in there tho so it doesnt do anything

indigo peak
#

i had this

#

but basically you wrote this

#

bc

faint timber
#

I would assume so since most apps use it to execute their obfuscated checks

indigo peak
#

ctrl +x , ctrl + v

#
.text
.align 4

_init:
    ret

.section __DATA, __mod_init_func
.long _init

.data
class: .asciz "ArcheryScene"
selector: .asciz "setWind"
lethal ice
#

now it just needs a hook

#

you also need to store the orig function in .bss trol

indigo peak
#
add x0, x0, class@pageoff
bl _objc_getClass```
#

ez

lethal ice
#

wait no mshookmessageex does it automatically

misty cradle
#

real

indigo peak
#

would i extern it?

lethal ice
#

no just bl _MSHookMessageEx the linker will find the symbol

indigo peak
#

i was thinking .extern _MSHookMessageEx

lethal ice
#

nah that doesnt work

indigo peak
#

interesting

lethal ice
#

.extern can only externalize local symbols

#

wait no im wrong im thinking of .global

indigo peak
#

so bl _MSHookMessageEx is all i need

lethal ice
#

yea and then make sure to add substrate as a library in ur makefile

indigo peak
#

yeye

lethal ice
#

but good luck setting up the args for mshookmessageex trolllaugh

indigo peak
#

thats

misty cradle
#

job

indigo peak
#

where

#

im dying

#

besides the starting part

#

im trying to just piece it together

proper reef
#

args in assembly are the worst part

indigo peak
#

i could tell

lethal ice
#

so when you call a function, anything in registers x0-x15 will probably be trampled

#

so if you need to store a variable across a function call, you can either allocate stack/heap memory for it, or you can put it in x19-x28 and it will not be trampled

#

if you do decide to store a value in a x19-x28 though, you must back up it's previous value to the stack and restore it when you're done

indigo peak
#

so example maybe:

init:
  adrp x0, orig @page
  bl _MSHookMessageEx
.data
orig: .quad 0
#

like that?

#

sort of

#

maybe

#

i think?

lethal ice
#

adrp just gets the page address, so you need to add the pageoff too

#

add x0, x0, orig@pageoff

indigo peak
#

i was just gonna say that

#

like

#

no joke

lethal ice
#

true

indigo peak
lethal ice
#

it's best to write asm in an order that minimizes the amount of registers you need to save

#

so you can build the arguments however you want

indigo peak
#

yeah i need 2 args for this method

#

so would i do

lethal kayak
#

you probably want to store x19 and x30 on the stack before you branch no?

lethal ice
#

x30 always needs to be saved when calling a function unless you use a tail call

lethal kayak
#

ye

lethal ice
#

x19 doesnt need to be saved unless you overwrite it

#

wait mshookmessageex takes more than two args wtf

#

class, selector, hook, orig

indigo peak
#
init:
  adrp x0, orig @page
  add x0, x0, orig@pageoff

  adrp x1, orig @page
  add x1, x1, orig@pageoff
  
.data
orig: .quad 0```
vivid dew
#

fr

lethal ice
#

you should get the class and the selector before you address the hook/orig since you need to call objc_getClass and sel_registerName

lethal kayak
#

wait i meant the frame pointer x29 not x19

#

do you not need to save that

lethal ice
#

oh ye you can if you want to use it but its not necessary

indigo peak
lethal ice
indigo peak
#

and why would i need to registerName

#

im not doing the equivalent of %new

lethal ice
#

sel_registerName registers the selector with the objc runtime so it can actually be used

indigo peak
#

ohh

lethal ice
#

compiled objc binaries don't call it since they have a bunch of objc metadata sections that store the info but it's so much easier to just dynamically create it

#

i cant believe i was in jail 24 hours ago and now im just back to being scoop

indigo peak
#

makes sense

lethal ice
#

you saw the car right frcoal

#

yea ...

lethal kayak
#

oh

#

no

#

I didn’t

indigo peak
#

wait you actually got put in jail wtf

vivid dew
#

wtf

lethal ice
#

yea i was in jail from 4:45 am until 6 pm

vivid dew
#

drunk driving scoop

lethal ice
#

i was driving on mushrooms frcoal

vivid dew
#

seems fine

lethal ice
next wadi
#

TROLLL

#

scoop be like

lethal ice
#

yea the car dead

#

i should have been dead

next wadi
#

“bro is that a gordita in the road”

lethal ice
#

lmao

next wadi
#

🌳 🚙

#

:bang:

#

wtf

lethal ice
#

my car launched like 5 feet in the air off of a retainer wall and slammed into a tree

next wadi
#

troll

lethal kayak
#

scoop when he sees a giant troll face in the road and tries to go around him

lethal ice
#

i came to and had to crawl out the shattered window because all the doors were sealed shut

indigo peak
#

all the damage seems to be on the right side, which in america, you drive on the left side

lethal ice
#

nissan altima 2014

next wadi
#

what car

indigo peak
#

was*

next wadi
#

DAMN IT

lethal ice
next wadi
#

I HATE YOU

indigo peak
lethal ice
#

but yea i probably got a fUcking dui

#

poggers

next wadi
#

you were dui

vivid dew
#

Cringe!

lethal kayak
#

mfer drove on shrooms

next wadi
#

driving under the influence of too much trolling

lethal ice
#

bro i felt like i was in a dream i didnt even think about the fact i was intoxicated

#

intelligence yes trol

indigo peak
#

intj

#

driving under intj

vivid dew
#

give me shrooms

indigo peak
#

deadass

lethal kayak
#

how many times do we have to go over this

indigo peak
#

why did you eat them all yourself

#

wtf

lethal kayak
#

you can’t outrun the trollge

lethal ice
#

i got a quad of shrooms left over if u want them come get them

indigo peak
#

shoulda shared

lethal ice
#

i ate them with my friend

vivid dew
#

@lost nebulahappy birthday big man

lethal ice
#

he drove home ok fr

indigo peak
vivid dew
#

bet

indigo peak
#

oh wait

#

too soon

next wadi
#

scoop

#

are u hurt

lethal ice
#

not really

vivid dew
#

i'm heading down to alabama rn

indigo peak
#

yeah like actually

#

are you ok?

next wadi
#

w

lost nebula
lethal ice
#

wtf im in ARIZONA

#

not redneckville

next wadi
#

WTF.

vivid dew
#

same place

next wadi
#

true

#

same thing

lethal ice
#

i have a pretty bad bruise from the seatbelt but other than that im chillin

indigo peak
#

omw

lethal ice
#

true

next wadi
#

scoop

lethal kayak
#

bro how did you hit something in Arizona there’s nothing there

next wadi
#

did u get into a fight in jail

lethal kayak
#

it’s jail not prison

lethal ice
#

lmao no all the dudes were chill

next wadi
next wadi
lethal ice
#

yea the bruise stretches like 10 inches across my body

next wadi
#

u were put with the ones for non violent crimes is probably why

#

fr

indigo peak
#

@lethal ice omw

lethal ice
#

no fr

next wadi
next wadi
#

eta

#

eta

#

eta

lethal ice
#

there were plenty of bad mfers there they just didnt feel like messing with anyone else ig

next wadi
#

um???

indigo peak
#

bike ride.

next wadi
#

wya

indigo peak
#

i actually wanna ride my bike to arizona now

#

that would be fun

lethal ice
#

u would be surprised some of the biggest guys aren't really mean i talked to this one dude who must have been 300 pounds of muscle about his tattoos for an hour

lethal kayak
#

afraid to leave the conversation

indigo peak
#

i am so glad scoop did not die

lethal kayak
indigo peak
#

/s