Skip to content

Commit 4828469

Browse files
rsmudgeegypt
authored andcommitted
Fix: download_exec appends an extra / to request
The download_exec module parses the provided URL and appends an unnecessary, nay--damaging I say!!!! '/' to the parsed URI. This renders the module unusable for those who want a payload to download and execute a file. Before and after access.log snippets are in the redmine ticket http://dev.metasploit.com/redmine/issues/7592
1 parent d2fccf9 commit 4828469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/payloads/singles/windows/download_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def generate
312312
call httpopenrequest
313313
314314
server_uri:
315-
db "/#{server_uri}", 0x00
315+
db "#{server_uri}", 0x00
316316
317317
create_file:
318318
jmp.i8 get_filename

0 commit comments

Comments
 (0)