Using perl Syntax Highlighting
- for my $host ($np->all_hosts()){
- for my $port ($host->tcp_ports()){
- my $service = $host->tcp_service($port);
- print $host->hostname."|".$host->ipv4_addr()."|".$port."|".$host->tcp_port_state($port)."|".$service->name."|".$service->product."|".$service->version."\n";
- }
- for my $port ($host->udp_ports()){
- my $service = $host->udp_service($port);
- print $host->hostname."|".$host->ipv4_addr()."|".$port."|".$host->udp_port_state($port)."|".$service->name."|".$service->product."|"
- }
- }
Coloreado en 0.004 segundos, usando GeSHi 1.0.8.4
Como ven tengo 2 "for" dependiendo el protocolo.
Saludos.