Skip to content

Commit dfa5375

Browse files
committed
Refactor install script to clone websploit repository and use its docker-compose.yml file. Removed direct download of docker-compose.yml and updated container startup process.
1 parent 49db70d commit dfa5375

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

install.sh

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,6 @@ echo "[+] Installing Docker and Docker Compose..."
110110
sudo apt install -y docker.io docker-compose
111111
sudo systemctl enable docker --now
112112

113-
114-
115-
echo "[+] Fetching docker-compose.yml from WebSploit.org..."
116-
wget -O /root/docker-compose.yml https://raw.githubusercontent.com/The-Art-of-Hacking/websploit/refs/heads/master/docker-compose.yml
117-
118-
echo "[+] Starting containers..."
119-
cd /root
120-
docker-compose -f docker-compose.yml up -d
121-
122113
#--------------------------------------------------
123114
# 6) Clone various GitHub repos including mine, SecLists, GitTools, and PayloadsAllTheThings
124115
#--------------------------------------------------
@@ -128,15 +119,27 @@ git clone https://github.com/The-Art-of-Hacking/h4cker.git
128119
git clone https://github.com/danielmiessler/SecLists.git
129120
git clone https://github.com/internetwache/GitTools.git
130121
git clone https://github.com/swisskyrepo/PayloadsAllTheThings.git
122+
git clone https://github.com/The-Art-of-Hacking/websploit.git
131123

132124
# IoT firmware exercises for reverse engineering courses
133125
mkdir -p /root/iot_exercises
134126
cd /root/iot_exercises
135127
wget https://github.com/OWASP/IoTGoat/releases/download/v1.0/IoTGoat-raspberry-pi2.img -O firmware1.img
136128
wget https://github.com/santosomar/DVRF/releases/download/v3/DVRF_v03.bin -O firmware2.bin
137129

130+
131+
#--------------------------------------------------
132+
# 7) Fetching docker-compose.yml from WebSploit.org
133+
#--------------------------------------------------
134+
echo "[+] Using docker-compose.yml from websploit.git"
135+
136+
echo "[+] Starting containers..."
137+
cd /root/websploit
138+
docker-compose -f docker-compose.yml up -d
139+
140+
138141
#--------------------------------------------------
139-
# 7) Install radamsa from source
142+
# 8) Install radamsa from source
140143
#--------------------------------------------------
141144
echo "[+] Installing radamsa..."
142145
cd /root
@@ -145,7 +148,7 @@ cd radamsa
145148
make && make install
146149

147150
#--------------------------------------------------
148-
# 8) Install Sublist3r (example of pip in venv or system-wide)
151+
# 9) Install Sublist3r (example of pip in venv or system-wide)
149152
# We'll do it in the same venv to avoid PEP 668 issues
150153
#--------------------------------------------------
151154
echo "[+] Installing Sublist3r in the same Python venv..."
@@ -159,14 +162,14 @@ pip install -r requirements.txt
159162
deactivate
160163

161164
#--------------------------------------------------
162-
# 9) Install enum4linux-ng
165+
# 10) Install enum4linux-ng
163166
#--------------------------------------------------
164167
cd /root
165168
git clone https://github.com/cddmp/enum4linux-ng
166169
# You can also pip-install it in the venv if you want
167170

168171
#--------------------------------------------------
169-
# 10) If using Parrot, install searchsploit
172+
# 11) If using Parrot, install searchsploit
170173
#--------------------------------------------------
171174
distribution=$(lsb_release -i | awk '{print $NF}')
172175
if [[ "$distribution" == "Parrot" ]]; then
@@ -178,7 +181,7 @@ fi
178181

179182

180183
#--------------------------------------------------
181-
# 11) Container info script
184+
# 12) Container info script
182185
#--------------------------------------------------
183186
echo "[+] Installing 'containers' script..."
184187
curl -sSL https://websploit.org/containers.sh > /root/containers.sh
@@ -191,4 +194,4 @@ mv /root/containers.sh /usr/local/bin/containers
191194
echo "
192195
[✔] All done! All tools, apps, and containers have been installed and setup.
193196
Have fun hacking! - Omar (Ωr) Santos
194-
"
197+
"

0 commit comments

Comments
 (0)