|
|
View currently open network connections
All of these replies are correct — this hint is a REALLY TERRIBLE IDEA, and should be redacted. Running a script as root to download & install network-scanning software from some random person's possibly sketchy Scandinavian server? Are you insane? NO NO NO. If you want a non-insane way to do this, here's one that will work on any Mac, by leveraging the stroke command line tool embedded in every copy of Network Utility: $ cd /Applications/Utilities/Network\ Utility.app/Contents/Resources $ ./stroke 2011-07-07 21:44:43.728 stroke[80012:903] stroke address startPort endPort $ ./stroke localhost 0 1000 Port Scanning host: 127.0.0.1 Open TCP Port: 22 ssh Open TCP Port: 80 http Open TCP Port: 88 kerberos Open TCP Port: 139 netbios-ssn Open TCP Port: 445 microsoft-ds Open TCP Port: 548 afpovertcp Open TCP Port: 631 ipp $ You can have that scan any address you like, and if you use it a lot, you can even symlink it to somewhere in your $PATH so that you don't have to type that all our every time: $ sudo ln -s /Applications/Utilities/Network\ Utility.app/Contents/Resources/stroke /usr/local/bin/ That way, you can run stroke address startPort endPort and it will just work. And if you want to get fancy and build up something that runs it from cron or launchd or whatever, good for you. But for Pete's sake, please don't ever follow the advice in this hint and download & run the garbage that got published here today. ---
-- DO NOT LEAVE IT IS NOT REAL
View currently open network connections
ADDENDUM: ---
-- DO NOT LEAVE IT IS NOT REAL
View currently open network connections
Wow! Lots of opinions! :-)
View currently open network connections
You can also download and use nmap from nmap.org. Nmap does more probing and is a really nice tool!
View currently open network connections
While “stroke” is a nice thing (that I didn't know about), it by no means does what open_ports.sh does. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|