迫于换卡换号懒得解绑,用 Python +路由器 实现了个短信宝

2018-09-30 12:49:48 +08:00
 Archeb
原来以为 bilibili 33 卡每个月 2G 流量够我用了,实际上每个月都用超,虽然有日租兜底但是还是感觉很不值
换了个移动魔魔哒卡,充值免月租,返的花费还能开会员,无限流量美滋滋

换了个 5 元米粉卡保号,然后再去买了个开发板


自带 TTL2USB,怼 openwrt 路由器上,python 走起 就 24 行代码
https://gist.github.com/Archeb/3e330a606b8a8bf64e11838cb6c5dadd

我用的是 https://github.com/Fndroid/tg_push_bot 的服务,担心隐私的也可以自己搭建一个~

没错误处理,没回复功能,暂时就能用就行~

而且信号不好也能收短信,在地铁和家里一楼这种只有 WIFI 无服务的情况下很方便好用
10332 次点击
所在节点    分享创造
50 条回复
mattx
2018-11-18 11:50:31 +08:00
@Archeb #40 电话 有没有办法支持啊?
Archeb
2018-11-18 16:06:00 +08:00
@mattx 直接来电转移吧
mattx
2018-11-18 16:31:26 +08:00
@Archeb #42 插了这个开发板支持来电转移么?
Archeb
2018-11-18 22:21:30 +08:00
@mattx 来电转移就算你不插卡一样生效的啊...
mattx
2018-11-18 22:59:26 +08:00
@Archeb #44 哦 不是呼叫转移对吧?
Archeb
2018-11-18 23:06:10 +08:00
@mattx 就是呼叫转移...
mattx
2018-11-18 23:55:00 +08:00
@Archeb #46 这个开发板支持呼叫转移么? 呼叫转移需要手机设置的吧? 卡已经插到开发板的, 怎么设置.
Archeb
2018-11-19 12:39:11 +08:00
@mattx 先设置再插呗...
sstizim
2018-12-17 17:35:03 +08:00
大佬 在吗 我使用咱们的代码跑了之后 解码短信内容 失败 帮忙看看 谢谢

Traceback (most recent call last):
File "SMSF.py", line 25, in <module>
msg=unicode(msg.decode("hex"), "utf-16-be").encode("utf8")
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_16_be.py", line 16, in decode
return codecs.utf_16_be_decode(input, errors, True)
UnicodeDecodeError: 'utf16' codec can't decode byte 0x61 in position 40: truncated data
rogou
2019-11-20 16:50:09 +08:00
@Archeb 这种转发短信还能用吗,什么样的开发板,有链接吗,谢谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/494131

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX