#development
1 messages · Page 197 of 1
Crowd Strike: Global Offensive
isnt crowdstrike a thing on macos
they do this already
just
lmaoo
not as a driver
yeah
they do it as a system extension
oh
which still runs in ring 0 but doesn't have any hardware backing it
im pretty sure you dont even need to disable sip for it right?
but because of apples system extension architecture
if crowdstrike crashes
macos doesnt
smh apple preventing employees from getting breaks
windows is an operating system built from hacks, patches, bandaids, and nvidia graphics
windows xp compat

im pretty sure someone spammed f11 once on win11 and it started showing the windows vista controls to minimize maximize and close
:3
@grim sparrow do u think Array<Element>.append feels like having someone on top of u like it’s gotta feel sooo good as an element in an array
.
sorry sorry sorryyyy
it's only great when len <= 3
:3
afterwards you get hydraulic pressed
that prob feels good
.
.
It’s called being romantic
nope where did u go bitch
don't tell amy but im supposed to be asleep rn
Sleep is bad for you
did i ever show u my st moritz photos it was gorgeus
agreed!
i agree
Well no I just came back
Show them
Please wai...
i get that all the time on win 10 😭
i just did it on win 10 💀
macOS only turns my volume down with F11 :/
funny you say that lmao
looks normal to me on my mobile
unrelated but you should prob move those fields down
unrelated but you should make rune 2 icraze

Somebody help with dis lldb shit 
guys can I modify readonly props in my tweak?
extremely not sure but might be able to do it with MSHookIVar?
@radiant idol
Yah probably
I have no idea
If it doesn’t work I’ll let you know
slight issue with this Im not in the the hook of a class Im trying to construct a custom class inside a different class hook so self is not accessible for mshookivar
wait and also isn't mshookivar c++? my tweak is objc
A readonly property is just a method
it depends whether it's backed by an ivar or not
Hook the object and set the method to whatever
how bout _ class vars
@interface TheClas : NSObject {
NSString *_str;
}
@end
error: instance variable '_str' is protected if you write to it obviously
MSHookIvar
just throws variable is set but never used error
MSHookIvar<NSString *>(self, "_str") = @"…";
can't even get that far
if I call new on the class it crashes inside the parent init fumction
what's the error
^
this an apple tweak or a 3rd party app tweak
apple
Im Gonna KIll Myself For Real.
apple doesn't want you to init this class I don't think
but
want you to init via a method
but I want to bypass this and create an "empty" class instance
then hook the ivars accordingly
here are the headers
it extends lsrecord which is the crashpoint
@ashen canyon
lol
yeah i just saw that
i accidentally dumped CoreFoundation instead of CoreServices so it took me longer
no if I change it to nsobject maybe it works
no since new will call the parent new no matter what
Anyone know what causes this:
zsh: bus error frida-ps -Uai```
Getting bus error on every frida command

😦
what happens when you run ideviceinfo
prints out da entire device
Lemme go ahead and reinstall frida + tools
Nope same shit L
attach a debugger
@grave sparrow i managed to do swift hooking
Was pretty easy in the end
idgaf
i’ll delete it
hru
swiftui is mostly inlined so i can’t hook it 😦
same
swift function resolving
Eh I don’t think so
Oh wait yeah
Ur right
But anyway you’ll need a patchfinder no?
pretty good
yeah
did you parse class layout?
Zefram moment 
zefram nintendo ds lite
When zefram 3ds
when I can find my 3DS charger
for now zefram on transparent purple nintendo ds lite
buy adapter wen
whar
why do you guys speak weirdly
Slowly, but surely, ETA kids are deteriorating their brains…
Sorry.
rjb eventually causes terminal brainrot
To anyone who's done a tweak bounty: How do you get paid?
Usually money
Ye
you have native ida for mac now?
no
nfr
lol
apparently orion does not work on jailed tweaks
whoever said they do was wrong
throws a kernal error
Kernal
why did you give entitlements to a framework
wdym i just used sideloadely to bundle orion and the tweak deb file
Sideloadly sign correctly challenge
you are responsiple for your own frameworks
It does. Except c function hooks. In which case you need jit
jit ? just in time compiler?
the thing that javascript has ?
Yes
is there any link for it
You need to research for your own ios/device combo. If you don't hook c functions this isn't needed at all though.
EKJitlessHook:
Yea but orion doesn't have that yet afaik
wonderful
Bruh for c function hook just patch statically before install
you can build ellekit to use jitless
then it’ll work
Does anybody know of a discord client with built in flex debug tool
I can't inject it myself for the life of me
usually you dont 😛
discord mobile is react native
this seems like a fancy way of saying don't bother
pretty much lol
paypal
crypto
etc
Well i would still like to mess with it. Still couldn't find one though. I am not after anything too complicated.
if you want to mess with the ui its easier not to
if you want to mess with networking then just open the dev panel on desktop
have a look at enmity’s docs? i’ve never really played around with it myself
he wants to remove the blocked messages thing iirc
oohhhh
Yeah i already made something i thought would work but its.. well working too good i would say 💀
lemme guess, you blocked out a react native view
that's just removing every message
yeah figured. but type 2 seemed like only blocked messages from my testing with lldb
either thats not true or something bigger is wrong here
professional rust developer
erm u should be using .expect() or deal with error case without panicking whenever possible unless it's impossible to happen
: 3
lol in this case 2 of those unwraps are to unwrap a pointer to its inner type
wtf
no lol this is in type land
types are not directly linked to values
1 message hidden from likely spammer. - Show message
i deleted it
i made arrays better
long *arr = [MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39];
and you can also pass arrays directly as literals
test([MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39]);
instead of them having to be assigned to a variable
erm what improved here
old
long test[] = {MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39};
and it was also done in the code in a way where you had to do type name[] = to declare an array
like you couldnt just do [1] it had to be assigned to something
sure
the only downside to this approach is you can no longer specify a size if you dont wanna fill the whole array
like before i made it so you can do int arr[100] = {1} and it would make 0th index have 1 and the rest be uninitialized but still allocated
wtf this feature is goated
nooo
HELP LMAO
because of the way it works an [] now returns a long pointing to the array's start
so in theory
this is a thing you can do
test([MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39] + 2 * #size(long));
this is so fucking cursed
as yes, idx[ptr] version 2
IT FUCKING WORKS LMAO
fn test(long *val) {
printf("%ld\n", *val);
}
fn main() {
long *arr = [MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39];
test([MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39] + 2 * #size(long));
}
least deranged code ever
my fav ❤️
also tbh you shouldn't need the #size(long) because ptrs should be incremented by it's member's size not by bytes
.
no because in this case its not an indexing its just an arithmetic operation
it treats the pointer as just a number
although
.
hm implicit cast to integer seems dangerous
a pointer is just a long internally
with extra info
i wanna get this to work
test([MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39][2]);
because this is actually a useful feature
it sorta works but it breaks because of the way its parsed
you can do this now!!!!
fn test(long val) {
printf("%ld", val);
}
fn main() {
test([MAX_SIGNED_LONG, MIN_SIGNED_LONG, -39][2]);
}
yay
Should make it cursed and do [shit].2
lmfao rust does that unfortunately
in tuples
("a", 100).0 // a
holy shit this actually just works without me needing to do anything
i tried to see what would happen if you try to get the size of length of an array literal
#arrlen([1, 2, 3])
.
it just works
#size([1, 2, 3])
genuinely shocked that it simply works with no extra patches necessary
What’s the difference between this and rust / c++
well for starters its a lot worse
lmao
its missing a bunch of safety checks and a bunch of features
rip i was gonna call a wip jailbreak elle because it matched ellekit
elle is the name of quite a few things lmao
https://github.com/infinit/elle this i guess
hey humans
i need your help
ellen
oh nvm then
MacBook pro M3 8GB RAM
or
MacBook Air M3 16 GB RAM
16gb
Both are 1600$
call the jb W because it doesn't deserve Ls
but the cooling will be shit on air right ?
AS runs very very cool
AS?
ah
i have an m1 pro and the fans basically never turn on
Will I loose anything other than the fan from the pro?
slightly smaller screen
erm hdmi port
well depends on what sizes you want
oh nice then no fan problem
only time they've turned on is when i was compiling llvm
?
oh but there's that dongle that expand the C port to hdmi etc right?
yep
I only want something to run Xcode & IDA & VScode smoothly
smoother is better
ok ❤️
you will want 16gb i usually hit like 11/16 with just xcode and a sim or two
Will looking into MacBook pro M2 pro or Max be better or M3 ?
yeah I thought of that as well that 8 won't be enough
8 will not be enough
i mean i haven't hit any cpu power limits with m1 pro
make sure you get enough storage
ok one last comparison MacBook pro m2 pro 14 2023 or air M3
m2 pro
it'll be 200$ more for the m2 pro
Good morning
m2 pro
Will it be worth it?
512 isn't enough?
good morning
if it is not that much of a difference I'll stick with the m3?
well what will you be doing
i'm at 700gb/1tb right now
what taking storage most for you?
yes
I think it'll be all apps like VSC xcode ida some appstore apps
yes is the most thing taking space 😭?
nothing in specific
iphone and ipad backups
I thing that's all I'm going to use
put those in icloud
I only have 50gb and it is near full
idk if I'm going to upgrade
oh its full
not near
So also 50gb of icloud drive files 🤡
if I get a 1tb ssd for air m3 16gb it'll be 1700 so it's going to be the same price as M2 pro 512 so which one should I get higher storage or better cpu/gpu
@worn briar rust book
and better cooling more ports ‘1 inch larger screen
I'm lost
this is the first time for me switching to a Mac
also do I need any accessories like the stupid magic mouse or idk anything
Huhhhh?
no
it has a keyboard and trackpad
i have never used external accessories w my macbook
well other than a tablet for games
is frida being annoying and segfaulting all the time on the latest release for anybody else?
the versions on the palera1n'd 8 (16.7.5, frida v 16.4.7) segfaults, even when I do frida-ps -U
However, my dopamine 13 (16.4.1, frida v 16.3.3) causes a segfault with a connection refused error, then works the second time
the first time I try frida with the 8, it gives the same connection refused error, then the second time, just gives me a segfault
However, I can't ssh into the 13 with inetcat22, but can with the 8
I'm completely stumped
I wonder what a segfault is(rhetorical hint hint)
How would I offset the opening position of an NSWindow? By default they open in kinda the top middle of the screen but I'd like to cascade them based on how many are open
Find the position of your last window in your stack and add like 20,20?
i call it to be centered (this isn't the main window of the app, the app is mostly menu bar. this is just extra information to do with map views)
these windows are not permanent windows, they are meant to be destroyed
SO TRUE
appkit sucks frr they need to get rid of it
Malware
since when is zefram real
Never
and replaced with what??
swift ui better than everything apple has created till now
removing appkit 
ok so i spent three days trying to make this menu bar app in swiftui
couldn't get it working well
skill issue
switch to appkit: easy
no it's cause swiftui is bad at menu bar stuff
i almost made my whole app in swift ui
and appkit is great I love NSMenu and NSMenuItem
wdym “menu”
I have two near-full swiftui and I prefer appkit and uikit
the macos menu bar
swift ui sucks on mac no doubt i agree
do i use swiftui? yes do i know it? yes do i prefer it? no
ever tried to use it on ios 13 or 14
but on ios its the best thing ever
well that was technically a “beta”
first gen products always suck
it's Bad
everybody knows that
ehh its way to complicated i wish you could use swiftui on websites aswell
rather than js and css
html
you want
html
also, "too complicated" no it isn't
you make an NSWindow, add an NSViewController, add things to that controller's view
well ofc i never tried to and never going to bother with it
swiftui is
literally
uikit/appkit
under the hood
of course you can
a swiftui List is actually a UITableView/NSTableView (13-15) and a UICollectionView/NSCollectionView (16+)
well idk about that but it would be painful asff for me to pull that off with uikit and appkit
skill issue
(i wouldn't be able to either)
a swiftui image? actually a UIImageView or NSImageView
validd
how come image tag requires you to specify uiimage in it then ??
like image(uiimage: )
ion apple weird for making diff frameworks for mac and ios
why is appkit and uikit 2 diff things
they were developed separately
this why i hate it
and designed for entirely different user interfaces
AppKit is not designed for touchscreen
UIKit is
its literally same thing click is tap and click and hold is holding onto screen
Dragging your finger? Multiple touches?
Difference between a hover with mouse and a click
click hold and drag the cursor
well i mean ofc it might have been better to separate it back then but i feel like its good enough time for them to merge both apis
No
its better for cross compatibility
That would be a lot of work for no benefit
.
Catalyst
apple apis mess rn imo
Some are yes
appkit and uikit are some of the best frameworks tho
Don't get me started on intents they're so bad
Intents, pre-App Intents (which are still wonk)
So everything ios 10-15
Awful dogshit zero documentation
ahh
lmaoo
Share sheet? Uhhh here's an enum list
what do they mean? have you considered dying
NSExtensionActivationRule? it's half documented BY RANDOM FORUM POSTS
idk about all that never really tried to mess with appkit lmao
only for camera preview layer
that's Intents stuff
appkit is peak for a menu bar app
MenuBarExtra is so annoying
still no clue what menu bar you talking about
like tabbars ?
oh these ?
cc controls
the fuckin macos menu bar
at the top of the screen
NO!! control center is DIFFERENT
we talking about samething lol i just like to call the whole thing control center
cuz thats what it basically is it controls app lol
this is the menu bar
this is control center
they are different
damn you got hella cool shii on there
whats the widget for ram and cpu and uh fan
n is one of them tailscale lmao
Stats
yes
Stats and TG Pro
runcat better in my opinion it puts a cool cat in your menu bar ..
:D
Rune better
CELESTE OST SPOTTED ‼️
People actually listen to OSTs casually? 
What is OST
damn what if u get bartender to clean up your menu bar
original soundtrack
at the very least more icons 
its for anime nerds
I mean yeah if it's good
do you listen to them professionally or what
Does NSTask work on stock iOS?
As in, in an unsandboxed process
Im so confused why isnt it working for me then
Well tweak settings just isnt working
But opa did something in dopamine 2.2 branch that made it work for some reason
I cant make a copy of tweak settings
is there a hook i can do
it just never spawns
i dont need it
not enough icons on your menu bar i see
i quite literally cannot reach some of them unless i quit some menu bar icons
yeah i make sure they dont clip under the notch
video game background music 
Hmm

what
what now works
Thats probably it
Because the new posix_spawn hook is no longer being bypassed by direct branches (like the one in NSTask)
hit tweak rune still works on dopamine so good jailbreak
Is there a way i can call a method on every instance of a class in my tweaks ctor.
so if you only interpose posix_spawn then that's probably the issue
apollo die for anyone else? i think you have to change the user agent for api requests now. i would do it myself but im having trouble finding what to actually hook lmao
@naive kraken im trying to hook posix spawn and use the syscall instead and it just does this, any clue?
(com.creaturecoding.tweaksettings) void HandleExceptions(NSException *__strong) [ERROR Line 19] TweakSettings unhandled exception: Couldn't posix_spawn: error -1
return syscall(SYS_posix_spawn, pid, path, file_actions, attrp, argv, envp);```
apollo still works for me with apollopatcher 
What do I need to change
pid_t *restrict pid, const char *restrict path, struct _posix_spawn_args_desc *desc, char *const argv[restrict], char * const envp[restrict]
these are the arguments the syscall takes
you need to pass a desc
but it requires a value that might change between iOS versions
is that the craze tweak
Is it changed so much that it might have changed between 16.5.1-16.6.1
no clue
it might be a bit a/b from what i've seen
https://f.igerman.cc/u/cTU4Ja.jpg
this is what each request to it returns for me
merely changing the UA string to Mozilla/5.0 however fixes that
im using that one too i think and it doesn't work
i suspect its got something to do with the fact that they screwed over everyone except google for search
iOS: com.christianselig.Apollo v1.15.11 (by /u/iamthatis)
changing this to anything will make it work
yep
i'm using https://github.com/JeffreyCA/Apollo-ImprovedCustomApi and would pr a change
but i dont know what the hell to hook to change the UA lmao
oh that's the one i m using
oh this apollo isn't related to the exploit apollo (commonly known as checkm8) .
meow
changing the bundle id apparently works?
oh I have a custom bundle ID with mine
aha that makes sense

they target banned apollo 1.15.11 LMAOOO
I am NOT using the stock reddit app 
anyway FLEX crashes, Flex 3 crashes, and i dont know anything else to snoop around in the app's stuff
any ideas what to do to change the UA to mozilla/5.0 so they can never ban it
https://f.igerman.cc/u/OnGq2i.jpg if this works ill shit my pants cause id have guessed where to put what 
Why did you not just send the image…?
Yu
i have it configured to just upload automatically
sometimes screenshots are fat as fuck and i used to not have nitro
some thing people do called sharex
this is ishare actually, a macos equivalent kinda
3rd party screenshot clients 
it actually uses the system implementation
just middlewares and adds an uploader
and gif recording
and such qol stuff
how unfortunate it didnt fucking work
Changing the UA is easy
But I think apollo does some stuff to it after
And it crashes if you remove the bundle id from the string
Tryna debug it but it’s a swift app with stripped symbols 
make ApolloPatcherPatcher to change the UA again
is there any working class dump tool nowadays
thanks!
is there any working dyld extractor tool nowadays
or ipsw
i mean
define "working"
extracts cleanly for analysis? extracts cleanly for running? etc
better than apple's tool in any shape or form and doesn't crash on latest
.
ipsw
yes
ipsw dyld split for mass split
ipsw dyld extract for single extract
extract also does fixups iirc
extract worked on 18b3 so
I was trying to come up with a solution for Apollo user agent on iOS 12, but I assume modifying the UA without any tweak (eg. replacing it with something more palatable to Reddit with a simple hex editor) isn't going to be that easy
I'm using Apollo 1.12.2 on a few older devices but the UA it sends actually contains the '1.12.3' version identifier according to mitmproxy
ipsw fr can do everything
apparently you can just change the bundle ID for apollo and it'll work
Apollo has been working for me but I changed the bundle ID with the modded IPA I made
on iOS 17
might try changing the bundle ID on iOS 12
I'll try to do that right now, do I just have to edit the bundle ID in .com.apple.mobile_container_manager.metadata.plist ?
doesn't work
Nope it crashes unless it's exactly com.christianselig.Apollo
changing the bundle ID using Sideloadly works
Which iPhone is this???
XR
Wow
unc0ver ☹️
Having one that old is crazy
Any luck?
The only thing I found was the fact that RDOClient (I think that’s what the class is called) has useragent on it, but hooking it and returning something else doesn’t actually change anything
just change the bundle ID for the app 
That’s the worst solution
Ever
Not to mention I’m pretty sure it bricks the safari extension it comes with
Anyway JeffreyCA pushed a fix half hour ago
Don’t know if they’re here but cheers
it’s the only solution so far
as far as I know
I just said there’s a proper fix
that extension barely works anyway tbh
how would i configure this in appkit? i've tried setting NSApplication.shared.mainMenu but it doesn't appear to do anything
this would be because i cannot access NSApplication.shared.mainMenu for some reason, it is just nil
Ah, you can't have LSUIElement set to true and access the menu bar
Oh well
why the fuck is 0,0 bottom left corner.
appkit?
AppKit treats origin in a different way than UIKit
yes i know it does
but WHY
sorry
Idk if there’s a practical reason why
the NSWindow revolving door is probably the most cursed thing i've ever done
it works great though
it's just a term for having an array of NSWindows, and then adding/removing them throughout the app's use (cause the NSWindows are just little map views that get created and destroyed at random)
can't just have a single NSWindow object because you have to be able to have multiple windows active at once
so when a new window is created, it gets added to the array
when a window is removed, it gets closed then removed from the array
i told you it's cursed
but it works
how many files are there in Zefram
bootloop.m
crash.swift
erase_dyld_shared_cache.c
but the second time it goes through
how are you sideloading the app where this works?
break_ssv_seal.m
hcf.S
hello people
hello aspiring dev
at least two
@grave sparrow can you leak directory structure
> tree zefram
>
Interesting
pov: linux user
What does zefram do again ?
it does shit
Makes sense
how is x86 injection and hooking or did you not ever implement it
my case disowned the right airpod
why the fuck am i in development i have this channel hidden.

x86 is a mess but still widely used so it would be useful for you to implement for the learning experience @grave sparrow
Fair
leak it
zefram-master.zip:
whyyyyyyyyy
wait capt does swift runtime store function pointers in memory for a given class
genuinely insane how many lines of code you have for something that’s basically on par with ellekits features (i have way less loc)
Like?
wtf I thought it was supposed to have a stable abi or whatever
"swift"
"stable"
like rust 
rust does not have a stable abi .
exactly
oh
swift made an announcement about having a stable abi though
wtf was that about
smh
swift devs don't know what stable is cause they made swift in the first place
@convention (thin) ezpz

does ipad/maccatalyst have safe edges on screen
because in my testing everything is pushed to the most up to and bottom when running the code
you can always cast a function to thin convention
i think it generates code that switches conventions before the call
maybe you can write shellcode to do it dynamically
would be cool
it’s one of those partial apply forwarder things
dynamic linking is for nerds
> Making all for tweak tweak…
==> Preprocessing Tweak.xm…
logos: warnings being treated as errors
Tweak.xm:324: warning: tried to set expression for unknown class or function sub_102EBDC4C in group hooks
make[3]: *** [/Users/cryptic/source/theos/makefiles/instance/rules.mk:413: /Users/cryptic/source/tweak/tweak/.theos/obj/arm64e/Tweak.xm.mm] Error 1
make[2]: *** [/Users/cryptic/source/theos/makefiles/instance/library.mk:52: /Users/cryptic/source/tweak/tweak/.theos/obj/arm64e/tweak.dylib] Error 2
make[2]: *** Waiting for unfinished jobs....
==> Preprocessing Tweak.xm…
logos: warnings being treated as errors
Tweak.xm:324: warning: tried to set expression for unknown class or function sub_102EBDC4C in group hooks
make[3]: *** [/Users/cryptic/source/theos/makefiles/instance/rules.mk:413: /Users/cryptic/source/tweak/tweak/.theos/obj/arm64/Tweak.xm.mm] Error 1
make[2]: *** [/Users/cryptic/source/theos/makefiles/instance/library.mk:52: /Users/cryptic/source/tweak/tweak/.theos/obj/arm64/tweak.dylib] Error 2
make[1]: *** [/Users/cryptic/source/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2
make: *** [/Users/cryptic/source/theos/makefiles/master/rules.mk:146: tweak.all.tweak.variables] Error 2
anyone know how to c++ hookf like this? I gut errors
Use MSHookFunction directly I guess
got owned by antihook
why are modules so fucking hard to implement
im having so many issues with ordering of the imports because its a single pass compiler
and also issues where if i import specific functions or symbols it wont work because the said function is referencing other things in the module that werent imported but its so hard to implement a way to track that
like
// module.elle
use std/io;
pub fn meow() {
puts("meow!");
}
pub fn do_meow() {
meow();
}
// main.elle
use module@{do_meow};
fn main() {
// this wont work because it cant find `meow` as it isnt imported as a dependency to `do_meow()`
// how do i even track that `do_meow()` is dependent on `meow`
do_meow();
}
// main.elle
use module;
fn main() {
do_meow(); // this now works because its importing everything that is public in `module` including `meow`
}
why does it need to be so complicated
unless i go through every single identifier statement when parsing and ensuring those are added to some list when importing but the way its done is recursive
this sounds like C include's all over again 
nono it works fine if i dont use the @{func1, const2}
c doesnt have that so
c just imports everything
meow spotted
yeah but important is you have to import all your dependencies first
python does the whole letting you import 1 function thing
and every dependency imports its dependencies, but dependencies have #ifndef catches to stop double-includes
wait so in c if you dont explicitly export meow then do_meow wont work in c?
but if you put the most basic includes at the top, then the ordering doesnt get fucked up
ah yeah i need to implement that too
what
what does python have to do with anything
i was just saying it has that ability
python has print() too
python is also shit
oh sorry i got it backwards maybe? idk but i include my own libraries before system ones
i cant explain it all, all i can trust is that i thought it all out in full and figured out whats required 
in c you import the entire header
#ifndef SMINES_GAME_H
#define SMINES_GAME_H
#include "minefield.h"
#include <stddef.h>
#include <stdint.h>
enum GameState {
this works
this specific ordering
so if you want single pass compiling i think you have to do it in this type of order
well if you want true single pass then you have to force the programmer to put it in the right order like c preprocessors do
oh i think i entirely misunderstood what you were asking oriignally
currently the importer does
- read the file from the import specified
- lex the contents
- parse the contents (which also includes recursively checking for more imports because this importing is done at the parsing step)
- check that importing is valid (aka the symbol is public, and if the import has functions defined (aka you didnt just import the whole file) it checks that the symbol is actually part of that list (
@{symbol1, symbol2}) - if importing is valid, then check if a symbol is already defined with that name, if it is then delete it, then insert the new symbol at the 0th index
bad but works more or less ok
and after all of the imports i add NULL and EOF as global constants
maybe you have to keep track of all the symbols used in each function so you can know what you need to import
yeah
or maybe real compilers just rely on dead code elimination and import the entire thing anyways
but those are in the includes
so you just include all the includes if you include anything from the file
this might be the answer
o good
and then the module tree is imported into the root tree at the end
you just include all the functions anyways but in parsing, only allow the imported functons to be used otherwise throw an error
i am not sure if thats how its done in real compilers but it makes sense to me
idk less work for me
i got it working
through a lot of steps
pub external fn malloc(long size) -> long;
pub external fn free(long ptr);
external fn atoi(string str) -> int;
pub external fn atol(string str) -> long;
pub external fn atof(string str) -> double;
pub fn meow(string str) {
return atoi(str) + 1;
}
``` this is a module
it exports meow
if i run this code
use std/io;
use std/core@{meow};
fn main() {
printf("%d\n", meow("100"));
}
it works
if i try to use atoi instead i get
aswell as any other symbol in that file, regardless of it was imported or not
fyi its line 20 because i commented out something else lmao
i finally have more descriptive errors for the parser and compiler
because before it just crashes with an unwrap
the full word external is cursed
might as well go full java(script) and public external function floor(double x, double y) -> double;

public static forward_declared function floor(double_precision_float first_value, double_precision_float second_value) returns double_precision_float;
its beautiful
transient classification Person {
extemporize(name : Ligature) {
aforementioned.name = name;
}
-> Integer dependent invariable void async subroutine greet ? (){
C:\Standard\System\io\format\print\ln("buzz")
}
}
what is transient
i have not see nthis before
Wdym apparently it’s your language
what languae is that
no not this lmao
Or is it not
oh i was looking at what transient means in java
the stuff above is
in java it apparently means dont serialize
oop
nonfulfillment
HELP WHAT IS THIS
ITS SELF HOSTED
this is a little scary
ok it works now tho
with the example i had earlier
this is a module
use std/io@{printf};
fn meow() {
printf("meow!");
}
pub fn do_meow() {
meow();
}
this is the front end code
use std/module;
fn main() {
do_meow();
}
it works if i run do_meow()
it fails if i run meow()
if i make meow() public
use std/io@{printf};
pub fn meow() {
printf("meow!");
}
pub fn do_meow() {
meow();
}
it works because i imported the whole module
however if i import only do_meow()
use std/module@{do_meow};
fn main() {
meow();
}
it now fails again
great
i did it by giving every funtion and constant a tag for whether theyre imported and whether theyre usable
usable being just a basic
fn is_valid_insert_context(
node_name: String,
public: bool,
allow_all: bool,
functions: Vec<String>,
) -> bool {
public && (allow_all || functions.contains(&node_name))
}
and then imported just for if it isnt defined in the front end code
then i just crash if it isnt usable and the symbol isnt imported
for constants, function pointers, and function calls
in practice thats just
if !usable && !func.unwrap().borrow_mut().imported {
panic!(
"{}",
location.error(format!(
"Symbol named '{}' was not imported and can't be used",
name
))
)
}
do_meow
disable_kpp
ktrr disable
super easy jailbreak code
do_kexploit();
if (!ktrr) {
disable_kpp();
}
else {
disable_ktrr();
}
do_meow();
reboot_userspace();
Wen eta kill_ssv
do_kexploit();
if (!ktrr) {
disable_kpp();
}
else {
disable_ktrr();
}
do_meow();
if (!ssv) {
do_mrrp();
}
else {
kill_ssv();
}
do_mrrp();
{
reboot_userspace();
}
had to do that on mobile 👎
if (!icraze_drm_pwned) {
pwn_drm();```
icraze_dr.m

Dr. iCraze
I just realized I didn’t even close the if statement
I thought that was like "the rest of the l33t h4x are left as an exercise to the reader"
why is there just a random unncecessary block at the end 💀
memory allocation
this is c++ duh
me when i mem alloc during reboot
reboot userspace is a macro for accessing a class destructor obviously
Don’t worry it’s secretly 16player crack
https://x.com/app_settings/status/1817261617064837450?s=46 @hasty ruin get on it
[[jumper]]
boo
hey guys
i got raylib running with elle
the ultimate test
it was kind of annoying because my DYLD_LIBRARY_PATH wasnt detected when linking in gcc so i had to put the dylibs into /usr/local/lib before linking but it works
wtf why would you need DYLD_LIBRARY_PATH during compilation
because i was linking with a dylib and i didnt want to put it in rpath or /usr/local/lib
i wanted to just download the dylib and -Lpath-to-raylib-locally but that didnt work because macos couldnt find it
and it still didnt find it after adding the path to that env variable so
dyld[58745]: Library not loaded: @rpath/libraylib.500.dylib
Referenced from: <946985F3-FFC4-3066-93B2-11418F522439> ~/Desktop/Projects/elle/dist/window/build
Reason: tried: '/System/Volumes/Preboot/Cryptexes/OS@rpath/libraylib.500.dylib' (no such file), '/usr/local/lib/libraylib.500.dylib' (no such file), '/usr/lib/libraylib.500.dylib' (no such file, not in dyld cache)
shouldn't dyld be searching inside your ~/Desktop/Projects/elle/dist/window/ for the dylib because @rpath
wtf
anyways you probably could use DYLD_FALLBACK_LIBRARY_PATH i think
that's what i use to place dylibs in other locations anyways
well i tried -Lraylib-5.0_macos/lib as that’s where the lib was
it found the .a but couldn’t find the dylib
ah ok
🤨
colored square (real)
we got text rendering ‼️
I disagree that it’s a square
paid
plx but female
Hold on
elle is fake
oh no
ball
:3
am i still holding on
hold on
I’m working on the plx origin story
Those are built in raylib functions right ? Drawing a text was the ultimate pain in sdl library
yep
i understand tho lmao
actually loading a ttf file looks like a huge pain
i saw the sebastian lague video
Yeah 💀
theres so much going on to render some silly text

Mfw faceid sudo authentication
Didn’t even know that was a thing/possibility
its on procursus its a pam module
O
Slide? Do I jus install and mod Pam?
install libpam-biometrics
then
add
auth sufficient pam_biometrics.so disableonssh to the top of pam su and sudo file
I’ve had this for years even on my macs super clutch
@gentle grove
it's on procursus
where else is it
i better not have to compile it myself
Hang on its a stock mac thing
its literally built into macos
yes
macos is lame it doesnt have sudoedit
Show the file
# su: auth account session
auth sufficient pam_tid.so disableonssh
auth sufficient pam_rootok.so
auth required pam_opendirectory.so
account required pam_group.so no_warn group=admin,wheel ruser root_only fail_safe
account required pam_opendirectory.so no_check_shell
password required pam_opendirectory.so
session required pam_launchd.so
this one is su
i didnt want to do both simultaneously
What does su do when you run it
> su
Password:
su: Sorry
thats after typing in my password
actually i might have the wrong password
Thats root pass
but it just asks for the password
There is no root password
Ohhh
Wait
That makes sense
Add that to sudo file too
It probably doesnt work when you use su with root account
oh i cant edit the sudo one
Wdym
oh you have to copy and move it back?
Follow that
Macos reverts the files in the folder on updates
they need to add two steps, chmod +w /etc/pam.d/sudo_local before editing and chmod -w /etc/pam.d/sudo_local after editing
Does it work now tho
but i use iterm2 smh
oh wait it's pam i'm dumb
i thought they threw it in as local auth with the terminal or something
works fine on iterm2
is it just me or did they butcher the iterm2 performance in recent updates
it use to run super smooth now lags
you're editing it as root, root doesn't care about file permissions
it does though
it's just usually you don't encounter files that don't have any write perms whatsoever
(n)vi(m) can do that for you

It didn't work for me
How
Maybe try it in a Dir with exe perms disabled
idk it asks me it's readOnly but to try and do it anyways
Somethings up
then it works
it was fully read only for me
