From 917196b8a11d411fdd57f660b7618f0316c5e575 Mon Sep 17 00:00:00 2001 From: jheysel-r7 Date: Fri, 31 Jan 2025 12:49:35 -0800 Subject: [PATCH] Update modules/auxiliary/gather/argus_dvr_4_lfi_cve_2018_15745.rb --- modules/auxiliary/gather/argus_dvr_4_lfi_cve_2018_15745.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/gather/argus_dvr_4_lfi_cve_2018_15745.rb b/modules/auxiliary/gather/argus_dvr_4_lfi_cve_2018_15745.rb index 6c1e5eb4334e..11f2401dafa5 100644 --- a/modules/auxiliary/gather/argus_dvr_4_lfi_cve_2018_15745.rb +++ b/modules/auxiliary/gather/argus_dvr_4_lfi_cve_2018_15745.rb @@ -67,9 +67,10 @@ def run print_good('File retrieved successfully!') print_line(response.body) store_loot('file_traversal', 'text/plain', rhost, response.body, "#{target_file.gsub('/', '_')}.txt") + elsif response + print_error('Failed to retrieve file.') # Response from server but file not returned else - print_error('Failed to retrieve file.') if response # Response from server but file not returned - print_error('No response from target.') unless response # No response from server + print_error('No response from target.') # No response from server end end end