-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfsi.sh
More file actions
79 lines (64 loc) · 2.52 KB
/
Copy pathfsi.sh
File metadata and controls
79 lines (64 loc) · 2.52 KB
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
#!/bin/bash
function banner {
echo " ______ _ _ _____ "
echo "| ____| | (_) / ____| "
echo "| |__ ___| |_ _ __ ___| (___ ___ ___ "
echo "| __/ _ \ | | '_ \ / _ \\___ \ / _ \/ __|"
echo "| | | __/ | | | | | __/____) | __/ (__ "
echo "|_| \___|_|_|_| |_|\___|_____/ \___|\___|"
echo " _____ _ _ _ "
echo "|_ _| | | | | | "
echo " | | _ __ ___| |_ __ _| | | ___ _ __ "
echo " | | | '_ \/ __| __/ _\` | | |/ _ \ '__|"
echo " _| |_| | | \__ \ || (_| | | | __/ | "
echo "|_____|_| |_|___/\__\__,_|_|_|\___|_| "
echo ""
}
function usage {
echo "Usage: "
echo -e " ./fsi.sh --install\t Download and install tools"
echo -e " ./fsi.sh --update\t Update existing tools"
}
banner
if ! type git &> /dev/null; then
echo "Install git to allow downloading stuff. "
elif [ -z $1 ]; then
echo "Missing argument";
usage
elif [ $1 == "--install" ]; then
echo "[+] Creating directory $HOME/tools/"
mkdir $HOME/tools/
cd $HOME/tools/
echo "# Feline Sec Installer's aliases" >> $HOME/.bashrc
echo " [+] Installing SQLMap"
git clone https://github.com/sqlmapproject/sqlmap.git
echo 'alias sqlmap="python2 $HOME/tools/sqlmap/sqlmap.py"' >> $HOME/.bashrc
echo " [+] Installing ExploitDB"
git clone https://github.com/offensive-security/exploitdb.git
echo 'alias searcsploit="$HOME/tools/exploitdb/searchsploit"' >> $HOME/.bashrc
echo " [+] Installing Dirsearch"
git clone https://github.com/maurosoria/dirsearch.git
echo 'alias dirsearch="python3 $HOME/tools/dirsearch/dirsearch.py"' >> $HOME/.bashrc
echo " [+] Installing LinEnum"
git clone https://github.com/rebootuser/LinEnum.git
# No need to add to ~/.bashrc
echo " [+] Installing SecList"
git clone https://github.com/danielmiessler/SecLists.git
# No need to add to ~/.bashrc
echo " [+] Installing RemoteShellGenerator"
git clone https://github.com/mthbernardes/rsg.git
echo 'alias rsg="python3 $HOME/tools/rsg/rsg"' >> $HOME/.bashrc
echo " [+] Installing Wafw00f"
git clone https://github.com/EnableSecurity/wafw00f
cd wafw00f && python3 setup.py install
cd ..
# No need to add to ~/.bashrc
cd -
elif [ $1 == "--update" ]; then
echo " [+] Updating packages"
cd $HOME/tests/
find . -maxdepth 1 -type d -print -execdir git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \; 2>/dev/null
cd -
else
usage
fi