forked from trustedsec/ptf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request trustedsec#2 from trustedsec/master
Update
- Loading branch information
Showing
133 changed files
with
2,461 additions
and
397 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM debian:sid | ||
LABEL version="1.1" | ||
LABEL description="Dockerized version of Trustedsec PTF - Penetration Testing Framework" | ||
LABEL author="Jacobo Avariento Gimeno" | ||
|
||
COPY bootstrap.sh /root/bootstrap.sh | ||
RUN bash -c /root/bootstrap.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,25 @@ | ||
# Docker support for PTF | ||
|
||
To be able to use the principle Security-in-a-box and run constantly penetration testing and vulnerability assessment against our applications and infrastructure, I developed a quick hack to be able to run PTF framework inside a Docker container. | ||
|
||
|
||
First of all, build and compile all the tools and the image itself (~2 hours). | ||
Inside this folder run the following: | ||
``` | ||
docker build --rm -t spinfoo/ptf:1.1 . | ||
``` | ||
|
||
|
||
After, you can run PTF anytime with: | ||
``` | ||
docker run -it spinfoo/ptf:1.1 /bin/bash | ||
``` | ||
|
||
|
||
# TODO | ||
* Run install checks after modules update/install (go through /usr/local/bin and check successful execution) | ||
* Check automatically for dependencies, improve efficiency | ||
|
||
|
||
# Credits | ||
David Kennedy/Trustedsec PTF project and Jacobo Avariento (spinfoo) for the docker support. |
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,20 @@ | ||
#!/bin/bash | ||
# | ||
# Commands run by Docker when building the docker container with PTF framework | ||
# | ||
# | ||
echo "docker-ptf" > /etc/hostname | ||
apt-get update | ||
apt-get upgrade -y | ||
apt-get install -y python git sudo locate vim #libgmp3-dev:i386 | ||
cd /root | ||
git clone https://github.com/spinfoo/ptf.git | ||
cd ptf | ||
git checkout docker | ||
git pull origin docker | ||
echo -en "use modules/install_update_all\nyes\n" | python ptf | ||
echo | ||
echo | ||
echo "** DONE **" | ||
echo "PTF is built and ready to use." | ||
exit 0 |
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
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,36 @@ | ||
#!/usr/bin/env python | ||
##################################### | ||
# Installation module for AUTOSPLOIT | ||
##################################### | ||
|
||
# AUTHOR OF MODULE NAME | ||
AUTHOR="David Kennedy (ReL1K)" | ||
|
||
# DESCRIPTION OF THE MODULE | ||
DESCRIPTION="This module will install/update the AutoSploit - Automated Exploitation via Shodan and Metasploit" | ||
|
||
# INSTALL TYPE GIT, SVN, FILE DOWNLOAD | ||
# OPTIONS = GIT, SVN, FILE | ||
INSTALL_TYPE="GIT" | ||
|
||
# LOCATION OF THE FILE OR GIT/SVN REPOSITORY | ||
REPOSITORY_LOCATION="https://github.com/NullArray/AutoSploit" | ||
|
||
# WHERE DO YOU WANT TO INSTALL IT | ||
INSTALL_LOCATION="autosploit" | ||
|
||
# DEPENDS FOR DEBIAN INSTALLS | ||
DEBIAN="git,python-pip" | ||
|
||
# DEPENDS FOR FEDORA INSTALLS | ||
FEDORA="git,python-pip" | ||
|
||
# COMMANDS TO RUN AFTER | ||
AFTER_COMMANDS="pip install shodan blessing,pip install -r {INSTALL_LOCATION}requirements.txt,cd {INSTALL_LOCATION},./install.sh" | ||
|
||
# THIS WILL CREATE AN AUTOMATIC LAUNCHER FOR THE TOOL | ||
LAUNCHER="autosploit" | ||
|
||
# PREREQ INSTALL MODULES NEEDED FOR THIS TOOL TO WORK PROPERLY | ||
TOOL_DEPEND="modules/exploitation/metasploit" | ||
|
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
Oops, something went wrong.