-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New guineapig node and some refactoring.
- Loading branch information
1 parent
4964f28
commit b157ee8
Showing
4 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Attacker | ||
FROM kalilinux/kali-last-release:latest | ||
|
||
ENV DEFAULT_NETWORK=172.17.0.0/16 | ||
|
||
# Install nmap package | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
nmap | ||
nmap \ | ||
# hydra \ | ||
# slowloris | ||
|
||
# Run the nmap scan against vulnerable nodes | ||
CMD nmap -p0- -v -A -T4 ${DEFAULT_NETWORK} | ||
#CMD nmap -p0- -v -A -T4 ${DEFAULT_NETWORK} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Attacker | ||
FROM nginx:bookworm | ||
|
||
# Install nmap package | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
openssh-server \ | ||
sudo \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create SSH directory | ||
RUN mkdir /var/run/sshd | ||
|
||
# Create a user for SSH access | ||
RUN useradd -m -s /bin/bash dorothea && echo 'dorothea:somepass' | chpasswd && adduser dorothea sudo | ||
|
||
# Expose the SSH port | ||
EXPOSE 22 | ||
|
||
# Start the SSH service | ||
CMD ["/usr/sbin/sshd", "-D"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters