Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: RUN-ONCE PLUGINS? |
|---|---|
| Date: | Wed, 2 May 2007 06:49:27 +0200 |
Hi John,
On May 1, 2007, at 11:25 PM, John Scherff wrote:
Is it possible to have a plugin run just once for the entire scan and set some kind of variable for use by all plugins on all hosts?
I'm trying to write a plugin that will download the three most recent virus definition dates from Symantec (I know 21725 checks whether signatures are current, but I'm trying to write a smallish nessus-based audit tool for my system administrators that will run inside vmware-player machine and will not depend on a plugin feed).
# # If another plugin is doing an update, wait for a bit # while ( file_stat("symantec-lockfile.txt") > 0 ) { sleep(1); }
# # Check the timestamp # buf = fread("symantec-timestamp.txt");
fwrite(file:"symantec-datafile.txt", data:signature); fwrite(file:"symantec-timestamp.txt", data:string(unixtime())); unlink("symantec-lockfile.txt"); } else { signature = fread("symantec-datafile.txt"); }
-- Renaud _______________________________________________ Nessus mailing list Nessus@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: NASL DOCS, George A. Theall |
|---|---|
| Next by Date: | Re: NASL DOCS, jfvanmeter |
| Previous by Thread: | RUN-ONCE PLUGINS?, John Scherff |
| Next by Thread: | Re: RUN-ONCE PLUGINS?, John Scherff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |