Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Log4Pot — A honeypot for the Log4Shell vulnerability (CVE-2021-44228). | Kitploit
Tools/GitHubGitHub/thomaspatzke/log4pot
Payload GenerationVulnerability AnalysisThreat IntelligenceIntrusion DetectionLog Analysis
GitHubthomaspatzke/log4pot

Log4Pot

A honeypot for the Log4Shell vulnerability (CVE-2021-44228).

View Repository
943031 year agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Log4Pot

A honeypot for the Log4Shell vulnerability (CVE-2021-44228).

License: GPLv3.0

Features

  • Listen on various ports for Log4Shell exploitation.
  • Detect exploitation in request line and headers.
  • Download exploit payloads recursively.
  • Log to file and Azure blob storage.

Usage

  1. Install Poetry: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
  2. Fetch this GitHub repository git clone https://github.com/thomaspatzke/Log4Pot.git
  3. Change directory into the local copy with cd Log4Pot
  4. Install pycurl dependencies (Debian / Ubuntu): apt install libcurl4-openssl-dev libssl-dev python3-dev build-essential
  5. Install python dependencies: poetry install
  6. Put parameters into log4pot.conf, see poetry run python log4pot.py --help for an overview.
Download Tool
  • Run: poetry run python log4pot.py @log4pot.conf
  • Alternatively, you can also run log4pot without external dependencies:

    root@kitploit:~
    $ python log4pot.py @log4pot.conf
    

    This will run log4pot without support for logging to Azure blob storage.

    Redirecting traffic / non-container setup

    To redirect traffic to port 80 and 443 to Log4Pot, use following iptables commands:

    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443

    Log Analysis Tool

    The script log4pot-loganalyzer.py extracts all payloads, decodes them with the current decoder and builds a timeline from both. Use is as follows:

    root@kitploit:~
    python log4pot-loganalyzer.py -o <output directory> <input log files>
    

    Analyzing Logs with JQ

    List payloads from exploitation attempts:

    root@kitploit:~
    select(.type == "exploit") | .payload
    

    Decode all base64-encoded payloads from JNDI exploit:

    root@kitploit:~
    select(.type == "exploit" and (.payload | contains("Base64"))) | .payload | sub(".*/Base64/"; "") | sub ("}$"; "") | @base64d
    

    Extract all SHA256 hashes from files downloaded from URLs:

    root@kitploit:~
    [ .[] | select(.type == "payload") | .urls | select((. | length) > 0) | to_entries | .[].value | select((. | length) == 64) ] | unique | .[]