Expand cygwin to win32 path for db_nmap on windows inside of cygwin

git-svn-id: file:///home/svn/framework3/trunk@7002 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-09-04 15:04:06 +00:00
parent 402608ec6f
commit e7b200bc23
1 changed files with 5 additions and 1 deletions

View File

@ -507,8 +507,12 @@ class Db
fd = Tempfile.new('dbnmap')
if(Rex::Compat.is_cygwin)
args.push(IO.popen("cygpath -aw #{fd.path}").read.strip)
else
args.push('-oX', fd.path)
end
args.push('-oX', fd.path)
args.unshift(nmap)
cmd = args.map{|x| '"'+x+'"'}.join(" ")