This tool can be used to replace netstat in order to hide network sockets on a system.
You can download it from the following link: https://packetstormsecurity.com/files/download/29769/netstatx.c
Source: https://packetstormsecurity.com/files/29769/netstatx.c.html