$ iproxy 2222 22
$ iproxy 7777 77
iphone~root# debugserver 7777 --waitfor $processId
(lldb) process connect connect://localhost:7777
(lldb) image list | grep $processId
@ IDA Pro > Edit > Segements > Rebase program
$ d(){ vimdiff <(f $1) <(f $2);};f(){ hexdump -C $1|cut -d' ' -f3-|tr -s ' ';};d ~/bin1 ~/bin2
save diffchar @ ~/.vim/plugins
Click F7
to switch between diff modes
Usefull vimdiff commands:
qa
to exit all windows
PASS=alpine; PORT=2222; sshpass -p $PASS ssh -p $PORT root@localhost -t "cp \$(find /var/mobile/Containers/Data/Application/ -name s4l*db) /private/var/tmp/skype.db" && sshpass -p $PASS scp -P $PORT root@localhost:/private/var/tmp/skype.db .
/tmp$ scp -P 2222 root@localhost:/private/var/mobile/Containers/Data/Application/F8C7294C-2B60-48EC-A987-D46B9FE4DEAE/Library/Preferences/com.skype.skype.plist .
/tmp$ sudo apt-get install libplist-utils
/tmp$ plistutil -i com.skype.skype.plist | less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
onEnter: function (log, args, state) { | |
soname = Memory.readUtf8String(args[0]); | |
if(soname.includes('libmono-btls-shared.so')) { | |
log("libmono-btls-shared.so cargada!"); | |
this.dlopen = true; | |
this.dlopenMonitor = false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style> | |
body { | |
background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.scheduleOnMainThread(function() { | |
Toast = Java.use("android.widget.Toast"); | |
var currentApplication = Java.use('android.app.ActivityThread').currentApplication(); | |
var context = currentApplication.getApplicationContext(); | |
Toast.makeText(context,"hello world", Toast.LENGTH_SHORT.value).show(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Combination | PG1 | PG2 | PG3 | PG4 | Win | |
---|---|---|---|---|---|---|
[1, 1, 1, 1] | 1 | 2 | 3 | 4 | True | |
[1, 1, 1, 2] | 4 | 1 | 2 | 4 | True | |
[1, 1, 1, 3] | 3 | 4 | 1 | 4 | True | |
[1, 1, 1, 4] | 2 | 3 | 4 | 4 | True | |
[1, 1, 2, 1] | 4 | 1 | 3 | 3 | True | |
[1, 1, 2, 2] | 3 | 4 | 2 | 3 | True | |
[1, 1, 2, 3] | 2 | 3 | 1 | 3 | True | |
[1, 1, 2, 4] | 1 | 2 | 4 | 3 | True | |
[1, 1, 3, 1] | 3 | 4 | 3 | 2 | True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GCC_BIN=`xcrun --sdk iphoneos --find gcc` | |
SDK=`xcrun --sdk iphoneos --show-sdk-path` | |
#support iPhone 3GS and above, delete armv6 to avoid SDK error | |
ARCH_FLAGS=-arch armv7 -arch armv7s -arch arm64 | |
LDFLAGS =\ | |
-F$(SDK)/System/Library/Frameworks/\ | |
-F$(SDK)/System/Library/PrivateFrameworks/\ | |
-framework UIKit\ | |
-framework CoreFoundation\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.maxmind.geoip2.DatabaseReader; | |
import com.maxmind.geoip2.exception.GeoIp2Exception; | |
import java.io.File; | |
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import static java.nio.file.StandardOpenOption.*; |
NewerOlder