Hello
I'm trying to write a plugin that scans hosts and only reports back
the workstations who are not
listening on tcp 9595 for LanDesk.
I pinched some code from telnet.nasl
please tell me if I'm on target:
# The script code starts here
#
include("misc_func.inc");
port = 9595;
if(get_port_state(port))
{
soc = open_sock_tcp(port);
if(!soc)
# security_note(port);
print "LanDesk not found";
}
I'm trying to write a plugin that scans hosts and only reports back
the workstations who are not
listening on tcp 9595 for LanDesk.
I pinched some code from telnet.nasl
please tell me if I'm on target:
# The script code starts here
#
include("misc_func.inc");
port = 9595;
if(get_port_state(port))
{
soc = open_sock_tcp(port);
if(!soc)
# security_note(port);
print "LanDesk not found";
}