mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-12-19 19:48:25 +00:00
Added CUCUMBER extension
This commit is contained in:
25
payloads/extensions/cucumber.sh
Normal file
25
payloads/extensions/cucumber.sh
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user