Giter VIP home page Giter VIP logo

log4j-rce-scanner's Introduction

Log4j-RCE-Scanner

GitHub last commit

FeatureRequirementsInstallationUsageContact


RCE scanner for Log4j

Using this tool, you can scan for remote command execution vulnerability CVE-2021-44228 on Apache Log4j at multiple addresses.

Affected versions < 2.15.0

Features

  • It can scan according to the url list you provide.
  • It can scan all of them by finding the subdomains of the domain name you give.
  • It adds the source domain as a prefix to determine from which source the incoming dns queries are coming from.

Requirements

  1. httpx
  2. curl

If you want to scan with a domain name, you must additionally install subfinder, assetfinder and amass.

Installation

  1. git clone https://github.com/adilsoybali/Log4j-RCE-Scanner.git
  2. cd Log4j-RCE-Scanner
  3. chmod +x log4j-rce-scanner.sh

Usage

./log4j-rce-scanner.sh -h

This will display help for the tool. Here are all the switches it supports.

-h, --help - Display help
-l, --url-list - List of domain/subdomain/ip to be used for scanning.
-d, --domain - The domain name to which all subdomains and itself will be checked.
-b, --burpcollabid - Burp collabrator client id address or interactsh domain address.

Example uses:
./log4j-rce-scanner.sh -l httpxsubdomains.txt -b yrt45r4sjyoj19617jem5briio3cs.burpcollaborator.net
./log4j-rce-scanner.sh -d adilsoybali.com -b yrt45r4sjyoj19617jem5briio3cs.burpcollaborator.net

Click here to go to Burp collaborator documentation page.

Click here to go to Interactsh.

If the domain is vulnerable, dns callbacks with the vulnerable domain name is sent to the burp collaborator or interactsh address you provided.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Email Linkedin Discord Twitter Personal Web Site

Acknowledgments

Stargazers over time

Stargazers over time

log4j-rce-scanner's People

Contributors

adilsoybali avatar dashoe avatar zsolt-halo 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

log4j-rce-scanner's Issues

requirements issue

Screenshot (271)
i installed amass but it's showing error that amass is not installed.

[Request] Display Positive or Negative Results at end of Scanning

Is your feature request related to a problem? Please describe.
When I run the scanner, I do not see any indication at the end of its run whether the tests were positive or negative. It just returns to the prompt.

Describe the solution you'd like
I would like to see a statement at the end of the scanner's execution indicating if there were any positive or negative results, according to the domain(s) being tested.

Describe alternatives you've considered
I have looked at other tools, example - fullhunt.io's scanner which does indicate a positive or negative result

Additional context
Add any other context or screenshots about the feature request here.

Httpx failing

Is your feature request related to a problem? Please describe.
When running log4j scan httpx sends error

Example:
./log4j-rce-scanner.sh -l ip.txt -b t

Usage: httpx [OPTIONS] URL

Error: No such option: -s

Describe the solution you'd like
Change so it doesn't run with -s?

Describe alternatives you've considered
N/A

Additional context
Nothing

Dependency Checks

Is your feature request related to a problem? Please describe.
clone and run doesn't work for -d option.

Example:
./log4j-rce-scanner.sh -d url.com -b 0

Subfinder is working

./log4j-rce-scanner.sh: line 35: subfinder: command not found

Assetfinder is working

./log4j-rce-scanner.sh: line 35: assetfinder: command not found

Amass is working

./log4j-rce-scanner.sh: line 35: amass: command not found
./log4j-rce-scanner.sh: line 35: httpx: command not found

Describe the solution you'd like
If I use -d for domains it needs to check that I have the dependent projects installed. It really needs to spit out what I should do to make this work. Better yet include dependencies in the first place!

Describe alternatives you've considered
N/A

Additional context
Additionally I really need this to work without the -b requirement, especially since I have NO idea what that is from your readme. And the linked site doesn't seem to have a way for me to create an account...

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.