-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparichal.sh
executable file
·104 lines (88 loc) · 4.38 KB
/
parichal.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
#!/bin/bash
# Usage: ./script.sh -t <target> -m <mode>
# Modes: Anve (easy), Tapa (medium), Hidi (aggressive)
# Version
VERSION="v0.1"
# Default mode
MODE="Anve" # Default is easy mode
TARGET=""
FULL_URL=""
# Parse command-line arguments
while getopts "t:m:" opt; do
case ${opt} in
t) TARGET=$OPTARG ;;
m) MODE=$OPTARG ;;
*) echo "Usage: $0 -t <target> -m <mode>"; exit 1 ;;
esac
done
# Validate target
if [ -z "$TARGET" ]; then
echo "Error: Target (-t) is required."
echo "Usage: $0 -t <target> -m <mode>"
exit 1
fi
# Extract the hostname or IP if necessary and retain the full URL
if [[ $TARGET =~ ^http ]]; then
FULL_URL=$TARGET
TARGET=$(echo $TARGET | awk -F/ '{print $3}')
else
FULL_URL="http://$TARGET" # Default to HTTP if not specified
fi
# Define the colors
INDIGO='\033[38;5;54m' # Indigo color for ASCII art
AQUA='\033[38;5;51m' # Aqua color for the rest of the output
RESET='\033[0m' # Reset color
# Output newline before ASCII art for better readability
echo ""
# Output ASCII art in indigo
echo -e "${INDIGO}░▒▓███████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓█▓▒░ "
echo -e "${INDIGO}░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ "
echo -e "${INDIGO}░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ "
echo -e "${INDIGO}░▒▓███████▓▒░░▒▓████████▓▒░▒▓███████▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓████████▓▒░▒▓████████▓▒░▒▓█▓▒░ "
echo -e "${INDIGO}░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ "
echo -e "${INDIGO}░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ "
echo -e "${INDIGO}░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░ "
# Display version in aqua
echo -e " ${AQUA}Version: $VERSION"
echo -e "${INDIGO} "
echo -e "${INDIGO} "
# Function for each mode
anve_mode() {
echo -e "${AQUA}[+] Running in Anve (Easy) mode..."
echo -e "${AQUA}Performing lightweight reconnaissance on $TARGET"
nslookup $TARGET
}
tapa_mode() {
echo -e "${AQUA}[+] Running in Tapa (Medium) mode..."
echo -e "${AQUA}Performing moderate reconnaissance on $TARGET"
dig $TARGET
whois $TARGET
echo -e "${AQUA}Scanning for directories with Dirsearch..."
dirsearch -u $FULL_URL
}
hidi_mode() {
echo -e "${AQUA}[+] Running in Hidi (Aggressive) mode..."
echo -e "${AQUA}Performing extensive reconnaissance on $TARGET"
nmap -A $TARGET
echo -e "${AQUA}Scanning for directories with Dirsearch..."
dirsearch -u $FULL_URL
echo -e "${AQUA}Running Nikto for vulnerability analysis..."
nikto -h $FULL_URL
}
# Execute based on mode
case $MODE in
anve)
anve_mode
;;
tapa)
tapa_mode
;;
hidi)
hidi_mode
;;
*)
echo -e "${AQUA}Error: Invalid mode. Choose from Anve (easy), Tapa (medium), or Hidi (aggressive)."
exit 1
;;
esac
echo -e "${AQUA}[+] Script completed for $TARGET in $MODE mode.${RESET}"