-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkobeni.sh
83 lines (76 loc) · 2.8 KB
/
kobeni.sh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
# Bash Menu Script Example
cat << "EOF"
_ _ _
| \ | | | |
| \| | __ _| | ____ _ _ __ ___ ___ ___ ___
| . ` |/ _` | |/ / _` | '_ \ / _ \/ __|/ _ \/ __|
| |\ | (_| | < (_| | | | | (_) \__ \ __/ (__
|_| \_|\__,_|_|\_\__,_|_| |_|\___/|___/\___|\___|
source code exposed scanner
nakanosec.com - zerobyte.id - zerostore.org
Adelittle - MD15 - Dinar
EOF
PS3='Please enter your choice: '
options=("Git Scan" "Bazaar Scan" "Mercury Scan" "Svn Scan" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Git Scan")
printf "\n[>] Target List : "
read targetmu
for targetna in $(cat $targetmu); do
if [[ $(curl -s -m 3 -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" "${targetna}/.git/" -w %{http_code} -o /dev/null ) =~ '403' ]]; then
echo "[+] MAYBE VULN: ${targetna}"
fi
if [[ $(curl --connect-timeout 3 --max-time 3 -kLs "${targetna}/.git/" ) =~ 'Index of' ]]; then
echo "[+] VULN: ${targetna}"
else :
fi
done
;;
"Bazaar Scan")
printf "\n[>] Target List : "
read targetmu
for targetna in $(cat $targetmu); do
if [[ $(curl -s -m 3 -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" "${targetna}/.bzr/" -w %{http_code} -o /dev/null ) =~ '403' ]]; then
echo "[+] MAYBE VULN: ${targetna}"
fi
if [[ $(curl --connect-timeout 3 --max-time 3 -kLs "${targetna}/.bzr/" ) =~ 'Index of' ]]; then
echo "[+] VULN: ${targetna}"
else :
fi
done
;;
"Mercury Scan")
printf "\n[>] Target List : "
read targetmu
for targetna in $(cat $targetmu); do
if [[ $(curl -s -m 3 -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" "${targetna}/.hg/hgrc/" -w %{http_code} -o /dev/null ) =~ '403' ]]; then
echo "[+] MAYBE VULN: ${targetna}"
fi
if [[ $(curl --connect-timeout 3 --max-time 3 -kLs "${targetna}/.hg/hgrc/" ) =~ '[paths]' ]]; then
echo "[+] VULN: ${targetna}"
else :
fi
done
;;
"Svn Scan")
printf "\n[>] Target List : "
read targetmu
for targetna in $(cat $targetmu); do
if [[ $(curl -s -m 3 -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" "${targetna}/.svn/" -w %{http_code} -o /dev/null ) =~ '403' ]]; then
echo "[+] MAYBE VULN: ${targetna}"
fi
if [[ $(curl --connect-timeout 3 --max-time 3 -kLs "${targetna}/.svn/" ) =~ 'Index of' ]]; then
echo "[+] VULN: ${targetna}"
else :
fi
done
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done