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

hijack cannot write library name to stack #33

Open
gcapitalteam opened this issue May 29, 2017 · 1 comment
Open

hijack cannot write library name to stack #33

gcapitalteam opened this issue May 29, 2017 · 1 comment

Comments

@gcapitalteam
Copy link

Hi all,

I have problems running hijack process for this example. Do you know how to fix the problem?

root@MLA-TL10:/data/local/tmp # ./hijack -d -p 11329 -l libexample.so
./hijack -d -p 11329 -l libexample.so
Open maps file successfullymprotect: 0x1422fcf0
Open maps file successfullyOpen maps file successfullydlopen: 0xb77d0378
Attached to process successfullypc=d000 lr=d000 sp=2 fp=400f4c26
r0=1c010030 r1=40217cc4
r2=401b2df8 r3=0
libaddr: ffffffa2
stack: 0xbfcbb000-0xbfcdc000 leng = 135168
cannot write library name (libexample.so) to stack, error 5 addr=-94!

I'm using MEMU emulator.

@gcapitalteam
Copy link
Author

I figured out why. It's because I run the code on x86 emulator. These registers are invalid. I'm looking for a way to inject .so file on x86 emulator.

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

1 participant