From b7dc7dfe658dcaa7f0b8628c6f9c183423ad7399 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Mon, 31 Dec 2007 04:53:35 +0000 Subject: [PATCH] print command line output git-svn-id: file:///home/svn/framework3/trunk@5243 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/console/command_dispatcher/db.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index 3406aa3dc8..36339b6e97 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -381,8 +381,11 @@ module Db fd = Tempfile.new('dbnmap') args.push('-oX', fd.path) args.unshift(nmap) - - IO.popen( args.map{|x| '"'+x+'"'}.join(" ") + " 2>&1" ) do |io| + + cmd = args.map{|x| '"'+x+'"'}.join(" ") + " 2>&1" + + print_status("exec: #{cmd}") + IO.popen( cmd ) do |io| io.each_line do |line| print_line("NMAP: " + line.strip) end