Skip Menu |
 

This queue is for tickets about the Nmap-Parser CPAN distribution.

Report information
The Basics
Id: 96867
Status: open
Priority: 0/
Queue: Nmap-Parser

People
Owner: Nobody in particular
Requestors: JCROCHON [...] cpan.org
Cc: gregoa [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Added "devicetype" to detect printers
Download (untitled) / with headers
text/plain 1.1k
LINE 422: $service_hashref->{product} = $service->{att}->{product}; Added LINE 423: $service_hashref->{devicetype} = $service->{att}->{devicetype}; LINE 424: $service_hashref->{extrainfo} = $service->{att}->{extrainfo}; Example of my usage: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Session Data # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # my $si = $np->get_session(); print "Printers Online between ".$si->start_str() ." and ".$si->time_str()."\n\n"; for my $host ( $np->all_hosts() ) { # 80 : the HTTP port for web printers # 443 : the HTTPS port for web printers # 515 : the LPR/LPD port, for most printers, as well as older print-servers # 631 : the IPP port, for most modern printers, and CUPS-based print-server @myPorts = qw(80 443 515 631); print $host->hostname."\t" .$host->ipv4_addr."\t" .$host->mac_addr; foreach $port (@myPorts) { print "\tPort $port: ".$host->tcp_service($port)->devicetype(); } print "\n"; }
Download (untitled) / with headers
text/plain 233b
We got a feature request in the Debian bug tracker with a similar request: https://bugs.debian.org/862748 Please consider adding those fields (or, as the submitter suggests, all available fields). Cheers, gregor, Debian Perl Group


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.