Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Bind Shell #47

Open
ub3rduck opened this issue May 22, 2018 · 3 comments
Open

Creating Bind Shell #47

ub3rduck opened this issue May 22, 2018 · 3 comments

Comments

@ub3rduck
Copy link

Hi,
I'm trying to establish a bind shell on my RouterOS 6.38.4 (MIPSBE) rather than starting a reverse shell like in the examples.
I've been trying few methods but I can't seem to execute any command using the script except for opening a reverse shell.
I tried to create a new file with test, echo > /tmp/test, touch /tmp/test but none seem to be working.

Any idea why echo with output redirect command doesn't work or other idea how to establish a bind shell on the mk? (uploading files via web interface not relevant)

Thanks

P.S
Great job reversing and exploiting !

@BigNerd95
Copy link
Owner

On routeros the busybox contains very few programs.
To bind with telnetd or netcat you have to upload a binary to do that.

Does echo "" > /ram/test work?

Anyway I'm going to modify the mipsbe exploit to reuse the http socket to spawn a shell, so a reverse shell is no more needed (as soon as i have enough time).

@ub3rduck
Copy link
Author

Nope. It works from within an established shell (reverse shell spawned by the original script), but when trying to execute echo command using the script, it does not create anything on the server. Can someone please verify this issue on different device?
And thanks a lot, that would be very helpful

@BigNerd95
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants