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

Connecting to frida-gadget? (frida.ProcessNotFoundError) #1

Open
Manouchehri opened this issue Oct 11, 2017 · 1 comment
Open

Connecting to frida-gadget? (frida.ProcessNotFoundError) #1

Manouchehri opened this issue Oct 11, 2017 · 1 comment

Comments

@Manouchehri
Copy link

Having a bit of trouble getting memrepl to work against remote applications, any suggestions?

Target/Remote Machine

root@s5:/# LD_PRELOAD=/apps/frida-gadget-10.6.10-linux-x86_64.so /bin/ls

Debugger/Host Machine

dave@65b7fe7b9a12:/tools/memrepl# socat TCP-LISTEN:27042,bind=127.0.0.1,fork,reuseaddr TCP:172.17.0.3:27042 &
dave@65b7fe7b9a12:/tools/memrepl# memrepl -d tcp -l
Using device Device(id="tcp", name="Local TCP", type='remote').
Local processes list:
  PID    Name
  205    Gadget
dave@65b7fe7b9a12:/tools/memrepl# memrepl -d tcp -p 205
Using device Device(id="tcp", name="Local TCP", type='remote').
Attaching to process pid `205`.
Attaching to process `205`.
Traceback (most recent call last):
  File "/usr/local/bin/memrepl", line 9, in <module>
    load_entry_point('memrepl==1.0', 'console_scripts', 'memrepl')()
  File "build/bdist.linux-x86_64/egg/memrepl.py", line 498, in main
  File "build/bdist.linux-x86_64/egg/memrepl.py", line 281, in __init__
  File "build/bdist.linux-x86_64/egg/frida/__init__.py", line 57, in attach

  File "build/bdist.linux-x86_64/egg/frida/core.py", line 97, in attach
frida.ProcessNotFoundError: unable to find process with pid 205
dave@65b7fe7b9a12:/tools/memrepl# memrepl -d tcp -n Gadget
Using device Device(id="tcp", name="Local TCP", type='remote').
Defaulting to first process `Gadget:205`.
Attaching to process `205`.
Traceback (most recent call last):
  File "/usr/local/bin/memrepl", line 9, in <module>
    load_entry_point('memrepl==1.0', 'console_scripts', 'memrepl')()
  File "build/bdist.linux-x86_64/egg/memrepl.py", line 498, in main
  File "build/bdist.linux-x86_64/egg/memrepl.py", line 281, in __init__
  File "build/bdist.linux-x86_64/egg/frida/__init__.py", line 57, in attach

  File "build/bdist.linux-x86_64/egg/frida/core.py", line 97, in attach
frida.ProcessNotFoundError: unable to find process with pid 205
@agustingianni
Copy link
Owner

Hi there, I've never tested it with remote applications. I will give it a look. Thanks for the bug report.

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