Giter VIP home page Giter VIP logo

bishopfox / gadgetprobe Goto Github PK

View Code? Open in Web Editor NEW
578.0 17.0 94.0 2.02 MB

Probe endpoints consuming Java serialized objects to identify classes, libraries, and library versions on remote Java classpaths.

Home Page: https://labs.bishopfox.com/tech-blog/gadgetprobe

License: MIT License

Shell 0.73% Java 99.27%
burp-extensions security-tools java-deserialization pentesting pentest-tools javassist java

gadgetprobe's Introduction

License Python version

Description

You just found a Java deserialization bug, you ran all your ysoserial payloads, and.... you got nothing. What now? How can you debug or build a gadget chain if you're totally blind?

Introducing GadgetProbe, a tool that shines a light on remote classpaths and raises bug severity for all!

GadgetProbe takes a wordlist of Java classes, outputs serialized DNS callback objects, and reports what's lurking in the remote classpath.

Burp Extension Usage

The Burp extension automatically integrates with Burp Collaborator to handle DNS callbacks. The extension also includes signatures and an analyzer to identify library versions of popular sources for gadgets.

Download the release or follow the build instructions below.

After loading the Burp extension:

  1. Send the vulnerable request to intruder, highlighting the vulnerable parameter.

gif

2. Add a list of Java classes (see included wordlists)

gif

3. Add the GadgetProbe payload processor, and any other required processors in your chain (e.g., Base64 encode).

gif

4. Run the intruder attack and watch the results come back in the GadgetProbe Burp Tab.

gif

GadgetProbe Java Library Usage

GadgetProbe can also be used as a Java library or CLI for specialized attacks.

import com.bishopfox.gadgetprobe.GadgetProbe
...
// Call the GadgetProbe constructor with your authoritative nameserver (or use Burp collaborator).
GadgetProbe gp = new GadgetProbe("dnscallback.burpcollaborator.net");
// The crafted object "obj" is now ready to be sent using any custom implementation :)
Object obj = gp.getObject("org.apache.commons.collections.functors.invokertransformer");

Building from Source

# Build JAR (run first)
./gradlew shadowJar

# Build wordlists
./generate_wordlists.sh

How it works

See my write-up on the Bishop Fox blog.

Author

Twitter: @theBumbleSec

GitHub: the-bumble

gadgetprobe's People

Contributors

the-bumble avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gadgetprobe's Issues

Could not resolve all dependencies for configuration ':runtimeClasspath'.

$ ./generate_wordlists.sh
Error: Unable to access jarfile build/libs/GadgetProbe-1.0-SNAPSHOT-all.jar
google:GadgetProbe 0x101$ ./gradlew shadowJar

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not resolve org.json:json:20190722.
     Required by:
         project :
      > Could not resolve org.json:json:20190722.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/json/json/20190722/json-20190722.pom'.
            > Could not HEAD 'https://repo.maven.apache.org/maven2/org/json/json/20190722/json-20190722.pom'.
               > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: connect timed out
   > Could not resolve net.portswigger.burp.extender:burp-extender-api:2.1.
     Required by:
         project :
      > Could not resolve net.portswigger.burp.extender:burp-extender-api:2.1.
         > Could not get resource 'https://repo.maven.apache.org/maven2/net/portswigger/burp/extender/burp-extender-api/2.1/burp-extender-api-2.1.pom'.
            > Could not HEAD 'https://repo.maven.apache.org/maven2/net/portswigger/burp/extender/burp-extender-api/2.1/burp-extender-api-2.1.pom'.
               > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: connect timed out
   > Could not resolve com.nqzero:permit-reflect:0.4.
     Required by:
         project :
      > Could not resolve com.nqzero:permit-reflect:0.4.
         > Could not get resource 'https://repo.maven.apache.org/maven2/com/nqzero/permit-reflect/0.4/permit-reflect-0.4.pom'.
            > Could not HEAD 'https://repo.maven.apache.org/maven2/com/nqzero/permit-reflect/0.4/permit-reflect-0.4.pom'.
               > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: connect timed out
   > Could not resolve org.javassist:javassist:3.26.0-GA.
     Required by:
         project :
      > Could not resolve org.javassist:javassist:3.26.0-GA.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/javassist/javassist/3.26.0-GA/javassist-3.26.0-GA.pom'.
            > Could not HEAD 'https://repo.maven.apache.org/maven2/org/javassist/javassist/3.26.0-GA/javassist-3.26.0-GA.pom'.
               > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: connect timed out
   > Could not resolve com.intellij:forms_rt:7.0.3.
     Required by:
         project :
      > Could not resolve com.intellij:forms_rt:7.0.3.
         > Could not get resource 'https://repo.maven.apache.org/maven2/com/intellij/forms_rt/7.0.3/forms_rt-7.0.3.pom'.
            > Could not HEAD 'https://repo.maven.apache.org/maven2/com/intellij/forms_rt/7.0.3/forms_rt-7.0.3.pom'.
               > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: connect timed out

* Try:``
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.