Loading...

蜜雪冰城抢单脚本

技术分享1个月前更新 Jone
841 4 0

最近几天某雪出来了一个抢免单活动,感觉都是机器人整点到的时候根本抢不到,不是网络等待中就是已经被抢完了。

蜜雪冰城抢单脚本

分享下网络上的抢单脚本,能用就是别用太频繁容易被封IP,被封了的话只能换个ip了或者用免费和收费的ip池。

某雪抢单脚本

import requests
import threading
from hashlib import md5 as md5Encode

# ----固定变量区----
marketingId = '1816854086004391938'

# 任务数和线程数
tasks_num = 100 # 运行 100 次
threads_num = 30 # 最大线程数 30 个

# ----自定义变量区----
token = '抓包token'
round = '19:00'
secretword = '热情点燃 蜜雪免单'


headers = {
'Access-Token': token,
'Referer': 'https://mxsa-h5.mxbc.net/',
'Host': 'mxsa.mxbc.net',
'Origin': 'https://mxsa-h5.mxbc.net',
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.50(0x18003233) NetType/4G Language/zh_CN miniProgram/wx7696c66d2245d107',
'Content-type': 'application/json;charset=UTF-8',
}


def exchange():
    try:
        url = 'https://mxsa.mxbc.net/api/v1/h5/marketing/secretword/confirm'
        param = f'marketingId={marketingId}&round={round}&s=2&secretword={secretword}c274bac6493544b89d9c4f9d8d542b84'
        m = md5Encode(param.encode("utf8"))
        sign = m.hexdigest()
        body = {
        "secretword": secretword,
        "sign": sign,
        "marketingId": marketingId,
        "round": round,
        "s": 2
        }
        res = requests.post(url, headers=headers, json=body)
        print(f'任务开始: {res.text}')
    except Exception as e:
        print(f'任务失败: {e}')


def threading_run(tasks,threads):
    for i in range(tasks):
        if threading.active_count() < threads + 1 and tasks != 0:
            t = threading.Thread(target=exchange)
            t.start()
            tasks -= 1
            if threading.active_count() == threads + 1:
            # 等待前面的进程结束后,再执行后面的代码,这里为1,因为程序本身即为一个线程
                while threading.active_count() == threads + 1:
                    pass
                while threading.active_count() != 1:
                    pass

def start_task():
    threading_run(tasks_num, threads_num)


if __name__ == '__main__':
    # 手动执行任务
    start_task()

运行前需要修改下面这三个变量

# ----自定义变量区----
token = '抓包token'
round = '19:00'
secretword = '热情点燃 蜜雪免单'

抓包

token需要电脑抓包弄出来,这里用的抓包工具是proxypin,下载地址:network_proxy_flutter 发行版 – Gitee.com

软件解压打开后需要先开启https抓包,然后再安装证书。

蜜雪冰城抢单脚本

点击后会弹出来安装证书帮助,根据图片一步步安装即可,这里不再演示。

证书安装完成后就可以进行https抓包了。

打开某雪冰城小程序,随便点开几个页面就会触发请求,找到域名是https://mxsa.mxbc.net,随便找个请求点开Request页面就能看到token了。

蜜雪冰城抢单脚本

round

round参数指的是抢单的时间段,根据你自己来填,比如你要抢19点的免单券,那就填19:00

secretword

这个就是每场的口令,复制进来即可。

闲聊

话说你们谁抢到了蜜雪的免单券了嘛

© 版权声明

相关文章

4 条评论

  • 小黑
    小黑 游客

    蜜雪每场口令去哪里获取

    回复
    • lkk, nbbslkk
      lkk, nbbslkk

      小程序里面有啊

      回复
  • 大黑
    大黑 游客

    链接没了

    回复
    • lkk, nbbslkk
      lkk, nbbslkk

      抓包链接更新了

      回复