精易论坛

标题: 分享个嘻唰唰 二次开发的源码 读取手机号和获取验证码 [打印本页]

作者: 墨盒飞飞    时间: 2018-2-12 21:23
标题: 分享个嘻唰唰 二次开发的源码 读取手机号和获取验证码
  
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace L
{
public class LXishuashuaMaochiMessageQ
{
public string Phone;
public int Xuhao;
public LXishuashuaMaochiMessageQ (string phone, int xuhao)
{
Phone = phone;
Xuhao = xuhao;
}
}
public class LXishuashuaMaochi
{
///
/// 用换行符分割字符串
///
///
///
public static string[] EnterSplit (this string ss)
{
string[] split = ss.Split (new string[] {"\r\n"}, StringSplitOptions.RemoveEmptyEntries);
return split;
}
private string _path;
string _strdata = "";
List _l = new List ();
public LXishuashuaMaochi (string path)
{
_path = path;
}
private string _messageTextPath;
private string _phoneTextPath;
public string[] GetPhone ()
{
_phoneTextPath = _path + "\\当前本机号码.txt";
return File.ReadAllText (_phoneTextPath, Encoding.Default).EnterSplit ();
return new[] {""};
}
public string GetMessage (string phone)
{
string h = "";
_messageTextPath = _path + "\\总保存记录\\短信接收记录.txt";
string[] enterSplit = File.ReadAllText (_messageTextPath, Encoding.Default).EnterSplit ();
int xuhao = 0;
foreach (LXishuashuaMaochiMessageQ q in _l)
{
if (q.Phone == phone)
{
xuhao = q.Xuhao;
}
}
if (xuhao == 0)
{
_l.Add (new LXishuashuaMaochiMessageQ (phone, enterSplit.Length - 1));
return "null";
}
for (int i = xuhao; i < enterSplit.Length; i++)
{
string[] split = enterSplit[i].Split (new[] {","}, StringSplitOptions.RemoveEmptyEntries);
if (split[3] == phone)
{
for (int j = 0; j < split.Length - 4; j++)
{
h += split[j + 4];
}
for (int j = 0; j < _l.Count; j++)
{
if (_l[j].Phone == phone)
{
_l.Remove (_l[j]);
}
}
return h;
}
}
return "null";
}
}
}


作者: zeng34585    时间: 2018-2-17 07:22
okijbjkmndksksk
作者: wsmwzd    时间: 2018-2-18 19:28
牛逼啊,值得学习
作者: 64056017    时间: 2018-5-16 23:48
不行的洗刷刷的本机号不是实时同不步
作者: 墨盒飞飞    时间: 2018-5-18 10:02
本帖最后由 墨盒飞飞 于 2018-5-18 10:03 编辑
64056017 发表于 2018-5-16 23:48
不行的洗刷刷的本机号不是实时同不步

你试过了没有 ,我自己试验的是可以的,换卡之后 文本就更新了,既然源码能看的懂的话 ,自己加个 循环 检测 也不难吧.
作者: hnzrb    时间: 2018-7-20 14:48
这代码写的有点凌乱吧
作者: 大连移动    时间: 2022-5-25 16:20
有没有新酷卡的
作者: tangxiankang    时间: 2022-7-9 08:27
33333333666666666666666666666666666




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4