一、通过python一直给文件助手发消息
注意:登陆成功后及时停止运行,否则微信后台检测会封号
import itchat #第三方模块 需要网络下载
import time
# 1.给手机助手发送消息
itchat.auto_login()
# while True:
# # 给微信的手机助手发信息
# # itchat.send('hello',toUserName='filehelper')
# itchat.send_file('/etc/passwd',toUserName='filehelper')
# time.sleep(1)
运行后自动生成二维码,用手机微信扫描登陆,可以看到一直给文件助手发送/etc/passwd文件: