Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tanprathan committed Jun 6, 2016
1 parent 8ad29b7 commit f26652a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ The Mobile App Pentest cheat sheet was created to provide concise collection of
* `cy# choose(UIViewController)`
* List method at runtime
* `cy# classname.messages` or
* `cy# function printMethods(className) {
```
cy# function printMethods(className) {
var count = new new Type("I");
var methods = class_copyMethodList(objc_getClass(className), count);
var methodsArray = [];
Expand All @@ -168,7 +169,8 @@ The Mobile App Pentest cheat sheet was created to provide concise collection of
free(methods);
free(count);
return methodsArray;
}`
}
```
* `cy# printMethods("classname")`
* Prints out all the instance variables
* `cy# function tryPrintIvars(a){ var x={}; for(i in *a){ try{ x[i] = (*a)[i]; } catch(e){} } return x; }`
Expand Down

0 comments on commit f26652a

Please sign in to comment.