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-b9f4589650daunstable
parent
27192b303b
commit
d0b07c0c3f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue