Simple C program written to display open ports on a given host. Useful for when things like netstat and sockstat might be backdoored.
You can download it from the following link: https://packetstormsecurity.com/files/download/48078/sockstat.tar.gz
Source: https://packetstormsecurity.com/files/48078/sockstat.tar.gz.html

