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

mips environment is simulated by qemu or real device? #9

Open
QingyangChen opened this issue Jan 19, 2018 · 14 comments
Open

mips environment is simulated by qemu or real device? #9

QingyangChen opened this issue Jan 19, 2018 · 14 comments

Comments

@QingyangChen
Copy link

your mips environment is simulated by qemu or real device?
If it is simulated by qemu, can you tell me the way?
In addition,when do you release mips rop?

Thanks
(Translated from Google,If I use the wrong words, please forgive me)

@BigNerd95
Copy link
Owner

I finished the mips exploit yesterday
I used a real device
I think i'll release it today

@QingyangChen
Copy link
Author

Great!!!
I learned a lot of skills from the exploit,Thank you very much!

@BigNerd95
Copy link
Owner

BigNerd95 commented Jan 19, 2018

Oh good! You are welcome
On mips the stack is executable so i used a combination of ROP + shellcode.
The mips exploit is a bit more complicated, because there isn't "/bin/sh", so "system" function can't be used and I need to use execve directly.

@BigNerd95
Copy link
Owner

Look at "sleep 50" ;-)

image

@QingyangChen
Copy link
Author

yeah, I see the result.
I'm very looking forward to this code, and going to learn more skills
I guess we need to locate the address on the stack ;-)

@QingyangChen
Copy link
Author

Now my time is 23:00, I'm going to sleep. See you tomorrow ;-)

@BigNerd95
Copy link
Owner

I guess we need to locate the address on the stack

yes, i made stack pivot

i'm going to release it in a few minutes
good night!

@BigNerd95
Copy link
Owner

BigNerd95 commented Jan 19, 2018

here you are!
StackClashMIPS.py

@QingyangChen
Copy link
Author

I'm sorry, I just saw it.

I has something to do and didn't log in to GitHub at the weekend, please forgive me.

Tomorrow is Monday, and I'm going to learn the exploit.

Thank you!

@QingyangChen
Copy link
Author

Well done, it's delicious.
I have understood the code, Thank you!

@BigNerd95
Copy link
Owner

Perfect 🔝

@kiritowch
Copy link

How do you put gdb-server into a real MIPS device? Thank you! Is it by repacking?

@BigNerd95
Copy link
Owner

I have a 0day to write on the filesystem
But i think you can use this as well https://github.com/0ki/mikrotik-tools/tree/master/exploit-backup

@kiritowch
Copy link

That's great! I'll try it. Thank you very much.

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

3 participants