Nmap bjnp-discover NSE Script
This page contains detailed information about how to use the bjnp-discover NSE script. For list of all NSE scripts, visit the Nmap NSE Library.
Select: |
---|
Script Overview
Script source code: https://github.com/nmap/nmap/tree/master/scripts/bjnp-discover.nse
Script categories: safe, discovery
Target service / protocol: udp
Target network port(s): 8611, 8612
List of CVEs: -
Script Description
The bjnp-discover.nse script retrieves printer or scanner information from a remote device supporting the BJNP protocol. The protocol is known to be supported by network based Canon devices.
Bjnp-discover NSE Script Arguments
The bjnp-discover.nse script does not have any arguments.
Bjnp-discover NSE Script Example Usage
Here's an example of how to use the bjnp-discover.nse script:
sudo nmap -sU -p 8611,8612 --script bjnp-discover <ip>
Bjnp-discover NSE Script Example Output
Here's a sample output from the bjnp-discover.nse script:
PORT STATE SERVICE
8611/udp open canon-bjnp1
| bjnp-discover:
| Manufacturer: Canon
| Model: MG5200 series
| Description: Canon MG5200 series
| Firmware version: 1.050
|_ Command: BJL,BJRaster3,BSCCe,NCCe,IVEC,IVECPLI
8612/udp open canon-bjnp2
| bjnp-discover:
| Manufacturer: Canon
| Model: MG5200 series
| Description: Canon MG5200 series
|_ Command: MultiPass 2.1,IVEC
Bjnp-discover NSE Script Example XML Output
There is no sample XML output for this module. However, by providing the -oX <file>
option, Nmap will produce a XML output and save it in the file.xml
file.
Author
- Patrik Karlsson
References
- https://nmap.org/nsedoc/scripts/bjnp-discover.html
- https://github.com/nmap/nmap/tree/master/scripts/bjnp-discover.nse
See Also
Visit Nmap NSE Library for more scripts.
The bjnp-discover.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.
Failed to connect to server
Here is a relevant code snippet related to the "Failed to connect to server" error message:
35: portrule = shortport.portnumber({8611, 8612}, "udp")
36:
37: action = function(host, port)
38: local helper = bjnp.Helper:new(host, port)
39: if ( not(helper:connect()) ) then
40: return stdnse.format_output(false, "Failed to connect to server")
41: end
42: local status, attrs
43: if ( port.number == 8611 ) then
44: status, attrs = helper:getPrinterIdentity()
45: else
Version
This page has been created based on Nmap version 7.92.
Go back to menu.