You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"WARNING: This will load the classes into the JVM and execute the initialize function"
24
-
+ nl + "for each class. IF THE FILE YOU'RE LOADING IS MALICIOUS, DO NOT CONTINUE.",
25
-
newString[]{"Continue", "Cancel"});
26
+
MultipleChoiceDialogdialog = newMultipleChoiceDialog("Bytecode Viewer - WARNING", "WARNING: This will load the classes into the JVM and execute the initialize function" + NL +
27
+
"for each class. IF THE FILE YOU'RE LOADING IS MALICIOUS, DO NOT CONTINUE.", newString[]{"Continue", "Cancel"});
26
28
27
-
if (dialog.promptChoice() == 0) {
29
+
if (dialog.promptChoice() == 0)
30
+
{
28
31
booleanneedsWarning = false;
29
-
30
-
for (ClassNodecn : classNodesList) {
31
-
try {
32
+
33
+
for (ClassNodecn : classNodesList)
34
+
{
35
+
try
36
+
{
32
37
//load the class node into the classloader
33
38
BCV.getClassNodeLoader().addClass(cn);
34
-
35
-
for (Objecto : cn.fields.toArray()) {
39
+
40
+
for (Objecto : cn.fields.toArray())
41
+
{
36
42
FieldNodef = (FieldNode) o;
37
-
43
+
38
44
//if the class contains the field z, get the class object from the class node
39
45
//then print out the value of the fields inside the class
40
46
//if the strings get decrypted on init, this allows you to dump the current values
41
-
42
-
if (f.name.equals("z")) {
43
-
try {
44
-
for (Fieldf2 : BCV.getClassNodeLoader().nodeToClass(cn).getFields()) {
47
+
if (f.name.equals("z"))
48
+
{
49
+
try
50
+
{
51
+
for (Fieldf2 : BCV.getClassNodeLoader().nodeToClass(cn).getFields())
52
+
{
45
53
Strings = (String) f2.get(null);
46
54
if (s != null && !s.isEmpty())
47
55
gui.appendText(cn + ":" + s);
48
56
}
49
-
} catch (Exceptionignored) {
57
+
}
58
+
catch (Exceptionignored)
59
+
{
50
60
}
51
61
}
52
62
}
53
-
} catch (Exceptione) {
63
+
}
64
+
catch (Exceptione)
65
+
{
54
66
gui.appendText("Failed loading class " + cn.name);
55
67
e.printStackTrace();
56
68
needsWarning = true;
57
69
}
58
70
}
59
-
60
-
if (needsWarning) {
61
-
BytecodeViewer.showMessage("Some classes failed to decrypt, if you'd like to decrypt all of them\n"
62
-
+ "makes sure you include ALL the libraries it requires.");
71
+
72
+
if (needsWarning)
73
+
{
74
+
BytecodeViewer.showMessage("Some classes failed to decrypt, if you'd like to decrypt all of them" + NL +
75
+
"makes sure you include ALL the libraries it requires.");
0 commit comments