Skip to content

Commit 82a30ed

Browse files
committed
Fix bug in db_nmap with RDS
The cmd_db_nmap method was cleaning up the nmap XML file before it could be read. Making the call synchronous will prevent it from hitting the ensure block before the processing is done when running msfdb locally.
1 parent 04f5f41 commit 82a30ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/data_service/remote/http/remote_nmap_data_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def import_nmap_xml_file(opts)
1414

1515
opts[:data] = Base64.urlsafe_encode64(data)
1616

17-
self.post_data_async(NMAP_PATH, opts)
17+
self.post_data(NMAP_PATH, opts)
1818
end
1919
end

0 commit comments

Comments
 (0)