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
sendmail-clamav-exploit-CVE-2007-4560 — Python RCE exploit for Sendmail with ClamAV-Milter <0.91.2 (CVE-2007-4560). Remote root command injection via SMTP RCPT TO headers. | Kitploit
Tools/GitHubGitHub/strikoder-premium/sendmail-clamav-exploit-cve-2007-4560
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlPayload Development
GitHubstrikoder-premium/sendmail-clamav-exploit-cve-2007-4560

sendmail-clamav-exploit-CVE-2007-4560

Python RCE exploit for Sendmail with ClamAV-Milter <0.91.2 (CVE-2007-4560). Remote root command injection via SMTP RCPT TO headers.

View Repository
419 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Sendmail + ClamAV-Milter Exploit (CVE-2007-4560)

Python RCE exploit for Sendmail with ClamAV-Milter <0.91.2 (CVE-2007-4560). Remote root command injection via SMTP RCPT TO headers.

Exploit Demo

About

Python port of the classic Sendmail/ClamAV-Milter remote root exploit originally written in Perl by Eliteboy.

Original exploit: exploit-db.com/exploits/4761

Vulnerability

The exploit leverages improper input sanitization in clamav-milter <0.91.2, allowing command injection through specially crafted SMTP RCPT TO headers. Commands execute with root privileges, enabling:

  1. Modification of /etc/inetd.conf to add a bind shell
  2. Restart of the inetd service to activate the backdoor

Why Python?

The original Perl exploit works, but this Python port offers significant improvements for modern pentesting workflows:

This Python Port:

  • Zero dependencies - Python3 standard library only, no CPAN modules
  • Better error handling - Clear, actionable error messages
  • Progress indicators - Step-by-step feedback during exploitation
  • Usage

    root@kitploit:~
    python sendmail_clamav_exploit.py <target_ip>
    

    After successful exploitation:

    root@kitploit:~
    nc <target_ip> 1001
    bash -i
    

    Tested On

    • Sendmail 8.13.4/8.13.4/Debian-3sarge3
    • ClamAV-Milter < 0.91.2

    References

    • Original exploit: https://www.exploit-db.com/exploits/4761
    • CVE: Related to ClamAV-Milter command injection
    • Author: strikoder (https://github.com/strikoder)
    • Original author: Eliteboy (2007)
    Download Tool