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: force slackware plugins |
|---|---|
| Date: | Thu, 9 Aug 2007 08:30:59 -0700 |
you should be able to modify that nasl script and stick it into the 60k range on the ID. since it just sets kb_items, making yoru mods and setting the kb items you want should work just fine. On 8/9/07, Serkan Özkan <serkanozkan@gmail.com> wrote:
I will try it and let you know . Thanks. Regards On 8/9/07, Pavithra H <pavithra.chihan@gmail.com> wrote:Code snippet from ssh_get_info.nasl which handles Slackware. ###################### Slackware ######################################## buf = info_send_cmd(cmd: 'cat /etc/slackware-version'); if ("Slackware" >< buf) { buf = ereg_replace(string: buf, pattern: "^Slackware +", replace:"");report += '\nThe remote Slackware system is :\n' + buf; if (buf !~ '^[0-9.]+[ \t\r\n]*$') { report += '\nThe Slackware version is unknown, therefore local security checks have been disabled\n'; security_note(port:port, data:report); exit(0); } set_kb_item(name:"Host/Slackware/release", value: chomp(buf)); buf = info_send_cmd(cmd: 'ls -1 /var/log/packages'); if (buf) { report += '\nLocal security checks have been enabled for thishost.';set_kb_item(name:"Host/Slackware/packages", value:buf); set_kb_item(name:'Host/local_checks_enabled', value: TRUE); security_note(port:port, data:report); } else { report += 'For any reason, /var/log/packages/ could not be read, therefore local security checks have been disabled'; set_kb_item(name:'HostLevelChecks/failure', value:"'/var/log/packages' could not be read"); security_note(port:port, data:report); } misc_calls_and_exit(); } report += '\nThe remote Linux distribution is not supported, therefore localsecuritychecks have not been enabled'; security_note(port:port, data:report); set_kb_item(name:'HostLevelChecks/failure', value:"Unsupported Linux distribution"); misc_calls_and_exit(); } ######################################################################## From the code it is inferred that executing a command 'cat /etc/slackware-version' confirms Slackware has been installed and thenonlyproceed further. So if you have the permission to edit this plugin asbelow.But remember this will break the chain of detecting Slackware andenforcingthe local checks in Slackware. If you run this script any other systemitsets the kb item for Slackware since we dont any checks to say which Osisrunning. ############################################# # hard code Slackware release version here buf = 10.0; # whatever version that has been installed set_kb_item(name:"Host/Slackware/release", value: chomp(buf)); buf = info_send_cmd(cmd: 'ls -1 /var/log/packages'); if (buf) { report += '\nLocal security checks have been enabled for thishost.';set_kb_item(name:"Host/Slackware/packages", value:buf); set_kb_item(name:'Host/local_checks_enabled', value: TRUE); security_note(port:port, data:report); } else { report += 'For any reason, /var/log/packages/ could not be read, therefore local security checks have been disabled'; set_kb_item(name:'HostLevelChecks/failure', value:"'/var/log/packages' could not be read"); security_note(port:port, data:report); } misc_calls_and_exit(); } report += '\nThe remote Linux distribution is not supported, therefore localsecuritychecks have not been enabled'; security_note(port:port, data:report); set_kb_item(name:'HostLevelChecks/failure', value:"Unsupported Linux distribution"); misc_calls_and_exit(); ##################### PS: I have not tested the code. Pls try the code & do reply. On 8/9/07, Serkan Özkan <serkanozkan@gmail.com > wrote:Yes, i have it. On 8/9/07, Pavithra H < pavithra.chihan@gmail.com> wrote:hey do you have the permission to modify the pluginssh_get_info.nasl?-- Thanks, Pavithra.H Research Analyst, Thirdbrigade Labs Bangalore_______________________________________________ Nessus mailing list Nessus@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
-- Doug Nordwall Unix, Network, and Security Administrator You mean the vision is subject to low subscription rates?!!? - Scott Stone, on MMORPGs
_______________________________________________ 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: | Nessus performance on Linux, Richard van den Berg |
|---|---|
| Next by Date: | Re: force slackware plugins, Doug Nordwall |
| Previous by Thread: | Re: force slackware plugins, Serkan Özkan |
| Next by Thread: | Re: force slackware plugins, Doug Nordwall |
| Indexes: | [Date] [Thread] [Top] [All Lists] |