[Plugins-writers] Write Nessus Plugins with NASL

From: Thomas Nguyen Van (thomas.nguyenvan@private)
Date: Thu Feb 01 2007 - 06:42:57 PST


> Afternoon,
> 
> I tried the command 'info_send_cmd(cmd: "cmd /C ver")' in the script.
> However I got the following error message all the time.
> Is anybody able to explain me where I'm wrong, please?
> 
> Much appreciated!
> 
> 
> [852]() NASL> [08590ac8] <- "cmd /C ver"
> [852](windows_check.nasl) NASL> Call info_send_cmd(cmd: "cmd /C ver")
> NASL:0129> local_var ...
> NASL:0154> if (info_t == INFO_LOCAL) { ... }
> [852](windows_check.nasl) NASL> [08590208] -> 0
> [852](windows_check.nasl) NASL> [085902c8] -> 1
> NASL:0159> if (info_t == INFO_SSH) { ... }
> [852](windows_check.nasl) NASL> [08590208] -> 0
> [852](windows_check.nasl) NASL> [08590320] -> 2
> NASL:0163> if (info_t == INFO_RSH) { ... }
> [852](windows_check.nasl) NASL> [08590208] -> 0
> [852](windows_check.nasl) NASL> [08590350] -> 3
> NASL:0168> if (info_t == INFO_REXEC) { ... }
> [852](windows_check.nasl) NASL> [08590208] -> 0
> [852](windows_check.nasl) NASL> [08590380] -> 4
> NASL:0190> if (info_t == INFO_TELNET) { ... }
> [852](windows_check.nasl) NASL> [08590208] -> 0
> [852](windows_check.nasl) NASL> [085903e8] -> 6
> NASL:0190> return NULL;
> [852](windows_check.nasl) NASL> Return info_send_cmd: FAKE
> [852]() NASL> [08590790] <- undef
> NASL:0079> exit(...)
> 
> 
> Thomas Nguyen Van (CEH) | OneIT Technical Security Consultant | OneIT
> Operations | BT |  
> E: thomas.nguyenvan@private |Mobile: +353 86 1720 692 | Fax: +353 1 432
> 5899| www.btireland.com <www.btireland.com>  
> 
> 
> 
> 
> 
BT Communications Ireland Limited 
is a wholly owned subsidiary of BT Group plc 
Registered in Ireland, Registration No. 141524 
Grand Canal Plaza, Upper Grand Canal Street, Dublin, Ireland 

This electronic message contains information (and may contain files) from BT
Communications Ireland Limited which may be privileged or confidential. The
information is intended to be for the sole use of the individual(s) or
entity named above. If you are not the intended recipient be aware that any
disclosure, copying, distribution or use of the contents of this information
and or files is prohibited. If you have received this electronic message in
error, please notify us by telephone or email (to the numbers or address
above) immediately. http://www.btireland.ie



_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Thu Feb 01 2007 - 06:47:53 PST