一、实现iMessage蓝号数据筛选的两种方式:
1.人工筛选,将要验证的号码输出到文件中,以逗号分隔。再将文件中的号码粘贴到iMessage客户端的地址栏,iMessage客户端会自动逐个检验该号码是否为iMessage账号,检验速度视网速而定。红色表示不是iMessage账号,蓝色表示iMessage账号。
2.编写脚本控制Mac os/iphone上自带的iMessage应用进行验证(全自动无痕迹检测,无需人工干预),将数据自动填充到号码框之后,如果捕获到失败则不是iMessage账号,捕获到成功则把数据保存下来。
3.最新升级版本请参考博文首页相关文章: https://www.cnblogs.com/
二、脚本程序或app对指定数据全自动无痕过滤
Mac OS系统下无痕检测手机号是否注册imessage的程序(注意:检测不同国家手机号需要在手机号的前缀 +国家代码即可,自动检测导入的txt数据,蓝号数据自动保存,新升级版单app id可无限循环检测,有意可联系)
1.检测数据是否开通imessge示例代码:
-- 全自动无痕检测导入的手机号或邮箱数据是否开启imesaages startApp()--执行主程序 on startApp()tell application "Finder" to activatetell application "Finder"set chosenfile to (choose file)end telltell application "Messages"tell application "Messages" to activateset phoneData to read chosenfileset cards to paragraphs of phoneDatarepeat with phone in cards--set msgText to (my AppendFace(" "))-- 假如字符串大于0,则草率判定是手机号set num to the length of phoneif (num > 0) then--执行检测my sendMsg(phone)delay 1end ifend repeatdisplay dialog "恭喜,数据已全部检测完毕!"end tell end startApp# 开始检测 on sendMsg(phone)tell application "Messages" to activatetell application "System Events"tell process "Messages"tell window 1--核心代码,省略.........if static text of sheet 1 of window "信息" of application process "Messages" of application "System Events" exists then--对未启用imessage的手机号码进行记录my WritePhone(phone, "未开启im的数据.txt")else--对已启用imessage的手机号码进行记录my WritePhone(phone, "已开启im的数据.txt")end ifdelay 0.2key code 76end tellend tellend tell end sendMsg-- 记录有效手机号 on WritePhone(the_phone, file_name)set num to the length of the_phoneif (num > 0) thenset fileName to date string of (current date)set logFilePath to my current_folder_path() & "send/" & file_nameset this_file to (POSIX file logFilePath as string)set this_story to the_phone & " "tryset fp to open for access this_fileset myText to read fpif (myText does not contain the_phone) thenmy write_to_file(this_story, this_file, true, true)end ifon errormy write_to_file(this_story, this_file, true, true)end tryend if end WritePhone-- 写入文件 on write_to_file(this_data, target_file, append_data, append_end)tryset the target_file to the target_file as textset the open_target_file to ¬open for access file target_file with write permissionif append_data is false thenset eof of the open_target_file to 0write this_data to the open_target_file starting at eofelse if append_end is false thentryset fp to open for access target_fileset myText to read fpset eof of the open_target_file to 0write this_data to the open_target_file starting at eofwrite myText to the open_target_file starting at eofon errorwrite this_data to the open_target_file starting at eofend tryelsewrite this_data to the open_target_file starting at eofend ifclose access the open_target_filereturn target_fileon errortryclose access file target_fileend tryreturn falseend try end write_to_file-- 获取当前文件的父文件夹路径 on current_folder_path()set UnixPath to POSIX path of ((path to me as text) & "::")return UnixPath end current_folder_path
2.电脑版Mac OS系统上的检测程序,全自动无痕检测手机号或邮箱是否开通imessage(全自动无痕检测用户导入的手机号或邮箱数据,默认0.1秒到0.5秒检测一封,自动保存已开启im的数据和未开启的im的数据)
3.iPhone手机上的检测程序,全自动无痕检测数据手机号是否开通imessage(全自动无痕检测用户导入的手机号或邮箱数据,默认2-5秒检测一封蓝号数据,检测结果自动保存)