Skip to content

Commit c93e88f

Browse files
author
Pedro Ribeiro
authored
Make changes requested by wvu-r7
1 parent ded4d31 commit c93e88f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/webnms_file_upload.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def initialize(info = {})
6363

6464
register_options(
6565
[
66-
OptPort.new('RPORT', [true, 'The target port', 9090]),
66+
Opt::RPORT(9090),
6767
OptString.new('TARGETURI', [ true, "WebNMS path", '/'])
6868
],
6969
self.class
@@ -215,7 +215,7 @@ def exploit
215215

216216
print_status("#{peer} - Executing payload...")
217217
send_request_cgi(
218-
'uri' => normalize_uri(datastore['TARGETURI'], 'jsp', jsp_name),
218+
'uri' => normalize_uri(target_uri.path, 'jsp', jsp_name),
219219
'method' => 'GET'
220220
)
221221
end

0 commit comments

Comments
 (0)