How to Implement iMessage Group Sending

Source: Internet
Author: User

How to Implement iMessage Group Sending

Apple has two built-in FaceTime and iMessage applications on Mac OS and iOS operating systems. It perfectly replaces the operator's text message and phone number. In addition, the FaceTime and iMessage accounts are not only bound to the Apple ID, but also to the mobile phone number using this Apple id, such vulnerabilities naturally provide backdoors to mass spam information providers in China.

In this way, the iPhone's iMessage can receive the spam iMessage sent by email from time to time, especially the most frequently sent by Didi chuxing. I heard that it was operated by a Xiamen company. For the mass Implementation of iMessage, it takes several minutes to write a script. It is a pity that I have spent several times studying it and have not implemented mass mailing. Instead, I have not synchronized my Apple id's computer with my mobile phone.

I studied how to implement iMessage Group Sending started with XMPP, because ichat on Apple Mac OS is an XMPP client that can connect to the iMessage server and Gtalk and Weibo private messages. However, we later found that the iMessage server authentication is encrypted, and there is no way to connect a non-iChat XMPP client to the imeesage server, so naturally there is no way to implement program control to send messages in batches to the imeesage server.

You can only send messages to the imeesage server through Mac OS or iOS programs. To send messages to the imeesage server in batches, you can only find a way to call the built-in iChat client, on Mac OS, Apple provides a script called Apple Script to automatically implement tasks. May passtell application "Messages"You can activate the iMessage client to automatically send messages. The idea of implementing Group Sending is clear.
1. Batch register an itune account using applescript

2. Use applescript to automatically retrieve the iMessage of a group of 100 Apple IDs from an itune account

set EMAIL to "EMAIL_DEL_DESTINATARI" -- el destinatari ha de tenir l‘iMessage activatset MSG to "COS_DEL_MISSATGE"set N to the 1000 -- nombre de vegades que s‘enviarà el missatgeset APPLE_ID to "E:" -- la teva Apple ID que ha de tenir iMessage activatrepeat N times    tell application "Messages"        send MSG to buddy EMAIL of service APPLE_ID    end tellend repeat

 

It seems that there are no mistakes in the press release. It takes only a few minutes to write the script to implement iMessage group. However, users who know how to use iMessage are obviously not forced to buy an iPhone. What kind of effect does your group of iMessage bring in addition to harassment.

You can find a more detailed blog description on the Internet, as shown in the following figure:

IMessage Introduction
IMessage is a free message sending application provided by Apple devices (IPAD, iPhone, and iPod Touch. Its information is sent over the network, different from the carrier's text message. Currently, the number of daily active users of iMessage is 0.19 billion, and about 2 billion messages are sent each day.

IMessage advantages
Unlike traditional text messages, iMessage has the following advantages:

  • The target group is clear, all of which are Apple users and have a strong consumption ability.
  • Unlimited number of texts. You can also add emoticon and images.
  • You can add a URL or download link. You can directly access it through your mobile phone.
  • Not intercepted by mobile security guard
  • Forwarding is as convenient as text message
  • No sending cost
  • The probability of reaching a terminal is extremely high.

IMessage push technology implementation
Mass iMessage mainly involves two technical difficulties: obtaining an iMessage account and sending an iMessage group.

Get iMessage account
Currently, the iMessage account is used to scan mobile phone numbers. Scan mobile phone numbers can be automatically scanned by code or manually. I have not found any good method by automatically scanning the code. We suggest you start from the following two aspects:

  • 1. Write an applescript to control the iMessage client that comes with Mac OS for verification. It is similar to the mass iMessage. After an iMessage is sent, if an exception that fails to be caught, it is not an iMessage account.
  • 2. Study the private API in message framework in IOS system and verify it through the private API

To manually filter data, you can also use the iMessage client that comes with Mac OS. The method is to write a program and output the numbers to be verified to the file, separated by commas. Then paste the number in the file into the address bar of the iMessage client. The iMessage client automatically checks whether the number is an iMessage account one by one. The speed depends on the network speed. Red indicates not an iMessage account, blue indicates an iMessage account and an unverified account.

There may be a stop in the inspection process. You can select all the numbers, cut and paste them to continue the inspection.

IMessage Group
After checking all accounts, you can select the iMessage account from the list for group sending. There are two methods for Group Sending: One is through the iMessage client, and the other is to control the iMessage client sending through the applescript script.

  • The iMessage client can directly paste the number into the address bar, fill in the content, and send it.
  • The script for controlling the iMessage client through applsescript is as follows:
    Tell application "messages" set csvdata to read "/users/xxxx/desktop/test.csv" set csventries to paragraphs of csvdatarepeat with I from 1 to count csventriesset phone to (csventries's item I)'s textset myid to get ID of first serviceset thebuddy to buddy phone of service ID myidsend "today, Beijing is sunny, with a temperature of 13 to 27 degrees; Tuesday is fine, with a temperature of 11 to 26 degrees, north Wind Level 3-4; Wednesday, temperature 11 to 24 degrees, breeze <3 "to thebuddyend repeatend tell

    The above Code reads the iMessage account from a CSV file and sends iMessage messages one by one through the iMessage client.

Note the following:

  • 1. Because the script controls the iMessage client to send messages, it must be run in a system above MACOs 10.8 (iMessage beta in system 10.7 is no longer available) and the iMessage program must be enabled.
  • 2. This script is not sent in the background when sending iMessage. Therefore, when the sending volume is large, the iMessage client may run slowly or even fail to be enabled. You can clear all sent imessages or cancel accounts.
  • 3. The iMessage account sent through the script must have been verified in the current iMessage client, otherwise the message "cannot get" buddy ID "C0B35E7F-A0FB-49E1-BDD7-C867BC06D920: + 86136xxxx0000" "will be reported "".

From the blog post posted above, we can see that this buddy has made a few simple attempts and has not actually sent a large number of emails, however, at the end of the article, he also proposed a solution to the problems encountered by the real group. The three solutions are as follows:

  • The first problem is to use the Mac OS or black apple to install the 10.8 operating system, which will bring the messages program. This program system comes with it and won't find it hard to open it and delete the messages program, you can only reinstall the system after deletion. In addition, the messages program is enabled first, and then the Apple Script script is started. Otherwise, the operation is not normal.
  • The second problem is that the Code for Synchronous deletion is added during the sending process, but it sometimes fails to be synchronized when one item is deleted. Therefore, operations for batch deletion are performed after a certain amount of additional requests are added, the normal process is to open the messages Program-> the cyclic Number library-> Read a number-> send a message-> wait 1 second-> delete this message-> determine whether to delete it more than 100, batch Delete-> cyclic Number library. This ensures that the messages program does not occupy more than one hundred of the CPU or several GB of memory.
    Tell application "messages" set csvdata to read "/users/xxxx/desktop/test.csv" set csventries to paragraphs of csvdatarepeat with I from 1 to count csventriesset phone to (csventries's item I)'s textset myid to get ID of first serviceset thebuddy to buddy phone of service ID myidsend "today, Beijing is sunny, with a temperature of 13 to 27 degrees; Tuesday is fine, with a temperature of 11 to 26 degrees, beijing wind 3-4; Wednesday, the temperature from 11 to 24 degrees, breeze <3 "to thebuddydelay 1-delay one second, otherwise it will not get the developed content set failnum to (get count chat) if failnum> 100 thenrepeat with J from 1 to failnumset phone to (get name of ChAT (failnum-j) set delmsg to "iMessage ;-; "& phone if exists (Text Chat id delmsg) thendelete Text Chat id delmsgend ifend repeatend tell
  • The third problem is to set the iMessage account used for group sending in the iMessage account of the messages program. No problem.

How to Implement iMessage Group Sending

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.