[Openvas-commits] r3236 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 5 12:35:49 CEST 2009


Author: chandra
Date: 2009-05-05 12:35:44 +0200 (Tue, 05 May 2009)
New Revision: 3236

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/gather-package-list.nasl
Log:
Added HP-UX support

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2009-05-05 10:14:23 UTC (rev 3235)
+++ trunk/openvas-plugins/ChangeLog	2009-05-05 10:35:44 UTC (rev 3236)
@@ -1,4 +1,8 @@
 2009-05-05 Chandrashekhar B <bchandra at secpod.com>
+	* scripts/gather-package-list.nasl:
+	Added HP-UX support
+
+2009-05-05 Chandrashekhar B <bchandra at secpod.com>
 	* scripts/gb_hp_ux_HPSBUX02365.nasl
 	scripts/gb_hp_ux_HPSBUX01137.nasl
 	scripts/gb_hp_ux_HPSBUX02082.nasl

Modified: trunk/openvas-plugins/scripts/gather-package-list.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gather-package-list.nasl	2009-05-05 10:14:23 UTC (rev 3235)
+++ trunk/openvas-plugins/scripts/gather-package-list.nasl	2009-05-05 10:35:44 UTC (rev 3236)
@@ -798,6 +798,121 @@
 
 # Non GNU/Linux platforms:
 
+
+## HP-UX Operating System
+
+if ("HP-UX" >< uname){
+    rls = ssh_cmd(socket:sock, cmd:"uname -r");
+}
+
+if("10.01"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX10.01");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 10.01"));
+    exit(0);
+}
+if("10.10"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX10.10");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 10.10"));
+    exit(0);
+}
+if("10.20"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX10.20");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 10.20"));
+    exit(0);
+}
+if("10.24"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX10.24");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 10.24"));
+    exit(0);
+}
+if("10.26"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX10.26");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 10.26"));
+    exit(0);
+}
+if("11.00"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX11.00");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 11.00"));
+    exit(0);
+}
+if("11.04"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX11.04");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 11.04"));
+    exit(0);
+}
+if("11.11"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX11.11");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 11.11"));
+    exit(0);
+}
+if("11.20"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX11.20");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 11.20"));
+    exit(0);
+}
+if("11.22"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX11.22");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 11.22"));
+    exit(0);
+}
+if("11.23"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX11.23");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 11.23"));
+    exit(0);
+}
+if("11.31"><rls) {
+    set_kb_item(name: "ssh/login/release", value: "HPUX11.31");
+    buf = ssh_cmd(socket:sock, cmd:"swlist -l patch -a supersedes");
+    set_kb_item(name: "ssh/login/hp_pkgsupersedes", value:buf);
+    buf = ssh_cmd(socket:sock, cmd:"swlist -a revision -l fileset");
+    set_kb_item(name: "ssh/login/hp_pkgrev", value:buf);
+    security_note(port:port, data:string("We are able to login and detect that you are running HP-UX 11.31"));
+    exit(0);
+}
 #How about FreeBSD?  If the uname line begins with "FreeBSD ", we have a match
 if(substr(uname, 0, 7)=="FreeBSD ") {
     version=eregmatch(pattern:"^[^ ]+ [^ ]+ ([^ ]+)+",string:uname);



More information about the Openvas-commits mailing list