limneos / weak_classdump

Cycript real-time classdump . An alternative for encrypted binaries
246 stars 50 forks source link

weak_classdump_bundle Crashes After A While. Doesn't Dump Anything. #5

Open AndyIbanez opened 12 years ago

AndyIbanez commented 12 years ago

I type in the following commands, as soon as I open Terminal:

su
cd /
cycript -p SpringBoard weak_classdump.cy; cycript -p SpringBoard
weak_classdump_bundle([NSBundle mainBundle],@"/var/mobile/Documents/SpringBoard")

Like you can see, I'm trying to dump the SpringBoard Headers using cycript (playing around, nothing official). But after I put in those commands, it's like it freezes. It stays frozen for a few minutes and then finally it resprings the whole phone. While the phone is frozen, nothing works: Can't input new commands, home button disabled, etc..

Maybe it's because I'm specifically trying to dump SpringBoard. There's something I need to see so I kinda need to dump SB with this script for that. In the end there are no headers in my path so I assume it's entering some sort of infinite loop without actually dumping anything.

datwelk commented 11 years ago

When I try to do exactly the same with a running application, the application crashes as well and nothing is dumped. The console logs "Application X exited abnormally with signal 4: Illegal instruction: 4". I'm on iOS 6.1, if that matters.

0xcd0e commented 10 years ago

i think it freezes because the weak_classdump_bundle function does not take a NSString, just a string (const char*), so it is: weak_classdump_bundle([NSBundle mainBundle],"/var/mobile/Documents/SpringBoard") without the @ in front of the path

arturgrigor commented 10 years ago

Same thing happens to me:

Artur-Grigors-iPhone-5:~ root# weak_classdump -p Music 'Added weak_classdump to "Music" (42215)' cy# weak_classdump(Helper,"/tmp/Music"); *\ _assert(CYRecvAll(client, &size, sizeof(size))):../Console.cpp(142):Run

justAnotherDev commented 9 years ago

if you are receiving the error that @arturgrigor got, then you are using the wrong function!

use weak_classdump_bundle instead of weak_classdump

iceNuts commented 9 years ago

I have the same issue, is there some way to work around? It is on iOS 8.4