diff --git a/payloads/library/prank/90sMode/payload.txt b/payloads/library/prank/90sMode/payload.txt index 5dcf9382..6545eb2b 100644 --- a/payloads/library/prank/90sMode/payload.txt +++ b/payloads/library/prank/90sMode/payload.txt @@ -9,9 +9,13 @@ # Turns back the clock to a k-rad ultra ereet 1990's VGA resolution # Executes p.ps1 from the selected switch folder of the Bash Bunny USB Disk partition, +# Options +Width=640 +Height=480 + LED SETUP GET SWITCH_POSITION ATTACKMODE HID STORAGE LED ATTACK -RUN WIN powershell \".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\r.ps1')\" +RUN WIN powershell \".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\r.ps1 -Width $Width -Height $Height')\" LED FINISH diff --git a/payloads/library/prank/90sMode/r.ps1 b/payloads/library/prank/90sMode/r.ps1 index 2fdef1ad..ad89038a 100644 --- a/payloads/library/prank/90sMode/r.ps1 +++ b/payloads/library/prank/90sMode/r.ps1 @@ -1,3 +1,8 @@ + param ( + [string]$Width + [string]$Height + ) + Function Set-ScreenResolution { <# @@ -157,4 +162,5 @@ namespace Resolution Add-Type $pinvokeCode -ErrorAction SilentlyContinue [Resolution.PrmaryScreenResolution]::ChangeResolution($width,$height) } -Set-ScreenResolution -Width 640 -Height 480 \ No newline at end of file + +Set-ScreenResolution -Width $Width -Height $Height \ No newline at end of file diff --git a/payloads/library/prank/90sMode/readme.md b/payloads/library/prank/90sMode/readme.md index 3f14615b..ad2baf7c 100644 --- a/payloads/library/prank/90sMode/readme.md +++ b/payloads/library/prank/90sMode/readme.md @@ -23,7 +23,7 @@ So, one could say this payload *decreases* the disk space of the victim computer ## Configuration -By default the payload switches to the very cool 640x480 resoluiton, however this can be configured to other standards such as 800x600 or 1024x768 in the last line of r.ps1 (this should eventually become a config line in payload.txt) +By default the payload switches to the very cool 640x480 resoluiton, however this can be configured to other standards such as 800x600 or 1024x768 in the options within payload.txt) ## STATUS