Hacker News new | ask | show | jobs
by schipplock 1824 days ago
I use "nmap" for this.

  $ nmap example.com
  PORT     STATE  SERVICE
  80/tcp   open   http
  443/tcp  open   https
  1119/tcp closed bnetgame
  1935/tcp closed rtmp
1 comments

A more complete answer using nmap and cron:

    MAILTO="youremail@yourdomain.com"
    */30 * * * * nmap yourdomain.com | grep open > nmap.log.tmp; diff nmap.log nmap.log.tmp; mv nmap.log.tmp nmap.log