On Thu, May 02, 2002 at 10:18:18AM -0500, Mays Jeff wrote:
> All,
> 
> I tried using NASL directly to evaluate a host for a single vulnerability,
> but only get the following output:
> 
> [root@computername plugins]#  nasl -t xxx.xxx.xxx.xxx smb_nt_ms02-008.nasl
> smb_nt_ms02-008.nasl : Warning : evaluating unknown variable - description

The problem with smb_* scripts is that they completely rely on each
other - this particular plugin needs netbios_name_get.nasl to find the
name of the remote computer, needs the results of smb_login.nasl to know
which credentials should be used, and needs the results of
smb_registry_access.nasl to know if we can dig into the remote registry.

So it's not easy to use them from command line. What you should do if
you absolutely want to do that is to replace all the calls to
get_kb_item() in smb_nt.inc and smb_nt_ms02-008.nasl to prompt() and
answer to the questions it will ask you (SMB/login, SMB/password,...)


                                -- Renaud

Reply via email to