GetPEFileVersion (tmp filename, orig filename)Writing SMBclient-based WLSC NASL Scriptssmbgetfile(share, filename, tmp filename)smbgetdir(share, dir, typ)

smbgetdir(share, dir, typ)

Use this function to get directory entries from the SMB source.

typ = 0:
All entries
typ = 1:
Only file entries
typ = 2:
Only directory entries

With this it is possible to check for one or more files or directories. Returns NULL or array of Strings containing found entries. Example:

  r = smbgetdir(share: "C$", dir: "C:\Windows\systems32\*.dll", typ: 1);

GetPEFileVersion (tmp filename, orig filename)Writing SMBclient-based WLSC NASL Scriptssmbgetfile(share, filename, tmp filename)smbgetdir(share, dir, typ)