1
1
#! /usr/bin/env bash
2
2
3
- # Nothing to see here.
3
+ # Nothing to see here.
4
+
5
+ #! /usr/bin/env bash
6
+ # 2018 by Shiva @ CPH:SEC
7
+
8
+ # WAES requires vulners.nse : https://github.com/vulnersCom/nmap-vulners
9
+ # WAES requires supergobuster : https://gist.github.com/lokori/17a604cad15e30ddae932050bbcc42f9
10
+ # WAEs requires SecLists : https://github.com/danielmiessler/SecLists
11
+
12
+
13
+ # Script begins
14
+ # ===============================================================================
15
+
16
+
17
+ VERSION=" 0.0.3b"
18
+ # Where to find vulners.nse :
19
+ VULNERSDIR=" nmap-vulners"
20
+ SECLISTDIR=" SecLists"
21
+ REPORTDIR=" report" # report directory
22
+ TOOLS=( " nmap" " nikto" " uniscan" " gobuster" " dirb" " whatweb" )
23
+
24
+ echo " "
25
+ echo -e " \e[00;32m#############################################################\e[00m"
26
+ echo " "
27
+ echo -e " Web Auto Enum & Scanner $VERSION "
28
+ echo " "
29
+ echo -e " Auto enums website(s) and dumps files as result"
30
+ echo " "
31
+ echo -e " \e[00;32m#############################################################\e[00m"
32
+ echo " "
33
+
34
+ usage ()
35
+ {
36
+ echo " Usage: ${0##*/ } -u {url}"
37
+ echo " ${0##*/ } -h"
38
+ echo " "
39
+ echo " -h shows this help"
40
+ echo " -u url to test without http or https e.g. testsite.com"
41
+ echo " "
42
+ }
43
+
44
+ # Checks for input parameters
45
+ : ${1?" No arguments supplied - run waes -h for help or cat README.md" }
46
+
47
+
48
+ if [ $1 == " -h" ]
49
+ then
50
+ usage
51
+ exit 1
52
+ fi
53
+
54
+ if [[ " $1 " != " -u" && " $1 " != " -h" ]]; then
55
+ usage
56
+ echo " Invalid parameter: $1 "
57
+ exit 1
58
+ fi
59
+
60
+ # Check for nmap
61
+ which nmap> /dev/null
62
+ if [ $? -eq 0 ]
63
+ then
64
+ echo " "
65
+ else
66
+ echo " "
67
+ echo -e " \e[01;31m[!]\e[00m Unable to find the required nmap program, install and try again"
68
+ exit 1
69
+ fi
70
+
71
+ # Check for nikto
72
+ which nikto> /dev/null
73
+ if [ $? -eq 0 ]
74
+ then
75
+ echo " "
76
+ else
77
+ echo " "
78
+ echo -e " \e[01;31m[!]\e[00m Unable to find the required nikto program, install and try again"
79
+ exit 1
80
+ fi
81
+
82
+ # Check for uniscan
83
+ which uniscan> /dev/null
84
+ if [ $? -eq 0 ]
85
+ then
86
+ echo " "
87
+ else
88
+ echo " "
89
+ echo -e " \e[01;31m[!]\e[00m Unable to find the required uniscan program, install and try again"
90
+ exit 1
91
+ fi
92
+
93
+ # Check if root
94
+ if [[ $EUID -ne 0 ]]; then
95
+ echo " "
96
+ echo -e " \e[01;31m[!]\e[00m This program must be run as root. Run again with 'sudo'"
97
+ echo " "
98
+ exit 1
99
+ fi
100
+
101
+ #
102
+ echo -e " Target: $2 "
103
+
104
+ echo -e " [+] OSIRA on:" $2
105
+ OSIRA/osira.sh -u $2 | tee ${REPORTDIR} /$2 _osira.txt
106
+ mv $2 .txt ${REPORTDIR} /$2 _osira.txt
0 commit comments