Skip to content

Commit af13334

Browse files
committed
Revert gsub!
1 parent 1da9613 commit af13334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/http/synology_dsm_sliceupload_exec_noauth.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def exploit
121121
post_body.sub!(cmd_placeholder, cmds)
122122

123123
# fix multipart encoding
124-
post_body.gsub!(/\r\n\r\n--_Part/, "\r\n--_Part")
124+
post_body.gsub!(/\r\n(--#{mime_msg.bound})/, ' \\1')
125125

126126
# send request to append shell commands
127127
print_status("#{peer} - Injecting the payload...")

0 commit comments

Comments
 (0)