mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Changed options to be in payload.txt per best practices
This commit is contained in:
parent
e527ab16a5
commit
e0c355da0a
@ -1,2 +0,0 @@
|
||||
Width=640
|
||||
Height=480
|
||||
@ -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 {
|
||||
|
||||
<#
|
||||
@ -158,19 +163,4 @@ Add-Type $pinvokeCode -ErrorAction SilentlyContinue
|
||||
[Resolution.PrmaryScreenResolution]::ChangeResolution($width,$height)
|
||||
}
|
||||
|
||||
# Read dimensions from config file
|
||||
Get-Content -Path "config.txt" |
|
||||
foreach-object `
|
||||
-begin {
|
||||
$config=@{}
|
||||
} `
|
||||
-process {
|
||||
$option = [regex]::split($_,'=')
|
||||
if($option[0].CompareTo("") -ne 0)
|
||||
{
|
||||
# Add the Key, Value into the Hashtable
|
||||
$config.Add($option[0], $option[1])
|
||||
}
|
||||
} `
|
||||
|
||||
Set-ScreenResolution -Width $config.Width -Height $config.Height
|
||||
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 config.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