首页 > 其他分享 >Applescript成功实现imessage数据筛选,imessage蓝号检测,无痕检测手机号是否注册imessage的原理

Applescript成功实现imessage数据筛选,imessage蓝号检测,无痕检测手机号是否注册imessage的原理

时间:2024-01-31 15:46:42浏览次数:24  
标签:蓝号 set end target -- 检测 imessage file tell

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

 

 

二、实现全自动无痕检测数据是否启用或开通imessages
电脑版全自动无痕检测手机号是否注册iMessage(注意:检测不同国家手机号需要在手机号的前缀 +国家代码即可,自动无痕检测导入的txt数据,蓝色的手机号数据自动保存,有偿提供源代码或检测程序,有意可联系飞机:@ap16633 )
全自动无痕检测手机或邮箱号是否注册iMessage的代码示例:

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

1.Mac OS电脑版全自动无痕检测数据是否是imessages数据(0.2-0.5秒检测一封,具体视网速和硬件性能而定,自动记录已开启im的数据和未开启的im的数据)

2.IOS苹果手机版全自动无痕检测数据是否imessages(全自动无痕检测用户导入的手机号或邮箱数据,自动记录已开启im的数据和未开启的im的数据)

 

标签:蓝号,set,end,target,--,检测,imessage,file,tell
From: https://www.cnblogs.com/ap16633/p/17999389

相关文章

  • iMessage蓝号检测,苹果iMessages短信,iMessages群发,iMessages推信,完美实现总结 - 电
    一、PC电脑版苹果系统(MacOS)上实现imessages群发总结为以下几种方式:/*MacOS苹果系统,正常情况下,只能安装到苹果公司自己出品的Mac电脑,俗称白苹果,不能安装到各种组装机或者其他品牌的品牌机上,黑苹果的的原理,就是通过一些“破解补丁”工具欺骗macOS系统,让苹果系统认为你的电......
  • 基于TIC6000的教学实验箱的嵌入式操作教程:7-3 基于CMOS数字摄像头的边缘检测实验
    一、实验目的学习边缘检测的原理,掌握OV2640摄像头和VPIF总线的工作原理,实现OV2640摄像头采集图像并进行实时图像边缘检测,并显示在LCD上。二、实验原理OV2640摄像头OV2640是世界上第一个1/4英寸2百万像素视频传感器,同时是OmniVision最新的2.2微米OmniPixel2™架构的视......
  • 使用Golang实现ping检测主机在线的功能
    使用"github.com/go-ping/ping"这个第三方库可以非常简单的实现ping功能packagemainimport("fmt""os""time""github.com/go-ping/ping")funcCheckHostOnline(ipaddrstring)bool{pinger,err:=ping.N......
  • 批量检测微信小程序是否封禁
    `<?php//要检测的appid列表$appids=array('appid1','appid2','appid3');//使用实际的appid//循环调用接口检测小程序状态foreach($appidsas$appid){//构造接口URL,将appid作为参数传递$url='https://yan.changxunwangluo.cn/xcx/check_mini_pro......
  • 人工智能在缺陷检测领域的发展与挑战
    人工智能在缺陷检测领域的发展主要得益于机器学习和深度学习等技术的不断进步。这些技术使得机器能够自动地从大量数据中学习并提取出有用的特征,进而对缺陷进行准确、高效的检测。在发展过程中,人工智能已经应用于多个领域的缺陷检测,如工业制造、医疗诊断、航空航天等。在工业制造......
  • AI智能视频监控系统自动检测、识别工服工装,准确率更高!
    工服工装的识别在很多行业场景中都具有重要的意义,如公共场所监控、工地管理、人员安全、明厨亮灶、医疗卫生等,员工穿戴特定的工服工装已然成为各个行业的安全要求与标准。随着AI+人工智能技术的快速发展,工服工装识别技术得以应用于实际项目现场中,实现自动化、高效化的管理。方......
  • 烟火AI智能检测,让火灾无处遁形!
    一、方案背景近日,某县某校不幸发生火灾,目前已造成13人遇难,为此社会各界深感悲痛。在这一悲剧发生后,公众对火灾预防的关注度急剧上升。为了保障师生的人身安全和财产安全,越来越多的学校开始引入AI智能检测技术,通过运用AI智能烟火检测技术,对学校的周界、教室、走廊、公共区域、教学......
  • 安防视频监控平台LntonAIServer视频算法分析平台算法检测明烟明火预警
    今天,我要讲述的是一个关于智慧与安全的故事,它发生在LntonAIServer视频算法分析平台上,一个能够精准检测明烟和明火预警的高科技平台。想象一下,当夜幕降临,城市的喧嚣渐渐平息,大多数人沉浸在甜美的梦乡时,LntonAIServer却在无声中坚守着它的岗位。它的眼睛不眨不闭,通过高......
  • Linux C实现在线检测
    通过ping某个服务器,检测设备是否internet是联通的。#include<stdio.h>#include<stdlib.h>#include<string.h>#include<stdbool.h>#include<unistd.h>#include<fcntl.h>#definedbg(fmt,args...)printf("\033[1m[%s]%03d:"f......
  • Linux C语言 检测IP冲突
    分析一个基于C语言实现的IP冲突检测工具。#include<stdio.h>#include<stdlib.h>#include<string.h>#include<stdbool.h>#include<getopt.h>#include<arpa/inet.h>#definedbg(fmt,args...)printf("\033[1m[%s]%03d:"fmt&quo......