diff --git a/nselib/data/http-devframework-fingerprints.lua b/nselib/data/http-devframework-fingerprints.lua index 20756263a..47238c4f9 100644 --- a/nselib/data/http-devframework-fingerprints.lua +++ b/nselib/data/http-devframework-fingerprints.lua @@ -2,7 +2,6 @@ local http = require "http" local io = require "io" local string = require "string" local table = require "table" -local url = require "url" --- -- http-devframework-fingerprints.lua diff --git a/scripts/broadcast-eigrp-discovery.nse b/scripts/broadcast-eigrp-discovery.nse index 03cd9fc1e..5d4235cf5 100644 --- a/scripts/broadcast-eigrp-discovery.nse +++ b/scripts/broadcast-eigrp-discovery.nse @@ -1,6 +1,5 @@ local eigrp = require "eigrp" local nmap = require "nmap" -local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" local bin = require "bin" diff --git a/scripts/broadcast-pppoe-discover.nse b/scripts/broadcast-pppoe-discover.nse index 35f303b3b..153eccb1d 100644 --- a/scripts/broadcast-pppoe-discover.nse +++ b/scripts/broadcast-pppoe-discover.nse @@ -1,4 +1,3 @@ -local bin = require "bin" local nmap = require "nmap" local pppoe = require "pppoe" local stdnse = require "stdnse" diff --git a/scripts/cassandra-info.nse b/scripts/cassandra-info.nse index bdcf77e7a..cfe8d7d31 100644 --- a/scripts/cassandra-info.nse +++ b/scripts/cassandra-info.nse @@ -2,8 +2,6 @@ local creds = require "creds" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" -local bin = require "bin" -local string = require "string" local table = require "table" local cassandra = stdnse.silent_require "cassandra" diff --git a/scripts/cccam-version.nse b/scripts/cccam-version.nse index 2f5ca3158..a7cdaf735 100644 --- a/scripts/cccam-version.nse +++ b/scripts/cccam-version.nse @@ -1,7 +1,5 @@ -local bin = require "bin" local nmap = require "nmap" local shortport = require "shortport" -local string = require "string" local formulas = require "formulas" description = [[ diff --git a/scripts/duplicates.nse b/scripts/duplicates.nse index bd15fa21b..1272f2a78 100644 --- a/scripts/duplicates.nse +++ b/scripts/duplicates.nse @@ -2,7 +2,6 @@ local ipOps = require "ipOps" local nmap = require "nmap" local ssh1 = require "ssh1" local stdnse = require "stdnse" -local string = require "string" local table = require "table" description = [[ diff --git a/scripts/hostmap-bfk.nse b/scripts/hostmap-bfk.nse index 914f4c6bc..19dc62e79 100644 --- a/scripts/hostmap-bfk.nse +++ b/scripts/hostmap-bfk.nse @@ -1,4 +1,3 @@ -local dns = require "dns" local http = require "http" local io = require "io" local ipOps = require "ipOps" diff --git a/scripts/hostmap-ip2hosts.nse b/scripts/hostmap-ip2hosts.nse index 464faa508..9c495f136 100644 --- a/scripts/hostmap-ip2hosts.nse +++ b/scripts/hostmap-ip2hosts.nse @@ -44,7 +44,6 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"external", "discovery"} -local dns = require "dns" local ipOps = require "ipOps" local io = require "io" local http = require "http" diff --git a/scripts/http-adobe-coldfusion-apsa1301.nse b/scripts/http-adobe-coldfusion-apsa1301.nse index 30658d82e..7278547d7 100644 --- a/scripts/http-adobe-coldfusion-apsa1301.nse +++ b/scripts/http-adobe-coldfusion-apsa1301.nse @@ -24,7 +24,6 @@ local http = require "http" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" -local url = require "url" portrule = shortport.http local DEFAULT_PATH = "/CFIDE/adminapi/" diff --git a/scripts/http-devframework.nse b/scripts/http-devframework.nse index 4f04fe010..3bbb57127 100644 --- a/scripts/http-devframework.nse +++ b/scripts/http-devframework.nse @@ -41,7 +41,6 @@ categories = {"discovery", "intrusive"} author = "George Chatzisofroniou" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" -local http = require "http" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" diff --git a/scripts/http-dlink-backdoor.nse b/scripts/http-dlink-backdoor.nse index e0859492f..9df9ba9ec 100644 --- a/scripts/http-dlink-backdoor.nse +++ b/scripts/http-dlink-backdoor.nse @@ -37,7 +37,6 @@ categories = {"exploit","vuln"} local http = require "http" local shortport = require "shortport" -local stdnse = require "stdnse" local string = require "string" local vulns = require "vulns" diff --git a/scripts/http-errors.nse b/scripts/http-errors.nse index 475dadeaf..326e9f625 100644 --- a/scripts/http-errors.nse +++ b/scripts/http-errors.nse @@ -37,7 +37,6 @@ categories = {"discovery", "intrusive"} author = "George Chatzisofroniou" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" -local http = require "http" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" diff --git a/scripts/http-exif-spider.nse b/scripts/http-exif-spider.nse index 66dad911b..efdb55198 100644 --- a/scripts/http-exif-spider.nse +++ b/scripts/http-exif-spider.nse @@ -27,7 +27,6 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"intrusive"} local shortport = require 'shortport' -local http = require 'http' local stdnse = require 'stdnse' local httpspider = require 'httpspider' local string = require 'string' diff --git a/scripts/http-form-fuzzer.nse b/scripts/http-form-fuzzer.nse index 7c5e79f38..5d1b7a0aa 100644 --- a/scripts/http-form-fuzzer.nse +++ b/scripts/http-form-fuzzer.nse @@ -56,7 +56,6 @@ local http = require 'http' local stdnse = require 'stdnse' local string = require 'string' local table = require 'table' -local tab = require 'tab' local url = require 'url' -- generate a charset that will be used for fuzzing diff --git a/scripts/http-frontpage-login.nse b/scripts/http-frontpage-login.nse index ed594882b..c89ce3362 100644 --- a/scripts/http-frontpage-login.nse +++ b/scripts/http-frontpage-login.nse @@ -2,7 +2,6 @@ local stdnse = require "stdnse" local shortport = require "shortport" local http = require "http" local string = require "string" -local url = require "url" local vulns = require "vulns" diff --git a/scripts/http-mobileversion-checker.nse b/scripts/http-mobileversion-checker.nse index 367bd0fad..213771d0d 100644 --- a/scripts/http-mobileversion-checker.nse +++ b/scripts/http-mobileversion-checker.nse @@ -30,7 +30,6 @@ local shortport = require "shortport" local httpspider = require "httpspider" local stdnse = require "stdnse" local table = require "table" -local string = require "string" getLastLoc = function(host, port, useragent) diff --git a/scripts/http-referer-checker.nse b/scripts/http-referer-checker.nse index f42dc6edb..8a3d1d0f7 100644 --- a/scripts/http-referer-checker.nse +++ b/scripts/http-referer-checker.nse @@ -24,7 +24,6 @@ categories = {"discovery", "safe"} author = "George Chatzisofroniou" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" -local http = require "http" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" diff --git a/scripts/http-sitemap-generator.nse b/scripts/http-sitemap-generator.nse index 9e9f5384c..2249f89c7 100644 --- a/scripts/http-sitemap-generator.nse +++ b/scripts/http-sitemap-generator.nse @@ -48,7 +48,6 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"discovery", "intrusive"} local shortport = require 'shortport' -local http = require 'http' local stdnse = require 'stdnse' local url = require 'url' local httpspider = require 'httpspider' diff --git a/scripts/http-title.nse b/scripts/http-title.nse index 34d5f537e..eff9f3083 100644 --- a/scripts/http-title.nse +++ b/scripts/http-title.nse @@ -1,11 +1,8 @@ -local dns = require "dns" local http = require "http" -local ipOps = require "ipOps" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" -local url = require "url" description = [[ Shows the title of the default page of a web server. diff --git a/scripts/http-useragent-tester.nse b/scripts/http-useragent-tester.nse index 9b4cd0454..45ebb6d84 100644 --- a/scripts/http-useragent-tester.nse +++ b/scripts/http-useragent-tester.nse @@ -52,7 +52,6 @@ local httpspider = require "httpspider" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" -local string = require "string" getLastLoc = function(host, port, useragent) diff --git a/scripts/http-xssed.nse b/scripts/http-xssed.nse index 0c7bc919f..780a92380 100644 --- a/scripts/http-xssed.nse +++ b/scripts/http-xssed.nse @@ -30,7 +30,6 @@ categories = {"safe", "external", "discovery"} local http = require "http" local nmap = require "nmap" local shortport = require "shortport" -local stdnse = require "stdnse" local table = require "table" local string = require "string" diff --git a/scripts/ip-forwarding.nse b/scripts/ip-forwarding.nse index 0c2349070..61cdb8dc5 100644 --- a/scripts/ip-forwarding.nse +++ b/scripts/ip-forwarding.nse @@ -2,7 +2,6 @@ local dns = require "dns" local nmap = require "nmap" local packet = require "packet" local stdnse = require "stdnse" -local string = require "string" local ipOps = require "ipOps" description = [[ diff --git a/scripts/ms-sql-dac.nse b/scripts/ms-sql-dac.nse index 87ba6d150..323021e66 100644 --- a/scripts/ms-sql-dac.nse +++ b/scripts/ms-sql-dac.nse @@ -2,7 +2,6 @@ local coroutine = require "coroutine" local mssql = require "mssql" local nmap = require "nmap" local stdnse = require "stdnse" -local string = require "string" local table = require "table" description = [[ diff --git a/scripts/msrpc-enum.nse b/scripts/msrpc-enum.nse index adb1a52ba..804e2a2a8 100644 --- a/scripts/msrpc-enum.nse +++ b/scripts/msrpc-enum.nse @@ -1,6 +1,5 @@ local msrpc = require "msrpc" local smb = require "smb" -local string = require "string" local stdnse = require "stdnse" local table = require "table" diff --git a/scripts/rmi-vuln-classloader.nse b/scripts/rmi-vuln-classloader.nse index 2a578eca6..f2f3dab45 100644 --- a/scripts/rmi-vuln-classloader.nse +++ b/scripts/rmi-vuln-classloader.nse @@ -1,7 +1,6 @@ local bin = require "bin" local rmi = require "rmi" local shortport = require "shortport" -local stdnse = require "stdnse" local string = require "string" local vulns = require "vulns" diff --git a/scripts/rpc-grind.nse b/scripts/rpc-grind.nse index ea6df1feb..d173ba07f 100644 --- a/scripts/rpc-grind.nse +++ b/scripts/rpc-grind.nse @@ -1,7 +1,6 @@ local stdnse = require "stdnse" local nmap = require "nmap" local rpc = require "rpc" -local datafiles = require "datafiles" local bin = require "bin" local math = require "math" local io = require "io" diff --git a/scripts/sip-enum-users.nse b/scripts/sip-enum-users.nse index 356d5fdf5..965e64f5f 100644 --- a/scripts/sip-enum-users.nse +++ b/scripts/sip-enum-users.nse @@ -7,7 +7,6 @@ local stdnse = require "stdnse" local table = require "table" local math = require "math" local brute = require "brute" -local creds = require "creds" local unpwdb = require "unpwdb" description = [[ diff --git a/scripts/smb-vuln-ms10-054.nse b/scripts/smb-vuln-ms10-054.nse index cc66e32d3..563a2de2c 100644 --- a/scripts/smb-vuln-ms10-054.nse +++ b/scripts/smb-vuln-ms10-054.nse @@ -1,7 +1,5 @@ local bin = require "bin" -local msrpc = require "msrpc" local smb = require "smb" -local string = require "string" local vulns = require "vulns" local stdnse = require "stdnse" diff --git a/scripts/socks-auth-info.nse b/scripts/socks-auth-info.nse index f3141473b..99829be98 100644 --- a/scripts/socks-auth-info.nse +++ b/scripts/socks-auth-info.nse @@ -1,6 +1,5 @@ local shortport = require "shortport" local socks = require "socks" -local stdnse = require "stdnse" local table = require "table" description = [[ diff --git a/scripts/sstp-discover.nse b/scripts/sstp-discover.nse index cf3e243de..9a1cedb11 100644 --- a/scripts/sstp-discover.nse +++ b/scripts/sstp-discover.nse @@ -1,4 +1,3 @@ -local nmap = require 'nmap' local comm = require 'comm' local string = require 'string' local stdnse = require 'stdnse' diff --git a/scripts/targets-ipv6-multicast-echo.nse b/scripts/targets-ipv6-multicast-echo.nse index 064d69bf4..caa65fece 100644 --- a/scripts/targets-ipv6-multicast-echo.nse +++ b/scripts/targets-ipv6-multicast-echo.nse @@ -2,7 +2,6 @@ local coroutine = require "coroutine" local nmap = require "nmap" local packet = require "packet" local stdnse = require "stdnse" -local string = require "string" local tab = require "tab" local table = require "table" local target = require "target" diff --git a/scripts/teamspeak2-version.nse b/scripts/teamspeak2-version.nse index 982c87ff2..1f8415363 100644 --- a/scripts/teamspeak2-version.nse +++ b/scripts/teamspeak2-version.nse @@ -2,7 +2,6 @@ local comm = require "comm" local shortport = require "shortport" local nmap = require "nmap" local bin = require "bin" -local stdnse = require "stdnse" local string = require "string" description = [[ diff --git a/scripts/tls-nextprotoneg.nse b/scripts/tls-nextprotoneg.nse index eef78b452..a9dea5145 100644 --- a/scripts/tls-nextprotoneg.nse +++ b/scripts/tls-nextprotoneg.nse @@ -1,5 +1,4 @@ local nmap = require "nmap" -local string = require "string" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" diff --git a/scripts/whois-domain.nse b/scripts/whois-domain.nse index a59fbc983..c57b1e06e 100644 --- a/scripts/whois-domain.nse +++ b/scripts/whois-domain.nse @@ -79,7 +79,6 @@ author = "George Chatzisofroniou" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"discovery", "external", "safe"} -local http = require "http" local io = require "io" local ipOps = require "ipOps" local math = require "math"