dropbear in dd-wrt

dropbear is way more easy tool to dump file/log from the target.

root@DD-WRT:~# nvram show | dbclient ywu@192.168.1.11/22 “cat > 06.r21061.txt”
size: 27032 bytes (5736 left)

Host ‘192.168.1.11’ is not in the trusted hosts file.
(fingerprint md5 02:98:4f:94:f6:c2:32:57:2e:5a:77:24:c3:36:28:37)
Do you want to continue connecting? (y/n) y
ywu@192.168.1.11’s password:
root@DD-WRT:~#

It comes out when I tried to use scp.

root@DD-WRT:~# scp 06.r21061_show_piped.txt ywu@192.168.1.11:/home/ywu/Workspace/dd-wrt_config/belkin_f7d8302/nvram/
Dropbear SSH client v2013.56 https://matt.ucc.asn.au/dropbear/dropbear.html
Usage: /usr/bin/dbclient [options] [user@]host[/port][,[user@]host/port],…] [command]
-p <remoteport>
-l <username>
-t Allocate a pty
-T Don’t allocate a pty
-N Don’t run a remote command
-f Run in background after auth
-y Always accept remote host key if unknown
-s Request a subsystem (use by external sftp)
-i <identityfile> (multiple allowed)
-A Enable agent auth forwarding
-L <[listenaddress:]listenport:remotehost:remoteport> Local port forwarding
-g Allow remote hosts to connect to forwarded ports
-R <[listenaddress:]listenport:remotehost:remoteport> Remote port forwarding
-W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
-K <keepalive> (0 is never, default 0)
-I <idle_timeout> (0 is never, default 0)
-B <endhost:endport> Netcat-alike forwarding
-J <proxy_program> Use program pipe rather than TCP connection
lost connection
root@DD-WRT:~# ls -la /usr/bin/dbclient
lrwxrwxrwx 1 root root 23 Mar 25 2013 /usr/bin/dbclient -> /usr/sbin/dropbearmulti
root@DD-WRT:~#

In this case, the dropbear is as a ssh client. There is a good post about setup dropbear ssh server from source.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s