Skip to content

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
Pull latest core Deobfuscator version
Add De/Select all button
  • Loading branch information
pandaninjas committed Sep 4, 2022
1 parent a203347 commit 2cd2255
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<groupId>gq.malwarefight</groupId>
<artifactId>narumi-deobf-gui</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<name>narumi-deobf-gui</name>

<properties>
Expand Down Expand Up @@ -64,7 +64,7 @@
<dependency>
<groupId>com.github.pandaninjas</groupId>
<artifactId>Deobfuscator</artifactId>
<version>b36adf9</version>
<version>bfb27d4</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public class DeobfuscatorGUIApp extends Application {
@Override
public void start(Stage stage) throws IOException {
DeobfuscatorGUIApp.stage = stage;
FXMLLoader fxmlLoader = new FXMLLoader(DeobfuscatorGUIApp.class.getResource((useRaw) ? "deobfuscator-gui-advanced-view.fxml": "deobfuscator-gui-view.fxml"));
FXMLLoader fxmlLoader = new FXMLLoader(DeobfuscatorGUIApp.class.getResource(
(useRaw) ? "deobfuscator-gui-advanced-view.fxml": "deobfuscator-gui-view.fxml")
);
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
stage.setTitle("Narumii Deobfuscator");
stage.setScene(scene);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
import gq.malwarefight.narumiideobfgui.deobfuscatorutils.DeobfuscatorRegistry;
import javafx.fxml.FXML;
import javafx.geometry.Pos;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.TextField;
import javafx.scene.control.*;
import javafx.scene.layout.VBox;
import javafx.stage.FileChooser;
import org.objectweb.asm.ClassReader;
Expand All @@ -23,6 +20,7 @@
public class DeobfuscatorGUIController {

private final HashMap<CheckBox, Transformer> deobfuscatorHashMap = new HashMap<>();
private boolean stateToToggleTo = true;

@FXML
public TextField inputName;
Expand Down Expand Up @@ -115,4 +113,12 @@ protected void deobfuscate() {
}
result.setText("Deobfuscation complete");
}

@FXML
public void toggleAll() {
for (CheckBox box: deobfuscatorHashMap.keySet()) {
box.setSelected(stateToToggleTo);
}
stateToToggleTo = !stateToToggleTo;
}
}
2 changes: 1 addition & 1 deletion src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
requires javafx.graphics;
requires javafx.controls;
requires org.objectweb.asm;
requires Deobfuscator.b36adf9;
requires Deobfuscator.bfb27d4;
opens gq.malwarefight.narumiideobfgui to javafx.fxml;
exports gq.malwarefight.narumiideobfgui to javafx.graphics;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</HBox>
<ScrollPane>
<VBox alignment="CENTER" fx:id="buttonContainer"/>
<CheckBox onAction="#toggleAll">Toggle all</CheckBox>
</ScrollPane>
<Button text="Deobfuscate" onAction="#deobfuscate"/>
<Label fx:id = "result"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<TextField fx:id="outputName"/>
<Button text="Choose" onAction="#chooseOutputFile"/>
</HBox>
<VBox alignment="CENTER" fx:id="buttonContainer"/>
<VBox alignment="CENTER" fx:id="buttonContainer">
<CheckBox onAction="#toggleAll">Toggle All</CheckBox>
</VBox>
<Button text="Deobfuscate" onAction="#deobfuscate"/>
<Label fx:id = "result"/>
</VBox>

0 comments on commit 2cd2255

Please sign in to comment.