mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Fix for zsh (#351)
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>
This commit is contained in:
parent
0f86f0ee24
commit
3184c229c7
@ -13,7 +13,7 @@ Q DELAY 1000
|
||||
Q GUI n
|
||||
Q DELAY 1000
|
||||
|
||||
Q STRING hi=0\; ho=\$\(date \'+%H%M\'\)\; while test \$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
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user