mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Expand to a windows path if the exe is outside of the cygwin installation
git-svn-id: file:///home/svn/framework3/trunk@7375 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
48fb445609
commit
4fde76e8f6
@ -641,7 +641,7 @@ class Db
|
||||
fd = Tempfile.new('dbnmap')
|
||||
|
||||
# When executing native Nmap, expand the Cygwin path to a Win32 path
|
||||
if(Rex::Compat.is_cygwin and nmap[0,1] != "/")
|
||||
if(Rex::Compat.is_cygwin and nmap =~ /^cygdrive/)
|
||||
args.push('-oX', IO.popen("cygpath -aw #{fd.path}").read.strip)
|
||||
else
|
||||
args.push('-oX', fd.path)
|
||||
@ -1211,3 +1211,4 @@ end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user