mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Importing changes from my branch. There are two major updates:
1) I wrote a function that formats output from scripts in a consistent way. Although we haven't really come to a concensus on how it should look yet, it's easy to change when we do. 2) New script: smb-enum-groups.nse. Enumerate the local groups on a system and their membership.
This commit is contained in:
@@ -25,7 +25,7 @@ impact the system, besides showing a message box to the user.
|
||||
-- @output
|
||||
-- Host script results:
|
||||
-- | smb-enum-processes:
|
||||
-- |_ Idle, System, smss, csrss, winlogon, services, logon.scr, lsass, spoolsv, msdtc, VMwareService, svchost, alg, explorer, VMwareTray, VMwareUser, wmiprvse
|
||||
-- |_ |_ Idle, System, smss, csrss, winlogon, services, logon.scr, lsass, spoolsv, msdtc, VMwareService, svchost, alg, explorer, VMwareTray, VMwareUser, wmiprvse
|
||||
--
|
||||
-- --
|
||||
-- Host script results:
|
||||
@@ -281,7 +281,7 @@ action = function(host)
|
||||
|
||||
-- Produce final output.
|
||||
if nmap.verbosity() == 0 then
|
||||
response = stdnse.strjoin(", ", names)
|
||||
response = "|_ " .. stdnse.strjoin(", ", names)
|
||||
else
|
||||
response = " \n" .. psl_print(psl, nmap.verbosity())
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user