mirror of
https://github.com/nmap/nmap.git
synced 2026-11-21 15:11:25 +00:00
47 lines
1.2 KiB
Lua
47 lines
1.2 KiB
Lua
---This configuration file pulls info about a given harddrive
|
|
|
|
-- Any variable in the 'config' table in smb-psexec.nse can be overriden in the
|
|
-- 'overrides' table. Most of them are not really recommended, such as the host,
|
|
-- key, etc.
|
|
overrides = {}
|
|
--overrides.timeout = 40
|
|
|
|
modules = {
|
|
{
|
|
upload = false,
|
|
name = "Drive type",
|
|
program = "fsutil",
|
|
args = "fsinfo drivetype $drive",
|
|
req_args = {"drive"},
|
|
maxtime = 1,
|
|
},
|
|
|
|
{
|
|
upload = false,
|
|
name = "Drive info",
|
|
program = "fsutil",
|
|
args = "fsinfo ntfsinfo $drive",
|
|
req_args = {"drive"},
|
|
replace = {{" :",":"}},
|
|
maxtime = 1,
|
|
},
|
|
|
|
{
|
|
upload = false,
|
|
name = "Drive type",
|
|
program = "fsutil",
|
|
args = "fsinfo statistics $drive",
|
|
req_args = {"drive"},
|
|
replace = {{" :",":"}},
|
|
maxtime = 1,
|
|
},
|
|
|
|
{
|
|
upload = false,
|
|
name = "Drive quota",
|
|
program = "fsutil",
|
|
args = "quota query $drive",
|
|
req_args = {"drive"},
|
|
maxtime = 1,
|
|
},
|
|
}
|