Fixes #353. If the problem persists, make sure 'cygpath' is installed, it sounds like the root cause is 3.3-dev being run inside of an existing cygwin environment.

git-svn-id: file:///home/svn/framework3/trunk@7176 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-10-17 06:41:37 +00:00
parent 27192b303b
commit d0b07c0c3f
1 changed files with 2 additions and 1 deletions

View File

@ -546,7 +546,8 @@ class Db
fd = Tempfile.new('dbnmap')
if(Rex::Compat.is_cygwin)
# When executing native Nmap, expand the Cygwin path to a Win32 path
if(Rex::Compat.is_cygwin and nmap[0,1] != "/")
args.push('-oX', IO.popen("cygpath -aw #{fd.path}").read.strip)
else
args.push('-oX', fd.path)