-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenum_auto_install.sh
45 lines (36 loc) · 1.09 KB
/
enum_auto_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
#!/bin/bash
set -e
# Check if the user is root, exit if not
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root." >&2
exit 1
fi
# check and install necessary dependencies
sudo apt update
sudo apt install -y curl wget git make pip pipx libssl-dev
sudo apt install -y nmap tshark dnsenum enum4linux screen gowitness autorecon nuclei netexec
# Install Python packages
sudo pip install --upgrade pip
sudo pip install colorama netaddr
cd /tmp
# Install Google Chrome
if ! type google-chrome > /dev/null 2>&1; then
echo "Installing Google Chrome..."
curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb || sudo apt install -f -y
else
echo "Google Chrome is already installed."
fi
# Install rdpscan
if [ -d /opt/rdpscan ]; then
cd /opt/rdpscan
git pull
make
else
sudo mkdir -p /opt/rdpscan
git clone https://github.com/robertdavidgraham/rdpscan.git /opt/rdpscan
cd /opt/rdpscan
make
fi
# Install crackmapexec
pipx install git+https://github.com/byt3bl33d3r/CrackMapExec