From 0fa0ef41d51d8cd4fd81e0e43bec31acbfc62ce1 Mon Sep 17 00:00:00 2001 From: patrik Date: Wed, 9 Nov 2011 19:15:17 +0000 Subject: [PATCH] Added missing usage and output documentation [Patrik] --- scripts/bitcoin-getaddr.nse | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/scripts/bitcoin-getaddr.nse b/scripts/bitcoin-getaddr.nse index e4f17ceb7..10bc7283d 100644 --- a/scripts/bitcoin-getaddr.nse +++ b/scripts/bitcoin-getaddr.nse @@ -2,6 +2,21 @@ description = [[ Queries a BitCoin server for a list of known BitCoin nodes ]] +--- +-- @usage +-- nmap -p 8333 --script bitcoin-getaddr +-- +-- @output +-- PORT STATE SERVICE +-- 8333/tcp open unknown +-- | bitcoin-getaddr: +-- | ip timestamp +-- | 10.10.10.10:8333 11/09/11 17:38:00 +-- | 10.10.10.11:8333 11/09/11 17:42:39 +-- | 10.10.10.12:8333 11/09/11 19:34:07 +-- | 10.10.10.13:8333 11/09/11 17:37:45 +-- |_ 10.10.10.14:8333 11/09/11 17:37:12 + author = "Patrik Karlsson" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"discovery", "safe"} @@ -10,6 +25,12 @@ require 'shortport' require 'bitcoin' require 'tab' +-- +-- Version 0.1 +-- +-- Created 11/09/2011 - v0.1 - created by Patrik Karlsson +-- + portrule = shortport.port_or_service(8333, "bitcoin", "tcp" ) action = function(host, port)