-
Notifications
You must be signed in to change notification settings - Fork 0
/
snoop
46 lines (35 loc) · 994 Bytes
/
snoop
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
37
38
39
40
41
42
43
44
45
#!/bin/bash
#Author::: SxNade
#code is very simple AND short
NC='\033[0m' # No Color
GR='\033[0;32m'
BRed='\033[1;31m'
Blue='\033[0;34m'
echo " "
echo -e " 53 6E 6F 6F 70"
echo -e " SxNade"
sleep 1
function start() {
echo -e "\n[+] Checking Given Links\n"
echo -e "${Blue}=============================================================================================================${Nc}\n"
}
if [ "${1}" = "--file" ]
then
echo "[+] Reading From File"
start
for link in $(cat ${2} 2> /dev/null)
do
curl --user-agent snoop http://checkshorturl.com/expand.php?u=${link} &> /tmp/file.txt
Found=$(cat /tmp/file.txt | grep Long | awk -F "w\">" '{print $2}')
echo -e "[+] ${BRed}${link}${NC} ::: ${GR}${Found}${NC}"
sleep 1
done
else
start
for link in ${@}
do
curl http://checkshorturl.com/expand.php?u=${link} &> /tmp/file.txt
Found=$(cat /tmp/file.txt | grep Long | awk -F "w\">" '{print $2}')
echo -e "[+] ${BRed}${link}${NC} ::: ${GR}${Found}${NC}"
done
fi