-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·92 lines (83 loc) · 2.26 KB
/
install.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
#!/bin/bash
# This is an automated tool for penetration and forensic tool installation.
# Especially for easy installation on a debian-based distribution instead of
# a full-fledged system like Kali linux.
input='list' # List for the commands we want to install
# check the PMS
if $(command -v apt dpkg &> /dev/null)
then
apt update
else
echo "Only Debian-based distro"
exit
fi
# Checking curl and wget command
if ! $(command -v curl wget &> /dev/null)
then
echo curl >> $input
echo wget >> $input
fi
# Check all the commands we want to install and then install
if [ -n $input ]
then
while read tool
do
echo "Checking Package..."
if $(dpkg --list $tool &> /dev/null)
then
echo "$tool is already installed"
else
if $(apt-cache show $tool &> /dev/null)
then
bundle+=( $tool )
else
package+=( $tool )
fi
fi
done < "$input"
apt install ${bundle[@]} -y
else
echo "Please enter some tool to list"
fi
# Show not founding package
if [ -n $package ]
then
echo "${PackageNotFound[*]} not found on repository"
fi
# metasploit freamwork installation
if ! $(dpkg --list metsploit-framework)
then
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod u+x msfinstall
./msfinstall
rm msfinstall
fi
# Checking java on the system
if ! $(command -v openjdk-21-jre openjdk-21-jdk &> /dev/null)
then
apt install openjdk-21-jre openjdk-21-jdk -y 2> /dev/null
fi
# Installation for Burp Suite
if ! $(command -v burpsuite &> /dev/null)
then
echo -n "Installing burpsuite..."
wget -q -O burpsuite_community_linux.sh "https://portswigger.net/burp/releases/startdownload?product=community&version=2024.1.1.4&type=Linux"
echo "OK"
chmod u+x burpsuite_community_linux.sh
./burpsuite_community_linux.sh
rm burpsuite_community_linux.sh
else
echo "Burp Suite is already installed"
exit
fi
# Installation maltego
if ! $(command -v maltego &> /dev/null)
then
echo -n "Installing maltego..."
wget -q -O Maltego.deb https://downloads.maltego.com/maltego-v4/linux/Maltego.v4.6.0.deb
echo "OK"
apt install ./Maltego.deb &> /dev/null
rm Maltego.deb
else
echo "maltego already installed"
fi