From e99f5479d8c30d1d1cad19c0224032f147152c90 Mon Sep 17 00:00:00 2001 From: JonnyHightower Date: Mon, 16 Jun 2014 16:20:44 +0100 Subject: [PATCH] NFS version defaults to 3 for mounting. --- content/NFS/NFS.gsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/NFS/NFS.gsm b/content/NFS/NFS.gsm index 5105f5c..aa77eb0 100644 --- a/content/NFS/NFS.gsm +++ b/content/NFS/NFS.gsm @@ -192,7 +192,7 @@ sub activate { my $tmpDir=$dir; $tmpDir=~s?/?-?g; $tmpDir=~s/^-//; $MainScan->System("/bin/mkdir -p /mnt/${host}/$tmpDir"); if (-d "/mnt/${host}/$tmpDir"){ - my $error=$MainScan->TimedSystem($Timeout,"/bin/mount ${host}:$dir /mnt/${host}/$tmpDir -t nfs -o nolock >/dev/null 2>&1"); + my $error=$MainScan->TimedSystem($Timeout,"/bin/mount ${host}:$dir /mnt/${host}/$tmpDir -t nfs -o nolock -o vers=3 >/dev/null 2>&1"); if ($error==0){ $MainScan->ConfigError($target, "vuln", "GSM-NFS-1", "Mounted NFS export $dir"); mkdir "${outputDir}/NFS";