Jump to content

SSH with password in attack mode


Recommended Posts

I'm attempting to write a script that interfaces with a password-enabled SSH service (dropbear) on a host OpenWRT device.

On Debian systems I typically use sshpass to accomplish this. I could also use expect. However it doesn't appear either are available for OpenWRT.

EX:

sshpass -p "PASSWORD" ssh -o StrictHostKeyChecking=no -oKexAlgorithms=+diffie-hellman-group1-sha1 admin@$IP 'echo test123'

Does anyone have a solution to automatically pass the password into and ssh session on the sharkjack?

And I know.. keyfiles, etc... in this case it's a legacy product which only supports password authentication.

Link to post
Share on other sites
  • 5 months later...

The only alternatives I know of is sexpect and passh that should work with some form of OpenWRT. Haven't tried them though. I think the Shark is too weak and limited to get them up and running (if working at all) since the storage is not sufficient enough to accommodate either of them (or the tools needed to support them).

https://github.com/clarkwang/sexpect

https://github.com/clarkwang/passh

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...