limneos / weak_classdump

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

does not implement doesNotRecognizeSelector: error #2

Open r-plus opened 12 years ago

r-plus commented 12 years ago

Hi guys.

I tried use weak_classdump_bundle to new google chrome app. It showed does not implement error and abort message in syslog.

*** NSInvocation: warning: object 0x6e0e24 of class 'NI_FIX_CATEGORY_BUG_NSDataNimbusCore' does not implement methodSignatureForSelector: -- trouble ahead
*** NSInvocation: warning: object 0x6e0e24 of class 'NI_FIX_CATEGORY_BUG_NSDataNimbusCore' does not implement doesNotRecognizeSelector: -- abort

So, I add one line for temporary fix.

for (var i = 0; i < permittedNames.length; i++) {
        try {
                while ([permittedNames[i] hasPrefix:@"NI_FIX"]) i++;
                results.push(weak_classdump(objc_getClass(permittedNames[i]), false, outputdir));
        } catch (e) {
        }
}

Can you fix this abort issue without hard-coding (like above) ?