mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Moved screen height and width to config file.
This commit is contained in:
parent
ee48a74dc6
commit
e527ab16a5
2
payloads/library/prank/90sMode/config.txt
Normal file
2
payloads/library/prank/90sMode/config.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Width=640
|
||||
Height=480
|
||||
@ -157,4 +157,20 @@ namespace Resolution
|
||||
Add-Type $pinvokeCode -ErrorAction SilentlyContinue
|
||||
[Resolution.PrmaryScreenResolution]::ChangeResolution($width,$height)
|
||||
}
|
||||
Set-ScreenResolution -Width 640 -Height 480
|
||||
|
||||
# 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
|
||||
@ -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 config.txt)
|
||||
|
||||
## STATUS
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user