Skip to content

Commit d37d211

Browse files
author
jvazquez-r7
committed
Fix short escape sequences error
1 parent 4147a27 commit d37d211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/dos/sap/sap_soap_rfc_eps_delete_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run_host(ip)
9494
}
9595
})
9696

97-
if res and res.code == 200 and res.body =~ /EPS_DELETE_FILE.Response/ and res.body =~ /#{datastore['DIRNAME']}/ and res.body =~ /#{datastore['FILENAME']}/
97+
if res and res.code == 200 and res.body =~ /EPS_DELETE_FILE.Response/ and res.body.include?(datastore['FILENAME']) and res.body.include?(datastore['DIRNAME'])
9898
print_good("#{rhost}:#{rport} - File #{datastore['FILENAME']} at #{datastore['DIRNAME']} successfully deleted")
9999
elsif res
100100
vprint_error("#{rhost}:#{rport} - Response code: " + res.code.to_s)

0 commit comments

Comments
 (0)