GithubHelp home page GithubHelp logo

anthrax3 / log4j-scanner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xdexter0us/log4j-scanner

1.0 1.0 0.0 4.34 MB

Burp extension to scan Log4Shell (CVE-2021-44228) vulnerability pre and post auth.

License: GNU Affero General Public License v3.0

Assembly 0.12% Kotlin 99.88%

log4j-scanner's Introduction


Log4J Scanner

Burp extension to scan Log4Shell (CVE-2021-44228) vulnerability pre and post auth.



Disclaimer

I am not responsible for your actions, burp-suite freezing, target getting hacked, thermonuclear war, or the current economic crisis caused by you following these directions. YOU are choosing to use this tool, and if you point your finger at me for messing anything up, I will LMAO at you.


Log4J-Scanner

Instructions:

  • You need to have a burp project with pre-existing history, it replays requests with payloads.
  • Add a DNS token from any service you prefer interact.sh, pipedream, canarytokens, dnslog.cn or burp collaborator.
  • Either select one of the pre-defined payload or add a custom payload.
  • Add custom payload as: ${jndi:ldap://[dnstoken]/[random] as dnstokenand random are place-holders, also remember NOT to add }closing curly bracket.
  • Select location for payload insertion, headers or parameters or both.
  • For post-auth scanning add the complete cookie, auth header. Eg: Authorization: Bearer ya29.m.CvkBAd1XLWYfLkuHFIuOYFCfcGI137rr...
  • Hit Hack The Planet button.

Important instructions to remember:

  • You'll need Logger++ or Flow extension to trace the request triggering the DNS callback.
  • Remember to add this extension above Logger++ or Flow to track all out going requests.

Burp-Externder

How to track callbacks:

  • Payload triggering callback will contain a 6 character unique ID
  • Example payload ${jndi:ldap://example.interact.sh/ABC123 where ABC123 will be the unique ID
  • You can search for this ID in Logger++ or Flow to trace the request.

Download releases

https://github.com/0xDexter0us/Log4J-Scanner/releases/

Build from source

  • ./gradlew build fatJar
  • Grab the jar file build/libs/Log4J-Scanner-x.x.x.jar

Installation

  1. Download the latest jar from releases or build from source.
  2. Add the jar to Burp Suite.

If you like the project, please give the repo a star! <3

Resources

  • For passive scanning: https://github.com/f0ng/log4j2burpscanner
  • For active scanning: https://github.com/albinowax/ActiveScanPlusPlus

Changelog

13 December 2021 - v.0.1.0

  • First public release

Thanks To

This was coded be me within a day and is an initial release, bug might occur, bug reports, suggestions and pull requests all are welcome :)


Join our Discord server!

ko-fi

log4j-scanner's People

Contributors

0xdexter0us avatar

Stargazers

 avatar

Watchers

 avatar

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.