File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/msf/ui/console/command_dispatcher Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1740,7 +1740,7 @@ def cmd_db_nmap(*args)
1740
1740
return
1741
1741
end
1742
1742
save = false
1743
- arguments = ''
1743
+ arguments = [ ]
1744
1744
while ( arg = args . shift )
1745
1745
case arg
1746
1746
when 'save'
@@ -1749,7 +1749,7 @@ def cmd_db_nmap(*args)
1749
1749
cmd_db_nmap_help
1750
1750
return
1751
1751
else
1752
- arguments << arg + ' '
1752
+ arguments << arg
1753
1753
end
1754
1754
end
1755
1755
@@ -1773,15 +1773,15 @@ def cmd_db_nmap(*args)
1773
1773
# Custom function needed because cygpath breaks on 8.3 dirs
1774
1774
tout = Rex ::Compat . cygwin_to_win32 ( fd . path )
1775
1775
fout = Rex ::Compat . cygwin_to_win32 ( fo . path )
1776
- args . push ( '-oX' , tout )
1777
- args . push ( '-oN' , fout )
1776
+ arguments . push ( '-oX' , tout )
1777
+ arguments . push ( '-oN' , fout )
1778
1778
else
1779
- args . push ( '-oX' , fd . path )
1780
- args . push ( '-oN' , fo . path )
1779
+ arguments . push ( '-oX' , fd . path )
1780
+ arguments . push ( '-oN' , fo . path )
1781
1781
end
1782
1782
1783
1783
begin
1784
- nmap_pipe = ::Open3 ::popen3 ( [ nmap , 'nmap' ] , arguments )
1784
+ nmap_pipe = ::Open3 ::popen3 ( [ nmap , 'nmap' ] , * arguments )
1785
1785
temp_nmap_threads = [ ]
1786
1786
temp_nmap_threads << framework . threads . spawn ( "db_nmap-Stdout" , false , nmap_pipe [ 1 ] ) do |np_1 |
1787
1787
np_1 . each_line do |nmap_out |
You can’t perform that action at this time.
0 commit comments