首页 > 其他分享 >Applescript实现无痕检测是否注册iMessage服务,iMessages数据筛选,iMessage蓝号检测完美实现

Applescript实现无痕检测是否注册iMessage服务,iMessages数据筛选,iMessage蓝号检测完美实现

时间:2024-03-30 11:22:06浏览次数:37  
标签:蓝号 set end target 检测 iMessage file tell

一、实现iMessage蓝号数据筛选的两种方式:
1.人工筛选,将要验证的号码输出到文件中,以逗号分隔。再将文件中的号码粘贴到iMessage客户端的地址栏,iMessage客户端会自动逐个检验该号码是否为iMessage账号,检验速度视网速而定。红色表示不是iMessage账号,蓝色表示iMessage账号。
2.编写脚本控制Mac os/iphone上自带的iMessage应用进行验证(全自动无痕迹检测,无需人工干预),将数据自动填充到号码框之后,如果捕获到失败则不是iMessage账号,捕获到成功则把数据保存下来。
3.最新升级版本请参考博文首页相关文章: https://www.cnblogs.com/imblog/

 

二、脚本程序或app对指定数据全自动无痕过滤
Mac OS系统下无痕检测手机号是否注册imessage的程序(注意:检测不同国家手机号需要在手机号的前缀 +国家代码即可,自动检测导入的txt数据,蓝号数据自动保存,新升级版经测试单app id可检测1000+条)
检测数据是否开通imessge示例代码:

  1 -- 全自动无痕检测导入的数据是否注册imesaages
  2 startApp()
  3 
  4 
  5 --执行主程序
  6 on startApp()
  7     tell application "Finder" to activate
  8     
  9     tell application "Finder"
 10         set chosenfile to (choose file)
 11     end tell
 12     
 13     tell application "Messages"
 14         tell application "Messages" to activate
 15         
 16         set phoneData to read chosenfile
 17         set cards to paragraphs of phoneData
 18         
 19         repeat with phone in cards
 20             --set msgText to (my AppendFace(" "))
 21             
 22             -- 假如字符串大于0,则草率判定是手机号
 23             set num to the length of phone
 24             if (num > 0) then
 25                 --执行检测
 26                 my sendMsg(phone)
 27                 delay 1    
 28             end if
 29         end repeat
 30         display dialog "恭喜,数据已全部检测完毕!"
 31     end tell
 32 end startApp
 33 
 34 
 35 # 开始检测
 36 on sendMsg(phone)
 37     tell application "Messages" to activate
 38     tell application "System Events"
 39         tell process "Messages"
 40             tell window 1
 41                 --核心代码,省略.........
 42                 
 43                 if static text of sheet 1 of window "信息" of application process "Messages" of application "System Events" exists then
 44                     --对未启用imessage的手机号码进行记录
 45                     my WritePhone(phone, "未开启im的数据.txt")
 46                 else
 47                     --对已启用imessage的手机号码进行记录
 48                     my WritePhone(phone, "已开启im的数据.txt")
 49                 end if
 50                 
 51                 
 52                 delay 0.2
 53                 key code 76
 54 
 55                 
 56             end tell
 57         end tell
 58     end tell
 59 end sendMsg
 60 
 61 
 62 -- 记录有效手机号
 63 on WritePhone(the_phone, file_name)
 64     set num to the length of the_phone
 65     if (num > 0) then
 66         set fileName to date string of (current date)
 67         set logFilePath to my current_folder_path() & "send/" & file_name
 68         set this_file to (POSIX file logFilePath as string)
 69         set this_story to the_phone & "
 70 "
 71         try
 72             set fp to open for access this_file
 73             set myText to read fp
 74             
 75             if (myText does not contain the_phone) then
 76                 my write_to_file(this_story, this_file, true, true)
 77             end if
 78         on error
 79             my write_to_file(this_story, this_file, true, true)
 80         end try
 81     end if
 82 end WritePhone
 83 
 84 
 85 -- 写入文件
 86 on write_to_file(this_data, target_file, append_data, append_end)
 87     try
 88         set the target_file to the target_file as text
 89         set the open_target_file to ¬
 90             open for access file target_file with write permission
 91         
 92         if append_data is false then
 93             set eof of the open_target_file to 0
 94             write this_data to the open_target_file starting at eof
 95         else if append_end is false then
 96             try
 97                 set fp to open for access target_file
 98                 set myText to read fp
 99                 set eof of the open_target_file to 0
100                 write this_data to the open_target_file starting at eof
101                 write myText to the open_target_file starting at eof
102             on error
103                 write this_data to the open_target_file starting at eof
104             end try
105         else
106             write this_data to the open_target_file starting at eof
107         end if
108         
109         close access the open_target_file
110         return target_file
111     on error
112         try
113             close access file target_file
114         end try
115         return false
116     end try
117 end write_to_file
118 
119 
120 -- 获取当前文件的父文件夹路径
121 on current_folder_path()
122     set UnixPath to POSIX path of ((path to me as text) & "::")
123     return UnixPath
124 end current_folder_path

 1.电脑版Mac OS系统上的检测程序,全自动无痕检测手机号或邮箱是否开通imessage(全自动无痕检测用户导入的手机号或邮箱数据,默认0.1秒到0.5秒检测一封,自动保存已开启im的数据和未开启的im的数据)

 2.iPhone手机上的检测程序,全自动无痕检测数据手机号是否开通imessage(全自动无痕检测用户导入的手机号或邮箱数据,默认2-5秒检测一封蓝号数据,检测结果自动保存)

 

标签:蓝号,set,end,target,检测,iMessage,file,tell
From: https://www.cnblogs.com/imblog/p/18105256

相关文章

  • m基于yolov2网络的火焰烟雾检测系统matlab仿真,包含GUI界面
    1.算法仿真效果matlab2022a仿真结果如下:  2.算法涉及理论知识概要        YOLOv2是一个实时目标检测系统,由JosephRedmon和AliFarhadi在2016年提出。它通过单个神经网络对输入图像进行一次前向传播就能预测出图像中的多个目标及其位置。在火焰烟雾......
  • 从零搭建iMessage群发软件!
    手动群发短信的过程既繁琐又低效,因此,开发一款能够自动化群发iMessage的软件变得尤为重要,本文将带领读者从零开始,一步步搭建一个iMessage群发软件,并分享七段关键的源代码。一、准备工作在开始编写软件之前,我们需要做一些准备工作:1、环境搭建:安装Xcode开发工具,并配置好iOS开发环......
  • iMessage群发,从设计到代码!
    随着移动互联网的飞速发展,即时通讯工具已经成为人们日常生活中不可或缺的一部分,而iMessage,作为苹果公司推出的一款内置于iOS系统中的即时通讯应用,以其高效、便捷的特性赢得了广大用户的喜爱。今天,我们就来探讨一下如何从设计到代码实现一个iMessage的群发功能。一、设计阶段......
  • darknet框架训练YOLOv7模型与工业缺陷检测
    1.darkne介绍Darknet是一个开源的深度学习框架,由JosephRedmon(YOLO~YOLOv3作者或参与者)开发,主要用于实现神经网络模型。这个框架最初是为了实现计算机视觉任务而创建的,尤其是目标检测。其中最著名的应用之一就是YOLO(YouOnlyLookOnce)系列目标检测算法。以下是......
  • YOLOF:单层特征检测也可以比FPN更出色 | CVPR 2021
     论文通过分析发现FPN的成功在于divide-and-conquer策略解决了目标检测的优化问题,借此研究设计了仅用单层特征预测的高效检测网络YOLOF。YOLOF在结构上没有很多花哨的结构,却在准确率、推理速度和收敛速度上都有不错的提升,相对于眼花缭乱的FPN魔改结构,十分值得学习来源:晓飞的算......
  • 5021-单片机温湿度检测(仿真+程序)
    功能描述1、51+Proteus8.10;2、学习SHT11温湿度传感器驱动程序、1602显示驱动程序;仿真设计程序设计#include<reg52.h>#include<intrins.h>#defineucharunsignedchar //宏定义方便以后用#defineuintunsignedint#defineulongunsignedlong//SHT11接口......
  • 基于TSINGSEE青犀AI视频智能分析技术的山区林区烟火检测方案
    随着清明节的临近,山区、林区防火迫在眉睫,TSINGSEE青犀AI智能分析网关V4烟火检测算法利用物联网、人工智能、图像识别技术,有效监测和管理烟火活动,并在火灾发生的同时发出告警,通知护林员与管理人员。将山区林区的视频监控接入到AI智能分析网关V4并配置烟火检测算法,通过实时监控、......
  • iMessage群发功能的代码分享!
    在日常工作和生活中,我们经常需要给多个联系人发送相同的信息。如果每条信息都手动发送,不仅效率低下,而且容易出错。幸运的是,苹果公司的iMessage应用提供了群发功能,让我们可以轻松地将信息发送给多个联系人,本文将为您详细介绍如何利用iMessage的群发功能,并通过分享7段源代码,帮助......
  • 变频器故障的基本检测方法
    一、变频器测试1、测试整流电路使用万用表调至电阻X10档位,红表笔接到变频器内部直流电源P端,黑表笔接到变频器R\S\T端依次测试,数值为几十欧姆的阻值,三项基本平衡。反向将黑表笔接到到变频器内部直流电源P端,红表笔接到变频器R\S\T端依次测试,阻值相对无穷大。将表笔接至变频器......
  • OpenCV图像滤波、边缘检测
    OpenCV图像滤波一、引言在数字图像处理中,滤波是一种重要的技术,用于消除图像中的噪声、改善图像质量或提取特定信息。OpenCV(开源计算机视觉库)提供了丰富的滤波函数,可以方便地对图像进行各种滤波操作。本文将介绍OpenCV中常见的图像滤波方法及其应用。二、图像滤波的基本概念......