I have written a shell script to scan the ports of system using nmap.
I am searching for some port number like 515 which is used by the Line Printer Daemon—print service and if it is there means I can say it is a printer as printer only have this daemon.
I don't know whether this port can be used by any other process.If yes kindly tell me about this whether it is possible to use the well known port or not by our own process.
If yes then I can't say it is a printer as port user is not a printer all the time.
Thnaks