Skip to content

Commit 7f0d07a

Browse files
Added VAC bypass loader button
1 parent afae249 commit 7f0d07a

6 files changed

Lines changed: 160 additions & 3 deletions

File tree

.idea/uiDesigner.xml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/lifedrained/injector/injector/Controller.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Controller implements EventHandler<MouseEvent> {
3131
private ProcessData selectedProcess;
3232
private ProcessGainer processGainer;
3333
@FXML
34-
private Button choose_dll_btn, injectbtn,copy_btn;
34+
private Button choose_dll_btn, injectbtn,copy_btn, bp_loader;
3535
@FXML
3636
private Label path_lbl, exception_lbl, processNameLbl;
3737
@FXML
@@ -42,7 +42,13 @@ public class Controller implements EventHandler<MouseEvent> {
4242
private Button updateList;
4343
@FXML
4444
private void initialize() {
45-
45+
bp_loader.setOnMouseClicked(new EventHandler<MouseEvent>() {
46+
@Override
47+
public void handle(MouseEvent mouseEvent) {
48+
VACBPloader vacbPloader = new VACBPloader();
49+
vacbPloader.launchVACBP();
50+
}
51+
});
4652
processGainer = new ProcessGainer();
4753
processList.setItems(FXCollections.observableArrayList(processGainer.listProcesses()));
4854
updateList.setOnMouseClicked(new EventHandler<MouseEvent>() {

src/main/java/com/lifedrained/injector/injector/ProcessGainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public ArrayList<ProcessData> listProcesses(){
4040

4141
image = SwingFXUtils.toFXImage(icon, null);
4242
} catch (Exception e){
43-
log.error(e);
43+
4444
}
4545
ProcessData data = new ProcessData(processName,pid,image, processPath);
4646
if(!data.getName().equals("N/A")){
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.lifedrained.injector.injector;
2+
3+
import org.apache.logging.log4j.LogManager;
4+
import org.apache.logging.log4j.Logger;
5+
6+
import java.io.IOException;
7+
import java.nio.file.Paths;
8+
import java.util.Objects;
9+
10+
public class VACBPloader {
11+
private static final Logger log = LogManager.getLogger(VACBPloader.class);
12+
private final String localpath = Paths.get("src","main","resources","com","lifedrained","injector",
13+
"injector","VACBP.exe").toString();
14+
private ProcessBuilder pb;
15+
public VACBPloader() {
16+
17+
}
18+
public void launchVACBP() {
19+
pb = new ProcessBuilder(localpath);
20+
try{
21+
pb.start();
22+
}catch(IOException e){
23+
log.error(e);
24+
}
25+
}
26+
}
Binary file not shown.

src/main/resources/com/lifedrained/injector/injector/view.fxml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
</content>
104104
</ScrollPane>
105105
<Button fx:id="copy_btn" disable="true" layoutX="43.0" layoutY="301.0" mnemonicParsing="false" text="copy exception" visible="false" />
106+
<Button fx:id="bp_loader" layoutX="9.0" layoutY="261.0" mnemonicParsing="false" text="Launch VAC bypasser loader" />
106107
</children>
107108
</AnchorPane>
108109
</items>

0 commit comments

Comments
 (0)