1
0
mirror of https://github.com/mgeeky/Penetration-Testing-Tools.git synced 2024-12-22 00:55:06 +01:00
mgeeky-Penetration-Testing-.../web
2021-10-17 15:31:22 +02:00
..
arachni-launching-script@a5bb35b0bb Added submodules 2018-02-02 22:40:00 +01:00
burpContextAwareFuzzer@8378c1e74a updated submodules 2021-09-16 15:47:20 +02:00
dirbuster@291c756ad0 Updated submodules 2020-02-04 01:02:45 +01:00
payloads Update README.md 2019-01-29 11:24:26 +01:00
proxy2@8c8485d9f0 updated submodules 2021-09-16 15:47:20 +02:00
py-collaborator Update py-collaborator-mitmproxy-addon.py 2019-02-28 23:47:18 +01:00
tomcatWarDeployer@a1a4453347 update 2021-10-17 15:31:22 +02:00
ajax_crawl2.js Pushes. 2019-01-29 05:22:41 -05:00
ajax_crawl.js First 2018-02-02 22:22:43 +01:00
blind-xxe-payload-1.txt First 2018-02-02 22:22:43 +01:00
blindxxe.py Improved blindxxe.py 2018-10-23 23:03:47 +02:00
burp-curl-beautifier.py First 2018-02-02 22:22:43 +01:00
burpCookieToUrl.py First 2018-02-02 22:22:43 +01:00
create_mitm_certificate.sh First 2018-02-02 22:22:43 +01:00
dummy-web-server.py First 2018-02-02 22:22:43 +01:00
http-auth-timing.py First 2018-02-02 22:22:43 +01:00
java-XMLDecoder-RCE.md Update java-XMLDecoder-RCE.md 2018-05-02 11:39:24 +02:00
oRTC-leak-internal-ip.js First 2018-02-02 22:22:43 +01:00
padding-oracle-tests.py First 2018-02-02 22:22:43 +01:00
pickle-payload.py First 2018-02-02 22:22:43 +01:00
post.php First 2018-02-02 22:22:43 +01:00
README.md readmes changed 2021-05-16 23:46:19 +02:00
reencode.py Improved auto-decoding algorithm to be sensible about final output format - whether it should be text or binary. 2018-10-23 19:49:22 +02:00
sqlmap-tamper-scripts-evaluation.md Added sqlmap tamper scripts evaluation cheatsheet and modified readmes. 2018-03-08 14:50:38 +01:00
struts-cheatsheet.md First 2018-02-02 22:22:43 +01:00
webshell.aspx Update webshell.aspx 2019-02-05 10:07:13 +01:00
webshell.jsp Webshell.jsp updated 2019-06-28 12:37:49 +02:00
xml-attacks.md First 2018-02-02 22:22:43 +01:00
XXE_payloads First 2018-02-02 22:22:43 +01:00
ysoserial-generator.py Several fixes in ysoserial-generator.py 2019-01-06 02:35:28 +01:00

  • ajax_crawl.js - AJAX Crawling bookmarklet - useful bookmarklet for fetching accessible, in-scope URLs from the webpage (and it's sitemap.xml) in order to let them be captured in local proxy like Burp. This in turn is useful for populating local proxy's history and it's website resources tree. Must-have during website pentesting. (gist)

  • arachni-launching-script - Script intended to make launching of Arachni scanner a little bit more comfortable.

  • blindxxe.py - Blind XXE (External XML Entity) attacker's server - to be used in blind XXE data exfiltration (like in Play Framework or Ruby on Rails). (gist)

  • blind-xxe-payload-1.txt - Simplest Blind XXE Payload to test within HTML request. (gist)

  • burpCookieToUrl.py - Example BurpSuite extension copying specified Cookie's value (ticket) into URL parameters set under different name. (gist)

  • burpContextAwareFuzzer - BurpSuite's payload-generation extension aiming at applying fuzzed test-cases depending on the type of payload (basic like integer, string, path; json; GWT; binary) and following encoding-scheme applied.

  • burp-curl-beautifier.py - Simple script for making "Copy as curl command" output in system's clipboard a little nicer, at least for me. (gist)

  • create_mitm_certificate.sh - Simple SSL/TLS self-signed CA Certificate generator for MITM purposes. (gist)

  • dirbuster - wfuzz, SecLists and john -based dirbusting / forceful browsing script intended to be used during web pentest assingments.

  • dummy-web-server.py - a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else. Forked from: bradmontgomery/dummy-web-server.py (gist)

  • http-auth-timing.py - HTTP Auth Timing attack tool as presented at Ruxcon CTF 2012 simple web challange. The tools tries to use every letter for auth password and construct the entire password upon the longest took authentication request. (gist)

  • java-XMLDecoder-RCE.md - Java Beans XMLDecoder XML-deserialization Remote Code Execution payloads. (gist)

  • pickle-payload.py - Python's Pickle Remote Code Execution payload template. (gist)

  • struts-cheatsheet.md - Apache Struts devMode Remote Code Execution cheatsheet. (gist)

  • tomcatWarDeployer - Apache Tomcat auto WAR deployment & pwning penetration testing tool.

  • padding-oracle-tests.py - Padding Oracle test-cases generator utility aiding process of manual inspection of cryptosystem's responses. (gist)

#   Simple utility that aids the penetration tester when manually testing Padding Oracle condition
#   of a target cryptosystem, by generating set of test cases to fed the cryptosystem with.
#
# Script that takes from input an encoded cipher text, tries to detect applied encoding, decodes the cipher
# and then generates all the possible, reasonable cipher text transformations to be used while manually
# testing for Padding Oracle condition of cryptosystem. The output of this script will be hundreds of
# encoded values to be used in manual application testing approaches, like sending requests.
#
# One of possible scenarios and ways to use the below script could be the following:
#   - clone the following repo: https://github.com/GDSSecurity/PaddingOracleDemos
#   - launch pador.py which is an example of application vulnerable to Padding Oracle
#   - then by using `curl http://localhost:5000/echo?cipher=<ciphertext>` we are going to manually
#       test for Padding Oracle outcomes. The case of returning something not being a 'decryption error'
#       result would be considered padding-hit, therefore vulnerability proof.
#
#   This script could be then launched to generate every possible test case of second to the last block
#   being filled with specially tailored values (like vector of zeros with last byte ranging from 0-255)
#   and then used in some kind of local http proxy (burp/zap) or http client like (curl/wget).
  • post.php - (GIST discontinued, for recent version check: https://github.com/mgeeky/PhishingPost ) PHP Credentials Harversting script to be used during Social Engineering Phishing campaigns/projects. (gist)

  • py-collaborator - Poor man's Burp-Collaborator equivalent. A project offering mitmproxy/proxy2 plugin for injecting pingback URLs into processed HTTP(S) requests, and server part capable of handling Out-of-band incoming requests triggered by some Load Balancer/Reverse-Proxy/Caching-Proxy/other fetchers misconfigurations (alike to Server-Side Request Forgery condition). Implementation based on terrific research of James 'albinowax' Kettle Cracking the Lens.

  • reencode.py - ReEncoder.py - script allowing for recursive encoding detection, decoding and then re-encoding. To be used for instance in fuzzing purposes. Imagine you want to fuzz XML parameters within PaReq packet of 3DSecure standard. This packet has been ZLIB compressed, then Base64 encoded, then URLEncoded. In order to modify the inner XML you would need to peel off that encoding layers and then reaplly them in reversed order. This script allows you to do that in an automated manner. (gist)

    Sample output could look like:

Usage: detect.py <text>
Using sample: "4a5451344a5459314a545a6a4a545a6a4a545a6d4a5449774a5463334a545a6d4a5463794a545a6a4a5459304a5449784a5449774a544e684a544a6b4a544935"
[+] Detected encoding: HexEncoded
[+] Detected encoding: Base64
[+] Detected encoding: URLEncoder
[.] No more encodings.
[.] Input data encoded according to: ['HexEncoded', 'Base64', 'URLEncoder']
[>] Decoding HexEncoded: (4a5451344a5459314a545a6a4a545a6a4a545a6d4a5449774a5463334a545a6d4a5463794a545a6a4a5459304a5449784a5449774a544e684a544a6b4a544935) => (JTQ4JTY1JTZjJTZjJTZmJTIwJTc3JTZmJTcyJTZjJTY0JTIxJTIwJTNhJTJkJTI5)
[>] Decoding Base64: (JTQ4JTY1JTZjJTZjJTZmJTIwJTc3JTZmJTcyJTZjJTY0JTIxJTIwJTNhJTJkJTI5) => (%48%65%6c%6c%6f%20%77%6f%72%6c%64%21%20%3a%2d%29)
[>] Decoding URLEncoder: (%48%65%6c%6c%6f%20%77%6f%72%6c%64%21%20%3a%2d%29) => (Hello world! :-))
(1) DECODED TEXT: "Hello world! :-)"

(2) TO BE ENCODED TEXT: "FOO Hello world! :-) BAR"
[>] Encoding URLEncoder: (FOO Hello world! :-) BAR) => (FOO%20Hello%20world%21%20%3A-%29%20BAR)
[>] Encoding Base64: (FOO%20Hello%20world%21%20%3A-%29%20BAR) => (Rk9PJTIwSGVsbG8lMjB3b3JsZCUyMSUyMCUzQS0lMjklMjBCQVI=)

[>] Encoding HexEncoded: (Rk9PJTIwSGVsbG8lMjB3b3JsZCUyMSUyMCUzQS0lMjklMjBCQVI=) => (526b39504a544977534756736247386c4d6a423362334a735a4355794d5355794d43557a5153306c4d6a6b6c4d6a42435156493d)
(3) ENCODED FORM: "526b39504a544977534756736247386c4d6a423362334a735a4355794d5355794d43557a5153306c4d6a6b6c4d6a42435156493d"

When DEBUG is turned on, the output may also look like:

$ ./reencode.py JTQxJTQxJTQxJTQx
[.] Trying: URLEncoder (peeled off: 0). Current form: "JTQxJTQxJTQxJTQx"
[.] Trying: HexEncoded (peeled off: 0). Current form: "JTQxJTQxJTQxJTQx"
[.] Trying: Base64 (peeled off: 0). Current form: "JTQxJTQxJTQxJTQx"
[.] Unclear situation whether input (JTQxJTQxJTQxJTQx) is Base64 encoded. Branching.
[*] Generator returned: ("None", "JTQxJTQxJTQxJTQx", True)
[+] Detected encoder: Base64
[*] Generator returned: ("Base64", "%41%41%41%41", False)
[.] Trying: URLEncoder (peeled off: 1). Current form: "%41%41%41%41"
[+] Detected encoder: URLEncoder
[*] Generator returned: ("URLEncoder", "AAAA", False)
[.] Trying: URLEncoder (peeled off: 2). Current form: "AAAA"
[.] Trying: HexEncoded (peeled off: 2). Current form: "AAAA"
[.] Unclear situation whether input (AAAA) is Hex encoded. Branching.
[*] Generator returned: ("None", "AAAA", True)
[+] Detected encoder: HexEncoded
[*] Generator returned: ("HexEncoded", "<22><>", False)
[.] Trying: URLEncoder (peeled off: 3). Current form: "<22><>"
[.] Trying: HexEncoded (peeled off: 3). Current form: "<22><>"
[.] Trying: Base64 (peeled off: 3). Current form: "<22><>"
[.] Trying: Base64URLSafe (peeled off: 3). Current form: "<22><>"
[.] Trying: JWT (peeled off: 3). Current form: "<22><>"
[.] Trying: None (peeled off: 3). Current form: "<22><>"
None (JTQxJTQxJTQxJTQx)
├── None (JTQxJTQxJTQxJTQx)
└── Base64 (%41%41%41%41)
    └── URLEncoder (AAAA)
        ├── None (AAAA)
        └── HexEncoded ()
[.] Candidate for best decode using None: "AAAA"...
[.] Candidate for best decode using HexEncoded: "<22><>"...
[=] Evaluating candidate: None (data: AAAA)
	Adding 10.0 points for printable characters.
	Adding 0.0 points for high entropy.
	Adding 4.0 points for length.
	Scored in total: 14.0 points.
[=] Evaluating candidate: HexEncoded (data: <20><>)
	Adding 0.0 points for printable characters.
	Adding 0.0 points for high entropy.
	Adding 2.0 points for length.
	Scored in total: 2.0 points.
[?] Other equally good candidate paths:
(Node('/None/Base64/URLEncoder', decoded='AAAA'), Node('/None/Base64/URLEncoder/None', decoded='AAAA'))
[+] Winning decode path is:
Node('/None/Base64/URLEncoder', decoded='AAAA')
[+] Selected encodings: ['None', 'Base64', 'URLEncoder']
(1) DECODED TEXT: "AAAA"

(2) TO BE ENCODED TEXT: "FOO AAAA BAR"
(3) ENCODED FORM: "Rk9PJTIwQUFBQSUyMEJBUg=="
  • sqlmap-tamper-scripts-evaluation.md - Results of my evaluation of sqlmap's tamper scripts against detectability and rating used in F5 Big-IP ASM WAF.

  • oRTC-leak-internal-ip.js - Internal IP address leakage via Object RTC (ORTC) interface implemented in Microsoft Edge. (gist)

  • webshell.aspx - ASPX Backdoor / Webshell equipped with password-based authentication. To be used against ASP.NET applications during Penetration Testing assignments as a proof of concept.

  • webshell.aspx - JSP Backdoor / Webshell equipped with password-based authentication. To be used against Tomcat/JBoss applications during Penetration Testing assignments as a proof of concept.

  • xml-attacks.md - XML Vulnerabilities and Attacks cheatsheet. (gist)

  • XXE Payloads - Internal IP address leakage via Object RTC (ORTC) interface implemented in Microsoft Edge. (gist)

  • ysoserial-generator.py - This tool helps fuzzing applications that use Java serialization under the hood, by automating ysoserial proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization. This tool generates every possible payload for every implemented gadget, thus resulting in number of payload files (or one file with number of lines), being URL/Base64 encoded along the way or not - which can be later used for manual penetration testing assignments like pasting that file to BurpSuite intruder, or enumerating every payload from within bash/python script.