forked from deathmemory/FridaContainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
67 lines (60 loc) · 1.99 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* @author: xingjun.xyf
* @contact: [email protected]
* @file: AntiDexLoader.js
* @time: 2020/4/16 5:03 PM
* @desc:
*/
import {DMLog} from "./utils/dmlog";
import {FCCommon} from "./utils/FCCommon";
// import {DianPing} from "./agent/dp/dp";
import {FCAnd} from "./utils/FCAnd";
function main() {
DMLog.d('MAIN', 'HELLO FridaContainer, please add code on the index.ts');
// FCAnd.Anti.anti_ptrace();
// FCAnd.Anti.anti_fgets();
// and.anti.Anti.anti_fgets();
// FCAnd.anti.anti_debug();
/// dp
// DianPing.anti_debug();
// DianPing.hook_cx_stacks();
///
// FCAnd.showStacks();
// FCAnd.dump_dex_common();
// FCAnd.Anti.anti_sslPinning("/data/local/tmp/cert-der.crt");
// FCCommon.dump_module('libmtguard.so', '/data/data/com.dianping.v1');
// DianPing.hook_stuffs();
// call mtgsig
// DianPing.test_call_mtgsig();
// DianPing.hook_zlog();
// FCAnd.anti.anti_debug();
// coord: (0,203,25) | addr: Lcom.dianping.nvnetwork.tunnel.Encrypt.SocketSecureManager;->getB2keyByB2(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; | loc: ?
// FCAnd.traceArtMethods(['E:com.dianping.nvnetwork.tunnel.Encrypt.SocketSecureManager'], null, "122,108,111,103,46,98,105,110"); // "zlog.bin"
// FCAnd.anti.anti_ssl_unpinning();
// DianPing.hook_stuffs();
// DianPing.hook_net();
// DianPing.modify_devinfo();
// DianPing.hook_stuffs();
// FCAnd.hook_uri(true);
// FCAnd.hook_url(true);
// FCAnd.jni.traceAllJNISimply();
// FCAnd.traceArtMethods(['M:retrofit2']);
// rpc.exports = {
// test() {
// Java.perform(() => {
// FCAnd.jni.traceAllJNISimply();
// });
// }
// }
}
if (Java.available) {
DMLog.i("JAVA", "available");
Java.perform(function () {
main();
});
}
if (ObjC.available) {
DMLog.i("ObjC", "available");
FCCommon.printModules();
FCCommon.dump_module("Hopper Disassembler v4", "/Users/dmemory/Downloads/");
}