Hi,
This patch adds support for Mageia release 5 detection..
--- /root/gather-package-list.nasl 2015-09-27 02:49:46.761091697 -0700
+++ gather-package-list.nasl 2015-09-27 03:12:44.034218487 -0700
@@ -152,7 +152,7 @@
# Amazon Linux
"AMAZON", "cpe:/o:amazon:linux",
- # Mandriva/Mandrake
+ # Mandriva/Mandrake/Mageia
"MNDK_7.2", "cpe:/o:mandrakesoft:mandrake_linux:7.2",
"MNDK_8.0", "cpe:/o:mandrakesoft:mandrake_linux:8.0",
"MNDK_8.1", "cpe:/o:mandrakesoft:mandrake_linux:8.1",
@@ -173,6 +173,7 @@
"MNDK_2011.0", "cpe:/o:mandriva:linux:2011.0",
"MNDK_mes5", "cpe:/o:mandriva:enterprise_server:5",
"MNDK_mes5.2", "cpe:/o:mandriva:enterprise_server:5",
+ "MAGEIA5", "cpe:/o:mageia:linux:5",
# CentOS
"CentOS2", "cpe:/o:centos:centos:2",
@@ -974,6 +975,15 @@
exit(0);
}
+if("Mageia release 5" >< rls) {
+ buf = ssh_cmd(socket:sock, cmd:"/bin/rpm -qa --qf
'%{NAME}~%{VERSION}~%{RELEASE};\n'");
+ set_kb_item(name: "ssh/login/rpms", value: ";" + buf);
+ log_message(port:port, data:string("We are able to login and detect
that you are running Mageia release 5"));
+ register_detected_os(os:"Mageia release 5", oskey:"MAGEIA5");
+ exit(0);
+}
+
+
# Ok...also using /etc/redhat-release is CentOS...let's try them now
# We'll stay with major release # checking unless we find out we need to do
# otherwise.
_______________________________________________
Openvas-plugins mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins