Laukidh@Laukidh@infosec.exchange
@Laukidh@infosec.exchange 님에게 답글
Instructions for creating iPhone automation펼치기

Now, build this where you want it to execute (on your iphone)

New automation

Create a dictionary for sender/content from the shortcut input

Check the number isn’t in our contacts. If it is, error out (show notification if desired then stop this shortcut).

If not, write the dictionary to a file it should go on your phone in the Shortcuts directory that was created by the setup script we ran. The file name you want to create is “SpamMessage.json” and overwrite if it exists.

Last, call the first shortcut we installed, run shortcut “Text Spam Handler” (pass the Dictionary as input)

When
Sender:  Any Sender
Message Contains: STOP
Run Immediately
Within the new automation:


receive messages as
input


New Dictionary
Sender (select the shortcut input for Message Sender) 
Content (select shortcut input for Message Content)

Get phone numbers from
Shortcut Input Sender

Get contacts from
Phone Numbers (previous action)
If Contact Name has  any value


Show notification
Sender in Contacts

Attachment
Contacts
Stop this shortcut

Otherwise

Otherwise

Show notification
Phone Numbers

Save Dictionary to Shortcuts


Run Shortcut Text Spam Handler 

End If