diff --git a/nselib/coap.lua b/nselib/coap.lua index a9fae79e5..474cb3c0c 100644 --- a/nselib/coap.lua +++ b/nselib/coap.lua @@ -3,7 +3,6 @@ local bit = require "bit" local comm = require "comm" local json = require "json" local lpeg = require "lpeg" -local match = require "match" local math = require "math" local nmap = require "nmap" local stdnse = require "stdnse" diff --git a/nselib/data/packetdecoders.lua b/nselib/data/packetdecoders.lua index 3062e421d..1a275543a 100644 --- a/nselib/data/packetdecoders.lua +++ b/nselib/data/packetdecoders.lua @@ -519,8 +519,8 @@ udp = { local p = packet.Packet:new( layer3, #layer3 ) local data = layer3:sub(p.udp_offset + 9) - local dhcpv6 = require("dhcp6") - local resp = dhcpv6.DHCP6.Response.parse(data) + local dhcp6 = require("dhcp6") + local resp = dhcp6.DHCP6.Response.parse(data) for _, v in ipairs(resp.opts or {}) do if v.resp and v.resp.fqdn then diff --git a/nselib/isns.lua b/nselib/isns.lua index ba4c55826..7f4948a7c 100644 --- a/nselib/isns.lua +++ b/nselib/isns.lua @@ -5,7 +5,7 @@ -- local bin = require('bin') -local ipops = require('ipOps') +local ipOps = require('ipOps') local match = require('match') local nmap = require('nmap') local stdnse = require('stdnse') @@ -481,10 +481,10 @@ Helper = { local pos, is_ipv4 = bin.unpack("A12", addr) if ( is_ipv4 == "\0\0\0\0\0\0\0\0\0\0\xFF\xFF" ) then local pos, bin_ip = bin.unpack("B4", addr, 13) - addr = ipops.bin_to_ip(bin_ip) + addr = ipOps.bin_to_ip(bin_ip) else local pos, bin_ip = bin.unpack("B16", addr) - addr = ipops.bin_to_ip(bin_ip) + addr = ipOps.bin_to_ip(bin_ip) end elseif ( attr.tag == Attribute.Tag.ISNS_TAG_PORTAL_TCP_UDP_PORT ) then local pos, s1 diff --git a/scripts/broadcast-hid-discoveryd.nse b/scripts/broadcast-hid-discoveryd.nse index 87c5d7670..8bab09550 100644 --- a/scripts/broadcast-hid-discoveryd.nse +++ b/scripts/broadcast-hid-discoveryd.nse @@ -1,5 +1,4 @@ local nmap = require "nmap" -local packet = require "packet" local stdnse = require "stdnse" local string = require "string" local target = require "target" diff --git a/scripts/broadcast-jenkins-discover.nse b/scripts/broadcast-jenkins-discover.nse index 6789a3a7b..2cc95e7dd 100644 --- a/scripts/broadcast-jenkins-discover.nse +++ b/scripts/broadcast-jenkins-discover.nse @@ -1,5 +1,4 @@ local nmap = require "nmap" -local packet = require "packet" local stdnse = require "stdnse" local string = require "string" local os = require "os" diff --git a/scripts/hostmap-crtsh.nse b/scripts/hostmap-crtsh.nse index 5684652dc..36978970e 100644 --- a/scripts/hostmap-crtsh.nse +++ b/scripts/hostmap-crtsh.nse @@ -44,14 +44,12 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html" categories = {"external", "discovery"} -local ipOps = require "ipOps" local io = require "io" local http = require "http" local stdnse = require "stdnse" local string = require "string" local target = require "target" local table = require "table" -local shortport = require "shortport" -- Different from stdnse.get_hostname -- this function returns nil if the host is only known by IP address diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse index c5a918028..690f04891 100644 --- a/scripts/ssl-enum-ciphers.nse +++ b/scripts/ssl-enum-ciphers.nse @@ -1,4 +1,3 @@ -local comm = require "comm" local coroutine = require "coroutine" local math = require "math" local nmap = require "nmap"