Skip to content

Commit b8ec13e

Browse files
committed
Lint
1 parent ca45c64 commit b8ec13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/cyberpanel_preauth_rce_multi_cve.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def execute_payload(action, injected_payload)
148148
payload_data = post_data.to_s
149149

150150
headers['X-CSRFToken'] = csrf_token
151-
headers['Referer'] = "#{(datastore['SSL'] ? 'https' : 'http')}://#{datastore['RHOST']}:#{datastore['RPORT']}#{normalize_uri(target_uri.path, 'filemanager/upload')}"
151+
headers['Referer'] = "#{datastore['SSL'] ? 'https' : 'http'}://#{datastore['RHOST']}:#{datastore['RPORT']}#{normalize_uri(target_uri.path, 'filemanager/upload')}"
152152
headers['Cookie'] = "csrftoken=#{csrf_token}"
153153
ctype = "multipart/form-data; boundary=#{post_data.bound}"
154154

0 commit comments

Comments
 (0)