mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Merge pull request #360 from Atrolantra/master
Moved screen height and width to configurable options
This commit is contained in:
commit
b6af89dbdc
@ -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
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user