This commit is contained in:
Adrien MALINGREY 2023-05-10 17:42:17 +02:00
parent 0ffd304d2d
commit d6207258ac
4 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
<xsl:template match="lanScan"> <xsl:template match="lanScan">
<xsl:text>nmap -v -T4 -p </xsl:text> <xsl:text>nmap -v -T4 -p </xsl:text>
<xsl:apply-templates select="//service[not(.=preceding::*)]" /> <xsl:apply-templates select="//service[not(.=preceding::*)]" />
<xsl:text> --script nse/ --datadir nse/ --script-args-file nse_args.ini -oX "</xsl:text> <xsl:text> --script nse/ --datadir nse/ --script-args-file script_args.ini -oX "</xsl:text>
<xsl:value-of select="@scanpath"/> <xsl:value-of select="@scanpath"/>
<xsl:text>.tmp" </xsl:text> <xsl:text>.tmp" </xsl:text>
<xsl:apply-templates select="//host"/> <xsl:apply-templates select="//host"/>

View File

@ -1,2 +0,0 @@
smbuser=<user name>
smbpassword=<user password>

2
nse/script_args.ini Normal file
View File

@ -0,0 +1,2 @@
smbuser =
smbpassword =

View File

@ -10,11 +10,11 @@ Return free and total size in octets of each SMB shares
--- ---
-- @args See the documentation for the smbauth library. -- @args See the documentation for the smbauth library.
-- --
-- @usage nmap -p445 --script smb-shares-du.nse <host> -- @usage nmap -p445 --script smb-shares-size.nse <host>
-- --
-- @output -- @output
-- Host script results: -- Host script results:
-- | smb-shares-du: -- | smb-shares-size:
-- | data: -- | data:
-- | FreeSize: 38495883264 -- | FreeSize: 38495883264
-- | TotalSize: 500961574912 -- | TotalSize: 500961574912