-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
the result of target remote match is wrong when we attach gdb with "gdb.attach(('0.0.0.0',1234))" #2290
Labels
Comments
Email z wtorku 31 października 2023 od ckxckxa:
when use gdb.attach(('0.0.0.0',1234)),
failed to find the correct pid for local process
```
if not (raddrs & remote): # maybe here is a bug, edit it to " laddrs & remote"
return False
if local is None:
return True
return bool(laddrs & local)
```
![image](https://github.com/Gallopsled/pwntools/assets/18208119/1d33a9b3-e86c-4c82-9a9f-9d69fda0903b)
![image](https://github.com/Gallopsled/pwntools/assets/18208119/a331e1b2-d957-422a-9dab-87db878e3b2e)
--
Reply to this email directly or view it on GitHub:
#2290
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***
Could you elaborate? Currently your description is not exactly complete. How do you start your server? What is the output of netstat -plnt or ss -plnt? What version of pwntools do you use (pwn version)? Does it work with the suggested change? If so, would you mind submitting a pull request or pasting a patch here?
Please remember to stick to a template when reporting bugs to open source projects whenever possible. The minimum should always be: what have you done and how (think about the maintainers having to understand it and so the same steps), what did you expext to happen, and what happened instead. Please try to be clear and precise, and use text instead of images unless they carry some extra meaning (like when reporting GPU bugs).
…--
Wysłane z mojego urządzenia Sailfish
|
Here is the testcase: Test with before the patch, testpwntool.py will fail like below: Settingpython version :
pwntools version: build from the latest code which is clone from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when use gdb.attach(('0.0.0.0',1234)),
failed to find the correct pid for local process
The text was updated successfully, but these errors were encountered: