Re: [Plugins-writers] Reporting File Versions

From: Josh Zlatin-Amishav (josh@private)
Date: Sun Feb 05 2006 - 07:06:38 PST


On Fri, 3 Feb 2006, Paul Bellefeuille wrote:

> All,
>
> I am a novice as they come with writing NASLs, though I know programming in 
> general. I'm attempting to write a NASL script that would retrieve a file 
> version and return that version for reporting (i.e. security_note).  Could 
> someone point me in the right direction?
> To be more precise, I'm trying to do something like this.
>
> local_var file, version, path;
> file = "ping.exe";
> path = "\system32";
> version = call_some_function (file:file, path:path);
> security_note(data: string ("The file (",file,") has a version of ", 
> version));

There is a Tenable licensed function (i.e. not in the GPL feed) called
GetFileVersion that is in smb_func.inc that might help you. Take a look at
realplayer_detect.nasl for example on usage.

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



This archive was generated by hypermail 2.1.3 : Sun Feb 05 2006 - 07:07:24 PST