forked from enovella/jebscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetMethodSignatures.java
More file actions
32 lines (23 loc) · 829 Bytes
/
getMethodSignatures.java
File metadata and controls
32 lines (23 loc) · 829 Bytes
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
import jeb.api.IScript;
/*import jeb.api.ui.View;*/
import jeb.api.dex.Dex;
import jeb.api.JebInstance;
import java.util.*;
import java.io.*;
public class getMethodSignatures implements IScript {
private static String path = "/tmp/methodsignatures.txt";
public void run(JebInstance jeb){
Dex dex = jeb.getDex();
List<String> methodSigList = new ArrayList<String>();
methodSigList = dex.getMethodSignatures(true);
try{
File file = new File(path);
FileOutputStream fos = new FileOutputStream(file);
for (String method : methodSigList)
fos.write((method + "\n").getBytes());
}catch(Exception e){
}
jeb.print("[+] Output file located at "+path);
jeb.print("[+] Done!");
}
}