-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples folder with attacks port-scan and ssh-brute-force.
- Loading branch information
1 parent
f3e7967
commit c2459d2
Showing
8 changed files
with
138 additions
and
18 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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
! | ||
daemonize: false | ||
plugins: print | ||
print_refresh_time: 30 | ||
print_output_file: /dorothea/flow-captures.csv | ||
print_output_file_append: true | ||
pcap_interface: docker0 | ||
aggregate: src_host, dst_host, src_port, dst_port, proto, tos | ||
! ... | ||
! | ||
daemonize: false | ||
plugins: print | ||
print_refresh_time: 30 | ||
print_output_file: /dorothea/flow-captures.csv | ||
print_output_file_append: true | ||
pcap_interface: br-b499ba49a7df | ||
aggregate: src_host, dst_host, src_port, dst_port, proto, tos | ||
! ... |
File renamed without changes.
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,43 @@ | ||
name: dorothea | ||
|
||
services: | ||
pmacct-probe: | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile.dorothea | ||
network_mode: "host" | ||
volumes: | ||
- .:/dorothea | ||
|
||
# YOUR ACTIONS: Remove the example service below and add your own | ||
guinea-pig: | ||
build: | ||
context: .. | ||
dockerfile: Dockerfile.guineapig | ||
network_mode: "bridge" | ||
ports: | ||
- "80:80" | ||
healthcheck: | ||
test: ["CMD-SHELL", "service ssh status || exit 1"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '1.0' # Limit to 1.0 CPUs | ||
memory: 1024M # Limit to 1024 MB of RAM | ||
reservations: | ||
cpus: '0.25' # Reserve 0.5 CPUs | ||
memory: 512M # Reserve 512 MB of RAM | ||
|
||
attacker: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.attacker | ||
network_mode: "bridge" | ||
depends_on: | ||
guinea-pig: | ||
condition: service_healthy | ||
command: ["nmap", "-p0-", "-v", "-A", "-T4", "172.17.0.0/16"] | ||
|
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,13 @@ | ||
# Attacker | ||
FROM kalilinux/kali-last-release:latest | ||
|
||
# Install nmap package | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
hydra | ||
# slowloris | ||
|
||
RUN wget -O rockyou.txt https://raw.githubusercontent.com/josuamarcelc/common-password-list/main/rockyou.txt/rockyou_1.txt | ||
|
||
# Run the nmap scan against vulnerable nodes | ||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: dorothea | ||
|
||
services: | ||
pmacct-probe: | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile.dorothea | ||
network_mode: "host" | ||
volumes: | ||
- .:/dorothea | ||
|
||
# YOUR ACTIONS: Remove the example service below and add your own | ||
guinea-pig: | ||
build: | ||
context: .. | ||
dockerfile: Dockerfile.guineapig | ||
networks: | ||
- dorothea-net | ||
hostname: guinea-pig | ||
ports: | ||
- "80:80" | ||
healthcheck: | ||
test: ["CMD-SHELL", "service ssh status || exit 1"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '1.0' # Limit to 1.0 CPUs | ||
memory: 1024M # Limit to 1024 MB of RAM | ||
reservations: | ||
cpus: '0.25' # Reserve 0.5 CPUs | ||
memory: 512M # Reserve 512 MB of RAM | ||
|
||
attacker: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.attacker | ||
networks: | ||
- dorothea-net | ||
depends_on: | ||
guinea-pig: | ||
condition: service_healthy | ||
command: ["hydra", "-l", "dorothea", "-P", "rockyou.txt", "ssh://guinea-pig"] | ||
|
||
networks: | ||
dorothea-net: | ||
driver: bridge | ||
name: dorothea-net |