mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
* Updated all Payloads for Version 1.2+ Fixed Style Issues on extensions and payloads. Added GET TARGET_OS to get.sh Removed and Fixed all uses ducky_helper.sh (Issue #248) Removed all mention of DUCKY_LANG (Issue #248) Renamed Payloads with spaces in name Added an extension to keep Macs Happy Added a payload for Mac DNS poisoning Fixed Issue #271 changed wget to curl -o Implemented PR #268 Implemented PR #273 * Fixed e.cmd * Fix e.cmd pt2 * Fixed Issues Fixed issues pointed out by @sebkinne Fixed styling errors
26 lines
725 B
Bash
26 lines
725 B
Bash
#!/bin/bash
|
|
|
|
function CUCUMBER() {
|
|
case $1 in
|
|
"ENABLE")
|
|
echo ondemand | tee /sys/devices/system/cpu/cpu{0..3}/cpufreq/scaling_governor &> /dev/null
|
|
echo 0 | tee /sys/devices/system/cpu/cpu{1..3}/online &> /dev/null
|
|
;;
|
|
"DISABLE")
|
|
echo 1 | tee /sys/devices/system/cpu/cpu{1..3}/online &> /dev/null
|
|
sleep 2
|
|
echo ondemand | tee /sys/devices/system/cpu/cpu{0..3}/cpufreq/scaling_governor &> /dev/null
|
|
;;
|
|
"PLAID")
|
|
echo 1 | tee /sys/devices/system/cpu/cpu{1..3}/online &> /dev/null
|
|
sleep 2
|
|
echo performance | tee /sys/devices/system/cpu/cpu{0..3}/cpufreq/scaling_governor &> /dev/null
|
|
;;
|
|
*)
|
|
LED FAIL
|
|
exit 1
|
|
esac
|
|
}
|
|
|
|
export -f CUCUMBER
|