JiHuo.Ma

企业微信做媒介,利用tasker转发安卓短信到微信

0x00 概述

财政大权归媳妇所有,短信验证码实时告知媳妇

0x01 开整

原理:

服务器搭建企业微信消息通知,微信与企业微信应用绑定,收取企业微信消息。

tasker读取安卓手机的短信内容,通过http发送到服务器。

企业微信:

【应用管理】>【创建应用】,上传logo,起个名字,可见范围选择想要通知的人,我选择我和我媳妇(需要已经加入了企业)。然后【创建应用】。

选择刚刚创建的应用,在应用页面能看到【AgentId】/【Secret】,可见范围能看到刚才添加的人,鼠标放上就能看到【账号】,一般是拼音,一会需要这个账号。

点击【我的企业】>【微信插件】,右侧的邀请关注是个二维码,用微信扫码(刚才可见范围的微信)。

服务端python:

def send_ent_micromessage(_text, _touser='JiHuoMa', _msgtype='text', _corpid, _appsecret, _agentid):
    '''
    发送企业微信的消息,_touser在电脑端的通讯录查看,暂时只支持文本
    '''
    def _sub():
        _access_token = requests.get('https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid={}&corpsecret={}'.format(_corpid, _appsecret)).json()['access_token']
        if _access_token:
            r = requests.post('https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=' + _access_token, json={
                'touser': _touser,
                'msgtype': _msgtype,
                'agentid': _agentid,
                'text': {
                    'content': _text.replace('\
', '
') #直接使用
不好用,需要替换一下
                }
            })
            return r.json()
        else:
            return False

    return _sub()

if __name__ == '__main__':
    # _corpid 【企业ID】在我的企业查看
    # _appsecret 【Secret】应用管理页面查看
    # _agentid 【AgentId】应用管理页面查看
    # 注意access_token有效时间,默认2效时,也不要每次都请求,写入到数据库,超时了再重新请求新的token
    # _touser 就是在企业微信网页上看到的【账号】,支持多用户,格式'JiHuoMa|JiHuoMa2'
    send_ent_micromessage('测试文本', _corpid='xxxxxxxxx', _appsexret='xxxxxxxxx', _agentid='xxxxxxxx')

http接口就不写了,简单的很

安卓端tasker:

配置文件>新建【事件】>【电话】>【收到短信】,返回

新建任务>【网络】> 【HTTP Request】> 【URL】输入服务器的http接口,举个例子:https://jihuo.ma/api/wechat/?touser=JiHuoMa&text=%SMSRB

其中%SMSRB是变量,指的是短信文本。

0xff 完结撒花

不是完整源码,只是讲个大概,睡了,明天周一,上班愉快

# ARTICLE

评论区 11

回复
Y
Yanira 2026-03-20 08:34
Dear Jihuo Ma, I’m Carl Solomon from Velociti Consultancy Group, a Finnish-registered company with operations in Canada. We connect businesses with lenders/investors in Qatar, Oman, the UAE, and Saudi Arabia for structured financing—loans at 3% interest, up to 2-year grace, and flexible security. If you’re exploring funding, please share your requirements for a confidential discussion. Many thanks, Carl Solomon Velociti Consultant Group [email protected] Mobile:+1 437 220 4900 WhatsApp: +1 437 220 4900
P
Pablo 2026-04-05 06:41
Hello there, Here is the greatest results Video generator for eCommerce websites like jihuo.ma. Running a store means time is everything. Letstok turns your products into videos automatically — no editing, no production costs. Shop owners are using it to create more content in less time. Try free today (50% off Black Friday): https://www.letstok.com/ Best, Pablo Wardell Letstock AI
T
Teodoro 2026-04-08 10:27
Hi, Came across your website and thought we’d share something that might help. We created a platform where you can generate AI content (including short ads), integrate your socials, and publish everything easily, and there’s a completely free plan. No pressure, just free tools if you want to try them. Start here if you're curious: https://bit.ly/4uGOUCy Many Thanks, Teodoro Dockery Letstok AI If at any point you no longer want to receive any more emails from our side, please fill the form at bit. ly/fillunsubform with your domain address (URL). 4111 Poe Road, New Hartford, CA, USA, 94676
T
Tyree 2026-04-22 22:05
Hi there, We just found your website and wanted to reach out. We’re giving businesses free lifetime access to Letstok AI, no catch. It helps you generate basic AI-powered content, integrate your social profiles, and publish content from one place. It’s completely optional, just thought it could help out. You can check it here: https://letstokugc.com/ Many Thanks, Tyree Dartnell Letstok AI When you wish to stop getting further emails from our side, just fill the form at bit. ly/fillunsubform with your domain address (URL). Landstrasse 12, Menands, CA, USA, 95541
S
Sunil 2026-05-10 22:26
Hey, Small heads up… I’ve just launched a limited free giveaway, and I saved you a spot. Grab your entry here before it shuts: https://suniljaindvg.systeme.io/6850adaf A winner will be picked… might as well be you, right? If you’d rather stop receiving any further emails from me, please complete the form on my website
M
Mavis 2026-05-12 20:43
Hey, We came across your store and thought it looks great. LetsTok AI helps you create product ads and visuals without shooting or production. It also studies competitor ads and generates similar creatives tailored to your store. If you’d like to explore it, you can start here: https://letstalkugc.com Best regards,, Mavis Holdsworth Letstok AI Should you wish to stop getting additional communications from this message, please fill the form at bit. ly/fillunsubform with your domain address (URL). Muhlenstrasse 31, Poughkeepsie, CA, USA, 92918
G
Genesis 2026-05-13 08:19
Hi there, We came across your WooCommerce store and really liked what you’re building. With LetsTok AI, you can turn your product listings into ready-to-use ad creatives and videos. It also helps you find and recreate competitor ads tailored to your products. If you’d like to explore it, you can start here: https://letstokvideo.com Warm Regards, Genesis Lykins Letstok AI In case you prefer not to get future notifications from our side, just fill the form at bit. ly/fillunsubform with your domain address (URL). Discesa Gaiola 140, Bridgehampton, CA, USA, 95568
C
Chara 2026-05-23 03:55
Hello there, Your competitors are teaching AI their business Right now, businesses in every industry are training AI to: - Respond to customer questions instantly - Collect qualified interest without forcing people through static forms - Qualify buyers - Take repetitive support questions off the team - Replace friction on websites Meanwhile, many websites are still built around: - "Browse pages" - "Click menus" - "Submit forms" That model is dying. The businesses training AI today will own customer attention tomorrow. Customers are not patient browsers anymore. They ask direct questions. And businesses that cannot respond instantly will lose to businesses that can. Check it out now: https://theolleh.com Thanks, — Chara Clements The Olleh If at any point you choose to opt-out of any more communications from our side, just fill the form at bit. ly/fillunsubform with your domain address (URL). Maarten Lutherweg 187, Cobleskill, CA, USA, 91398
T
Theodore 2026-05-26 13:55
Hey there, We came across your store and it looks great. LetsTok AI allows you to generate product creatives, ads, and visuals designed for performance. It also analyzes competitor campaigns and creates similar ads tailored to your products. If you’d like to give it a try, you can start here: https://letstokvideo.com Regards, Theodore Wannemaker Letstok AI Whenever you choose to opt-out of further emails from us, just fill the form at bit. ly/fillunsubform with your domain address (URL). Muhle 66, Harlem, CA, USA, 93407
J
Jeramy 2026-05-30 11:48
Hi, There are only two types of businesses now: Businesses using AI. And businesses that will look outdated beside them. The speed of this shift is easy to underestimate until customers start expecting it everywhere. People do not want to search, click, wait, and guess anymore. They expect the website to respond. A static website is becoming weaker against an interactive AI experience. That's why companies are moving from: Navigation → Conversation With Olleh AI, businesses can add AI voice + chat agents that understand their offer, answer visitors, capture intent, and support real workflows. Your competitors are not waiting for "the right time." They're implementing AI now. Check it out now: https://theolleh.com Cheers, Jeramy Barkly The Olleh AI Whenever you choose to opt-out of further communications from me, just fill the form at brnd .li/delist URL with your domain address (URL). 62 Forrest Road, Marcellus, CA, USA, 95216
B
Bernard 2026-06-02 22:29
Websites that cannot answer will feel broken Look at where this is heading. A visitor compares two businesses online. One responds instantly. Answers questions. Guides decisions. Books appointments. Captures intent. The other says: "Browse our pages." Which company gets the customer? This is where the internet is heading. Soon, people will expect websites to act like intelligent assistants, not passive brochures. Once the standard changes, a normal static website can start to feel behind almost overnight. Not because they are bad businesses. Because the way people interact online changed first. Websites are evolving into AI interfaces. This is already happening now. Check it now: https://ollehofficial.com Regards, — Bernard Greenup OllehAI Should you prefer not to get further emails from us, feel free to fill the form at brnd .li/delist webpage with your domain address (URL). Wurmbrandgasse 97, Rensselaer, CA, USA, 91947