Merge pull request #360 from Atrolantra/master

Moved screen height and width to configurable options
This commit is contained in:
Marc 2019-06-28 00:07:40 +00:00 committed by GitHub
commit b6af89dbdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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
Set-ScreenResolution -Width $Width -Height $Height

View File

@ -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