-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
54 lines (44 loc) · 1.58 KB
/
Copy pathinstall.sh
File metadata and controls
54 lines (44 loc) · 1.58 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
#!/bin/bash
set -e
echo "==============================================================="
echo " Auto-Installer for Cowrie & Extropy by Pixelman0195 "
echo "==============================================================="
echo "[+] Updating system and installing dependencies..."
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y git python3 python3-pip python3-venv libatlas-base-dev libffi-dev libssl-dev authbind
echo "[+] Creating new user 'cowrie'..."
if id "cowrie" &>/dev/null; then
echo "User 'cowrie' detected, skipping"
else
sudo adduser --disabled-password --gecos "" cowrie
fi
echo "[+] Installing Cowrie Honeypot..."
sudo su - cowrie -c "
if [ ! -d '/home/cowrie/cowrie' ]; then
git clone http://github.com/cowrie/cowrie /home/cowrie/cowrie
fi
cd /home/cowrie/cowrie
python3 -m venv cowrie-env
source cowrie-env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
"
echo "[+] Configuring the CTI environment..."
cd ~
if [ ! -d 'Extropy' ]; then
mkdir Extropy
fi
cd Extropy
python3 -m venv cti-env
source cti-env/bin/activate
echo "Installing Python libraries"
pip install --upgrade pip
pip install folium requests numpy keyring
echo "====================================================="
echo " Installation completed successfully! "
echo "====================================================="
echo "In order to start enter:"
echo "sudo su - cowrie"
echo "cd cowrie && source cowrie-env/bin/activate"
echo "cowrie start"
echo "====================================================="