Hi, all
I noticed software enumeration on a debian system (lenny) was not
conducted. I don't know the others but probably etch is only "4.0"
So maybe these changes are appropriate. Can someone verify it, I did
not test it very well. But after adding ' lenny/sid' I did get 2
notes back.
One saying:
/The remote Linux distribution is not supported, therefore local
security checks have not been enabled ....
/The other:/
"Nessus can run commands on localhost to check if patches are applied
The output of "uname -a" is :
Linux scarface 2.6.17-2-486 #1 Wed Sep 13 15:56:30 UTC 2006 i686 GNU/Linux
The remote Debian system is :
lenny/sid
Local security checks have been enabled for this host./
so I changed the part:
if (debrel) {
set_kb_item(name:"Host/Debian/release", value: debrel);
}
--Ferdy--
--- ssh_get_info.nasl 2007-06-11 15:21:30.000000000 +0200
+++ ssh_get_info2.nasl 2007-06-11 19:10:29.000000000 +0200
@@ -452,7 +452,9 @@
###################### Debian
###############################################
buf = info_send_cmd(cmd: "cat /etc/debian_version");
- if ( buf && egrep(string:buf, pattern:'^([0-9.]+|testing/unstable)[
\t\r\n]*$'))
+ if ( buf &&
+ egrep(string:buf, pattern:'^([0-9.]+|testing/unstable)[
\t\r\n]*$') ||
+ egrep(string:buf, pattern:'^lenny/sid'))
{
report += '\nThe remote Debian system is :\n' + buf;
debrel = chomp(buf);
@@ -491,9 +493,9 @@
security_note(port:port, data:report);
set_kb_item(name:'HostLevelChecks/failure', value:"'dpkg' did not
return any result");
}
- if (debrel)
+ if (debrel) {
set_kb_item(name:"Host/Debian/release", value: debrel);
-
+ }
misc_calls_and_exit();
}
_______________________________________________
Plugins-writers mailing list
Plugins-writers@list.nessus.org
http://mail.nessus.org/mailman/listinfo/plugins-writers
I noticed software enumeration on a debian system (lenny) was not
conducted. I don't know the others but probably etch is only "4.0"
So maybe these changes are appropriate. Can someone verify it, I did
not test it very well. But after adding ' lenny/sid' I did get 2
notes back.
One saying:
/The remote Linux distribution is not supported, therefore local
security checks have not been enabled ....
/The other:/
"Nessus can run commands on localhost to check if patches are applied
The output of "uname -a" is :
Linux scarface 2.6.17-2-486 #1 Wed Sep 13 15:56:30 UTC 2006 i686 GNU/Linux
The remote Debian system is :
lenny/sid
Local security checks have been enabled for this host./
so I changed the part:
if (debrel) {
set_kb_item(name:"Host/Debian/release", value: debrel);
}
--Ferdy--
--- ssh_get_info.nasl 2007-06-11 15:21:30.000000000 +0200
+++ ssh_get_info2.nasl 2007-06-11 19:10:29.000000000 +0200
@@ -452,7 +452,9 @@
###################### Debian
###############################################
buf = info_send_cmd(cmd: "cat /etc/debian_version");
- if ( buf && egrep(string:buf, pattern:'^([0-9.]+|testing/unstable)[
\t\r\n]*$'))
+ if ( buf &&
+ egrep(string:buf, pattern:'^([0-9.]+|testing/unstable)[
\t\r\n]*$') ||
+ egrep(string:buf, pattern:'^lenny/sid'))
{
report += '\nThe remote Debian system is :\n' + buf;
debrel = chomp(buf);
@@ -491,9 +493,9 @@
security_note(port:port, data:report);
set_kb_item(name:'HostLevelChecks/failure', value:"'dpkg' did not
return any result");
}
- if (debrel)
+ if (debrel) {
set_kb_item(name:"Host/Debian/release", value: debrel);
-
+ }
misc_calls_and_exit();
}
_______________________________________________
Plugins-writers mailing list
Plugins-writers@list.nessus.org
http://mail.nessus.org/mailman/listinfo/plugins-writers