發表文章

目前顯示的是 7月, 2017的文章

bjnp-discover.nse 說明

圖片
針對canon  Pixma  網路型態的印表機及掃描機, 可以透過 BJNP通訊協定, 取得相關訊息 現在少用 , 我拿一台別家事務機測試, 當然是不通 官方:  https://nmap.org/nsedoc/scripts/bjnp-discover.html 內容: description = [[ 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. ]] --- -- @usage -- sudo nmap -sU -p 8611,8612 --script bjnp-discover <ip> -- -- @output -- 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 -- categories = {"safe", "discovery"} author = "Patrik Karlsson" local bjnp = requi

bitcoinrpc-info.nse 說明

透過  JSON-RPC, 去呼叫 bitcoin server 取得訊息 官方說明: https://nmap.org/nsedoc/scripts/bitcoinrpc-info.html JSON-RPC  說明: https://www.youtube.com/watch?v=tYOX1VML6WQ https://zh.wikipedia.org/wiki/JSON-RPC 內容: local creds = require "creds" local http = require "http" local json = require "json" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Obtains information from a Bitcoin server by calling <code>getinfo</code> on its JSON-RPC interface. ]] --- -- @usage -- nmap -p 8332 --script bitcoinrpc-info --script-args creds.global=<user>:<pass> <target> -- @args creds.global http credentials used for the query (user:pass) -- @output -- 8332/tcp open  unknown -- | bitcoinrpc-info.nse: -- |   USER: root -- |     connections: 36 -- |     has

bitcoin-info.nse 說明

圖片
例如: nmap -p 8333 --script bitcoin-info 104.16.117.23 Bitcoin說明:  https://www.youtube.com/watch?v=Um63OQz3bjo 官方:  https://nmap.org/nsedoc/scripts/bitcoin-info.html 內文: local bitcoin = require "bitcoin" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" description = [[ Extracts version and node information from a Bitcoin server ]] --- -- @usage -- nmap -p 8333 --script bitcoin-info <ip> -- -- @output -- PORT     STATE SERVICE -- 8333/tcp open  unknown -- | bitcoin-info: -- |   Timestamp: Wed Nov  9 19:47:23 2011 -- |   Network: main -- |   Version: 0.4.0 -- |   Node Id: DD5DFCBAAD0F882D -- |_  Lastblock: 152589 -- author = "Patrik Karlsson" license = "Same as Nmap--See https://nmap.org/book/man-legal.html" categories = {"discovery", "safe"} -- -- Version 0.1 -- -- Created 11/09/2011 - v0.1 - created by Patrik K