Skip to content

Auto script using mitmproxy for daily sign-in微信小程序miniprogram 提现笔笔省(TiXianBiBiSheng) to obtain cash-free-out-coupon of wechat, giving people freedom from mining/countless shit stuff.

License

whether1/txbbs-WxMiniProgramScript

Repository files navigation

Lucky using others' work, thanks their sweat, struggle, forward.
好东西要懂得分享, 打土豪分田地bushi😂

足够幸运人家造好了工具使make it Good things should be shared, or there' ll be a French Revolution.

GPL lisence, same with mpv, free share for study and education or single one's convenience.
Charge ordinary people / the poor is not suggested(weapon should not given to the bad). if insist to sell I think just 0.1 Chinese yuan is appropriate or charge relatively high(to 0.1yuan) fee like 5 yuan and withdrawall for average fee everyone.2people 2.5yuan/per, 5people 1yuan/per,50 people 0.1yuan to limit etc.

How to use

1.open the mannual proxy button. /打开手动设置代理这个功能按钮(windows)
2.login wechat, weixin /登录微信
3.run controller.py /运行controller.py -> ok !

Effect Preview / 效果演示

demo

开发轨迹

dev-track

0 Trigger/Cause of txbbs-WxMiniProgramScript

shit bloodsucking china india charge money for moving one's own money from wechat to bank or other place,

and, we can't prevent others use wechat/tencent-pay money so we need obtain the shit cash-out-free-coupon.

1 Steps/Process

1.1 learn others' latest progress / reference

No. ref learn status finish status
1 shit tutor 校猫日记 whatshit, salt token, later see251011 wait
2 https://github.com/karma617/autosign want python,later see ng
3 https://github.com/sdjnmxd/qq14-WeSignBot seem good,later see ng
4 https://www.cnblogs.com/NoId/p/16709499.html no use
5 https://blog.csdn.net/weixin_49301289/article/details/122869144 I can improve not wait stupid wake wait
6 https://blog.51cto.com/u_16213330/12644336 a? wht no use PPT
7 https://github.com/r0ysue/r0capture no help but see ng
8 https://github.com/teapot-4l8/3star good, outstanding ng
9

1.2 packet capture and analyze protocol

POST /txbbs-mall/coupon/deliveryfreewithdrawalcoupon HTTP/1.1
Host: discount.wxpapp.wechatpay.cn
Connection: keep-alive
Content-Length: 2
X-Page: pages/gift/index
X-Track-Id: T98BDADBB6134AA71D8D1760206129381
xweb_xhr: 1
session-token: ABDIEHqeAAABAAAAAAD4UzV2kwKxzEXMJp3qaBAAAADYWcDTJkvHmmjSAxSjN7PhQVoS5k9_1j7oWf7h20K_1DudsflCVUv-ReLyLcHn7VdNi9jDTt3LIbK7BB590zPr1QVTY24peb-Im49k29gNKPpEOJ1FzrspQvpkol3nriDjGS-76CWcmEPO7kKf7ubokGT-eAPAPhAVUoXsXjm88cE40rw
X-Module-Name: mmpaytxbbsmp
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) UnifiedPCWindowsWechat(0xf2541113) XWEB/16771
Content-Type: application/json
X-Appid: wxdb3c0e388702f785
Accept: */*
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://servicewechat.com/wxdb3c0e388702f785/92/page-frame.html
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9

{}


HTTP/1.1 200 OK
Server: nginx
Date: Sat, 11 Oct 2025 18:09:07 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 470
Keep-Alive: timeout=8
Cache-Control: no-cache, must-revalidate
X-Content-Type-Options: nosniff
Request-ID: 08C3BAAAC70610BC0618F2B2F8AF0120D63628AEEE04-0
Content-Encoding: deflate
Connection: keep-alive

{"data":{"coupon_info":{"coupon_flag":1,"coupon_id":2,"coupon_type":"COUPON_TYPE_CASH_OUT_FREE","exten":{"delivery_area_list":[],"merchant_logo":"https://gtimg.wechatpay.cn/resource/xres/img/202506/d333d3f6cc96e7cdeee677faf554a7d3_144x144.png","merchant_name":"提现笔笔省"},"face_value":10000,"face_value_max":1200000,"image_info":{"detail_coupon_image":"https://gtimg.wechatpay.cn/resource/xres/img/202508/1109d867d12c2a674d1a64f79196faa2_402x258.png","main_coupon_image":"https://gtimg.wechatpay.cn/resource/xres/img/202508/77270bd81e86e03b8763b7267bc26148_548x516.png"},"name":"平台提现免费券—365天","user_coupon_relative_sec":31536000,"user_coupon_valid_type":"VALID_PERIOD_TYPE_RELATIVE"},"session_id":"2803292609_383727739"},"errcode":0,"graphid":0}

============================ RESTART: D:/whether1/txbbs-WxMiniProgramScript/script.py ===========================
200
{"errcode":268566816,"graphid":0,"hint":"4sk0lu","msg":"用户或帐号未登录或登录鉴权失败","time":"2025-10-12 03:37:48"}

https://developers.weixin.qq.com/community/develop/article/doc/000e28c2704da06c25cef51ad5b813

协议登录微信,没有UI、只有 只能一级一级click看,confirm whether it's a prolem?differ from ms doc.
https://minitest.weixin.qq.com/#/minium/Python/introduction/quick_start https://minitest.weixin.qq.com/

1.3 fail conslusion

你login的时候给你code, 开发才能调code, 那我用户没用有个屁用啊, 就是耗uer时间注意力、精力、力用在哪里呗 还是需要像游戏附加一样的,地址动作

ShitArticleCharge?

only for developer so no use for user convenience.https://juejin.cn/post/7336921343206408232

1.4 2.0 hook

pause because we need fast solution so that time to solve base-problem, and far beyond my current develop phrase/adbiliy

why not open APIs to

seem shit, https://github.com/wymliuming/wxrpa

the ce icon like

1.5 2.1 machine leanring/AI

pause because we need fast solution so that time to solve base-problem, and far beyond my current develop phrase/adbiliy

1.6 temporary solution from ChatGPT

Add miniprogram to desktop is good.
Idea: 🐕tencent still can be consedered as human.

1.6.1 open miniprogram:script.py

1.6.2 mitmproxy listen, catch flow, parse, learn mitmproxy mannual(nok,只是从cmd save 看到了内容请求格式示例,nok)

1.6.2.0 get familiar with miniprogram:preparation,listen practice

1.6.2.1 test catch using cmd manually 2510132000

0.CMD start listen:mitmdump --listen-port 8080 -w aaa.mitm
1.enter/login miniprogrom for token:1.6.1 script.py
2.parse to get token:mitmdump -nr aaa.mitm -s save_token.py
3.last step:post to sign:sign.py 2510132200success,then clean up steps,temp data,mind

1.6.2.2 automatic embed python script

2510132227:wait ,nok,not start to do
Scheduled to be finish at 251014 finish/done 2510141433
1 controller.py: main file, call 'save_token.py' 'script.py' 'sign.py'
2 save_token.py: addon which catch flow when mitm run 3 script.py: open wx miniprogram
4 sign.py: parse/extract token and sign-in
5 step.txt: custom use cmd easy because path(/d/whether1/txbbs-WxMiniProgramScript) hard to press and record details as well
6 module-version.txt: record .py scripts' changes why
7 wait-xxxx: wait to explorer

1.6.2.3

sign.py-0.11 add sign-response judge close.py-0.01 loop if fail until success

Futuer to do

0.dumpmaster Embed
0.post success verify, post response check how v1.6.2.3-ok 0.modify and reverse proxy auto:proxy filter should del;see 1.6.2.2test success
0.add timestamp to 5 data file to see fail test. ok.deny:every step error can judge and log. no error no do 0#whether work? controller-0.03.py stop_process(p);seem work because cmd stay when sign-in success
ok done-# controller-0.04.py&#sign-0.09:future EL Cprogram many status now true/false

1.auto set temporary proxy:when see chatgpt session
2.def response(flow: http.HTTPFlow) -> None:Useful?seem meaningless
3.controller-0.01 can study, seem include/merge parse token work
4.mask study sign.py
5.study sign-0.06.py&modify修改-代码问题分析.mhtml, seem not that perfect when main.py call another py;
0.07 AI is good, or I won't found problem of 缩进 for long time
6.C program is good EL job. mpv etc.
7.lisence learn
8.

About

Auto script using mitmproxy for daily sign-in微信小程序miniprogram 提现笔笔省(TiXianBiBiSheng) to obtain cash-free-out-coupon of wechat, giving people freedom from mining/countless shit stuff.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages