If you've ever wanted to see what your Mac was currently connected to and / or have been daunted by the netstat command's output, I'll offer a lighter solution!
1. Open Terminal
2. Type the following command: lsof -i
+ Alternatively you can save this simple script and save it as a .sh file so it'll be a click away.
+ ps im not sure if it's against the rules to post scripts or attach them so let me know if there's an issue.
#!/bin/bash while true do clear echo -e "[-] Active Connections\n\n" lsof -i sleep 5 done
+ I should note that connections are bound to appear such as connections comming from a "Google" process with "https" somewhere around it!
+ A small amount of normal Mac processes will also appear, they're making UDP connections, such as the "SystemUIServer" "loginwindow" etc.
+ If a funny name shows up, look for it's number under the "PID" section and locate the process by it's PID with Activity Monitor.
+ And if you wanna get really technical, lsof -p [PID] will show you all the files opened by the PID in question.
Stay safe and happy holidays!
Edited by coolboy4972, 25 December 2017 - 04:30 AM.