From d0536a3bad8802379ba7faf14f29540ab3af60ae Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 9 Mar 2018 06:26:48 +0000 Subject: [PATCH] Fix bitcoin-info displaying incorrect last block; add user agent output --- nselib/bitcoin.lua | 6 ++++-- scripts/bitcoin-info.nse | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nselib/bitcoin.lua b/nselib/bitcoin.lua index b656926bd..e22589fa4 100644 --- a/nselib/bitcoin.lua +++ b/nselib/bitcoin.lua @@ -299,12 +299,14 @@ Response = { -- Parses the raw data and builds the Version instance parse = function(self) - local ra, sa, cmd, nodeid + local ra, sa, cmd, nodeid, pos -- After 2012-02-20, version messages contain checksums self.magic, cmd, self.len, self.checksum, self.ver_raw, self.service, self.timestamp, ra, sa, nodeid, - self.subver, self.lastblock = string.unpack("