Skip to content

Commit 245b764

Browse files
committed
Fix issue with execution of perl due to gsub not matching across newlines
1 parent 86ae104 commit 245b764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/smtp/exim4_string_format.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def exploit
322322
buff << res if res
323323
end
324324

325-
perl_path = buff.gsub(token, "").gsub(/\/perl.*/, "/perl").strip
325+
perl_path = buff.gsub(token, "").gsub(/\/perl.*/m, "/perl").strip
326326
print_status("Using Perl interpreter at #{perl_path}...")
327327

328328
temp_conf = "/var/tmp/" + Rex::Text.rand_text_alpha(8)

0 commit comments

Comments
 (0)