[Openvas-commits] r3216 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Apr 29 13:59:09 CEST 2009
Author: chandra
Date: 2009-04-29 13:59:07 +0200 (Wed, 29 Apr 2009)
New Revision: 3216
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/ssh_authorization.nasl
Log:
ssh_func.inc include.
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2009-04-29 09:31:12 UTC (rev 3215)
+++ trunk/openvas-plugins/ChangeLog 2009-04-29 11:59:07 UTC (rev 3216)
@@ -1,3 +1,7 @@
+2009-04-29 Chandan S <schandan at secpod.com>
+ * ssh_authorization.nasl:
+ ssh_func.inc include.
+
2009-04-28 Thomas Reinke <reinke at securityspace.com>
* deb_1775_1.nasl deb_1776_1.nasl deb_1777_1.nasl deb_1778_1.nasl
freebsd_firefox38.nasl freebsdsa_libc1.nasl freebsdsa_openssl7.nasl
Modified: trunk/openvas-plugins/scripts/ssh_authorization.nasl
===================================================================
--- trunk/openvas-plugins/scripts/ssh_authorization.nasl 2009-04-29 09:31:12 UTC (rev 3215)
+++ trunk/openvas-plugins/scripts/ssh_authorization.nasl 2009-04-29 11:59:07 UTC (rev 3216)
@@ -81,6 +81,9 @@
# deprecated: once openvas-server < 2.0.1 is not supported anymore this all can be removed:
# Ignore "single"-login information?
+
+include("ssh_func.inc");
+
use_new = script_get_preference("Use per-target login information");
if(use_new == "no")
{
@@ -101,8 +104,10 @@
if(!port) {
port = 22;
}
+
sock = ssh_login_or_reuse_connection();
- if(!sock) {
+ if(!sock)
+ {
security_note(data:"It was not possible to login using the SSH crendentials supplied.\n Hence local security checks is not enabled", port:port);
ssh_close_connection();
exit(0);
More information about the Openvas-commits
mailing list