From 55b5b828f25bc5336759b755ea8dff147455e862 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Fri, 6 Nov 2009 17:15:26 +0000 Subject: [PATCH] Use the relative path to nmap git-svn-id: file:///home/svn/framework3/trunk@7381 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/console/command_dispatcher/db.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index af0bc8a83b..3283fc898c 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -651,9 +651,7 @@ class Db args.push('-oX', fd.path) end - args.unshift(nmap) - - cmd = args.map{|x| "'#{x}'"}.join(" ") + cmd = "nmap " + args.map{|x| "'#{x}'"}.join(" ") print_status("exec: #{cmd}") IO.popen( cmd, 'rb' ) do |io|