Skip to content

galenlim/distcc-exploit-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

distcc-exploit-python

This Python script is ported from a Metasploit module (/unix/misc/distcc_exec). It exploits a remote code execution vulnerability in the distcc, a distributed compiler.

I ported it mainly as a learning project. What I learned:

  • Understanding remote exploits
  • Practice Python scripting
  • Using Wireshark to examine the packets sent by the exploit in order to debug my Python script

This script might be helpful for OSCP as Metasploit usage is restricted.

Usage

./distcc_exploit <ip> <port>

NOTE: Replace the payload in the script.

How to check for this vulnerability

Nmap:

nmap -p <port> <ip> --script distcc-cve2004-2687

https://nmap.org/nsedoc/scripts/distcc-cve2004-2687.html

Metasploit:

msf5 exploit(unix/misc/distcc_exec) > check

About

An exploit for a RCE vulnerability in distcc written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages