Skip to content

Commit

Permalink
Merge pull request trustedsec#8 from gazcbm/knockpy
Browse files Browse the repository at this point in the history
Knockpy
  • Loading branch information
gazcbm authored Jan 1, 2018
2 parents 14d5944 + 54841f9 commit 2213da0
Show file tree
Hide file tree
Showing 24 changed files with 102 additions and 38 deletions.
2 changes: 1 addition & 1 deletion modules/av-bypass/backdoorfactory.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#####################################
# Installation module for backdoo factory
# Installation module for backdoor factory
#####################################

# AUTHOR OF MODULE NAME
Expand Down
2 changes: 1 addition & 1 deletion modules/exploitation/ettercap.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AUTHOR="Ettercap"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update ettercap, A siute fro mna in teh mdilde atakacs"
DESCRIPTION="This module will install/update ettercap, A suite for man in the middle attacks"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
Expand Down
2 changes: 1 addition & 1 deletion modules/exploitation/snarf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AUTHOR="Sanjiv Kawa (@skawasec)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update Snarf, an SMB focued MITM / relay suite"
DESCRIPTION="This module will install/update Snarf, an SMB focused MITM / relay suite"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
Expand Down
33 changes: 33 additions & 0 deletions modules/intelligence-gathering/knockpy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python
#####################################
# Installation module for Knockpy
#####################################

# AUTHOR OF MODULE NAME
AUTHOR="Gareth Darby (gazcbm)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update knockpy - A python tool designed to enumerate subdomains through a wordlist - by guelfoweb"

# 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/guelfoweb/knock.git"

# WHERE DO YOU WANT TO INSTALL IT
INSTALL_LOCATION="knockpy"

# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="git,python-dnspython"

# DEPENDS FOR FEDORA INSTALLS
FEDORA="git,python-dnspython"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION}, echo -e "Opening vim in 10 seconds- Please enter your Virus Total API key", sleep 10s, vim knockpy/config.json, python setup.py install"

# CREATE LAUNCHER
LAUNCHER="knockpy"

32 changes: 32 additions & 0 deletions modules/intelligence-gathering/nullinux.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env python
#####################################
# Installation module for Nullinux
#####################################

# AUTHOR OF MODULE NAME
AUTHOR="Nick Dyer"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update Nullinux, a tool for enumerating SMB null sessions"

# 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/m8r0wn/nullinux.git"

# WHERE DO YOU WANT TO INSTALL IT
INSTALL_LOCATION="nullinux"

# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="python,smbclient"

# DEPENDS FOR FEDORA INSTALLS
FEDORA="python,smbclient"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION},sh ./setup.sh"

# CREATE LAUNCHER
LAUNCHER="nullinux"
4 changes: 2 additions & 2 deletions modules/password-recovery/hashcat-legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION},make linux"

# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="hashcat"
4 changes: 2 additions & 2 deletions modules/password-recovery/hashcat-utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
AFTER_COMMANDS="cd {INSTALL_LOCATION}src/,make"


# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="hashcat-utils"
Expand Down
4 changes: 2 additions & 2 deletions modules/password-recovery/hashcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
AFTER_COMMANDS="cd {INSTALL_LOCATION},make -j4,make install"


# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="hashcat"
Expand Down
4 changes: 2 additions & 2 deletions modules/password-recovery/johntheripper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
AFTER_COMMANDS="cd {INSTALL_LOCATION},cd src,./configure && make -j `nproc` && make install,cd {INSTALL_LOCATION},cp -a run/* {INSTALL_LOCATION},rm -rf run/"


# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="john"
Expand Down
6 changes: 3 additions & 3 deletions modules/password-recovery/maskprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AUTHOR="Martin Bos (@purehate_)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update maskprocessor - High-Performance word generator with a per-position configureable charset"
DESCRIPTION="This module will install/update maskprocessor - High-Performance word generator with a per-position configurable charset"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
Expand All @@ -26,8 +26,8 @@
AFTER_COMMANDS="cd {INSTALL_LOCATION}src/, make,cp mp64.bin ../maskprocessor"


# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="maskprocessor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# DEPENDS FOR FEDORA INSTALLS
FEDORA=""

# DONT RUN AFTER COMMANDS ON UPDATE
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# COMMANDS TO RUN AFTER
Expand Down
4 changes: 2 additions & 2 deletions modules/password-recovery/patator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
AFTER_COMMANDS=""


# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="patator"
Expand Down
4 changes: 2 additions & 2 deletions modules/password-recovery/princeprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
AFTER_COMMANDS="cd {INSTALL_LOCATION}src/, make,cp pp64.bin ../princeprocessor"


# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="princeprocessor"
Expand Down
4 changes: 2 additions & 2 deletions modules/password-recovery/statsprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
AFTER_COMMANDS="cd {INSTALL_LOCATION}src/, make,cp sp64.bin ../statsprocessor"


# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="statsprocessor"
Expand Down
2 changes: 1 addition & 1 deletion modules/pivoting/iodine.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AUTHOR="BustedSec (Frank Trezza)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update iodine - a tool for tunneling IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed. Reading http://dev.kryo.se/iodine/wiki/HowtoSetup is sugguested"
DESCRIPTION="This module will install/update iodine - a tool for tunneling IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed. Reading http://dev.kryo.se/iodine/wiki/HowtoSetup is suggested"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
Expand Down
4 changes: 2 additions & 2 deletions modules/post-exploitation/credcrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
# COMMANDS TO RUN AFTER
AFTER_COMMANDS="wget https://github.com/clymb3r/PowerShell/blob/master/Invoke-Mimikatz/Invoke-Mimikatz.ps1, mv Invoke-Mimikatz.ps1 /var/www/ "

# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="credcrack"
7 changes: 3 additions & 4 deletions modules/post-exploitation/empyre.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
FEDORA="git,m2crypto,python-crypto"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION},cd setup,./cert.sh,echo -e "\n" | ./setup_database.py,echo -e y | ./install.sh"
AFTER_COMMANDS='cd {INSTALL_LOCATION},cd setup,./cert.sh,echo -e "\n" | ./setup_database.py,echo -e y | ./install.sh'

# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=NO
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# LAUNCHER
LAUNCHER="empyre"

2 changes: 1 addition & 1 deletion modules/post-exploitation/powersploit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AUTHOR="David Kennedy (ReL1K)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update PowerSploit - powershell epxloitation"
DESCRIPTION="This module will install/update PowerSploit - powershell exploitation"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
Expand Down
8 changes: 4 additions & 4 deletions modules/powershell/empire.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AUTHOR="Jared Haight (@jaredhaight)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update Empire and Deathstar - A Powershell based post-explotation framework"
DESCRIPTION="This module will install/update Empire and Deathstar - A Powershell based post-exploitation framework"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
Expand All @@ -26,10 +26,10 @@
FEDORA="git,m2crypto,python-crypto"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION},cd setup,echo -e "\n" | ./install.sh,git clone https://github.com/byt3bl33d3r/DeathStar,cd DeathStar,git pull,pip3 install -r requirements.txt"
AFTER_COMMANDS='cd {INSTALL_LOCATION},cd setup,echo -e "\n" | ./install.sh,git clone https://github.com/byt3bl33d3r/DeathStar,cd DeathStar,git pull,pip3 install -r requirements.txt'

# DONT RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE=YES
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="YES"

# LAUNCHER
LAUNCHER="empire"
2 changes: 1 addition & 1 deletion modules/reporting/nessus_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# DEPENDS FOR FEDORA INSTALLS
FEDORA="perl,perl-CPAN"

# DONT RUN AFTER COMMANDS ON UPDATE
# DON'T RUN AFTER COMMANDS ON UPDATE
BYPASS_UPDATE="NO"

# COMMANDS TO RUN AFTER
Expand Down
2 changes: 1 addition & 1 deletion modules/vulnerability-analysis/universaldetector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def close
end

if $debug
$stderr << "no probers hit minimum threshhold\n" if $debug
$stderr << "no probers hit minimum threshold\n" if $debug
for prober in @_mCharSetProbers[0]._mProbers
next if not prober
$stderr << "#{prober.get_charset_name} confidence = #{prober.get_confidence}\n" if $debug
Expand Down
2 changes: 1 addition & 1 deletion modules/wireless/fluxion.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AUTHOR="Frank Trezza (bustedsec)"

# DESCRIPTION OF THE MODUL
DESCRIPTION="This module will install/update fluxion - a fake access point designed to trick users into divulgining wifi passwords"
DESCRIPTION="This module will install/update fluxion - a fake access point designed to trick users into divulging wifi passwords"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
Expand Down
2 changes: 1 addition & 1 deletion ptf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ except KeyboardInterrupt:
sys.exit()

except Exception as e:
print_error("[!] DANGER WILL ROBINSON. DANGER WILL ROBINSON. Error has occured.")
print_error("[!] DANGER WILL ROBINSON. DANGER WILL ROBINSON. Error has occurred.")
print_error("[!] It's not possible its due to my coding skillz, it must be you? :-)")
print_error(("[!] Printing that error. Get that error. You get it: " + str(e)))
2 changes: 1 addition & 1 deletion readme/CREDIT
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Special thanks to everyone that makes PTF possible. All the pull requests, testi

Shout out:

fnoris for fedora compability
fnoris for fedora compatibility
special thanks to vdbaan (Steven van der Baan) for multiple module submissions and features

0 comments on commit 2213da0

Please sign in to comment.