This commit is contained in:
Adrien MALINGREY 2024-10-20 02:18:46 +02:00
parent 321935e7a8
commit af6dc0a76b

View File

@ -1,8 +1,3 @@
local stdnse = require "stdnse"
local smb = require "smb"
local smb2 = require "smb2"
local msrpc = require "msrpc"
local bin = require "bin"
local shortport = require "shortport" local shortport = require "shortport"
description = [[ description = [[
@ -24,11 +19,20 @@ Return free and total size in octets of each SMB shares
--- ---
categories = {"discovery", "intrusive"} categories = {"discovery", "intrusive"}
author = "Adrien Malingrey" author = "Adrien Malingrey"
license = "Same as Nmap--See https://nmap.org/book/man-legal.html" license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
hostrule = function(host)
return smb.get_port(host) ~= nil
end
portrule = shortport.service({"microsoft-ds", "netbios-ssn", "smb"}) portrule = shortport.service({"microsoft-ds", "netbios-ssn", "smb"})
local stdnse = require "stdnse"
local smb = require "smb"
local smb2 = require "smb2"
local msrpc = require "msrpc"
local bin = require "bin"
action = function(host) action = function(host)
local status, shares, extra local status, shares, extra