Add atexit functions for glibc exploits#2683
Add atexit functions for glibc exploits#2683RocketMaDev wants to merge 10 commits intoGallopsled:devfrom
atexit functions for glibc exploits#2683Conversation
0a8005e to
170dab0
Compare
Sphinx will automatically resolve it via Python code
170dab0 to
d1a9261
Compare
peace-maker
left a comment
There was a problem hiding this comment.
This looks nice, thank you! It's also nice to see newer Python language features making their appearance with the match-case and type hints. Now that we fully bumped to Python 3.10, we can fully embrace it. It still feels weird to add code like this though Python 2.7 flashbacks
Can you post an exploit using this feature too please? I haven't gotten around to use it in a toy program yet.
I just saw these features from some random repos I looked at days ago, and learn them via official Python docs. |
fa5b959 to
ed7491a
Compare
ed7491a to
2e4fb3c
Compare
|
Why the hyperlink is not rendered correctly? |
|
https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#external-links Maybe put the link and text on the same line? |
I was talking about the |
It seems that your link is broken in the generated docs... https://docs.pwntools.com/en/dev/libc/glibc.html#pwnlib.libc.glibc.protect_ptr |
May I not write an example? The symbols are all buried in glibc, it's hard to write a generic example without many hacks... 🤔 |
08b1b97 to
961b52f
Compare
961b52f to
882c3a6
Compare
This PR closes #2633 and #2673, which try to implement glibc
exithacks. Now user can constructstruct exit_functionor unserializebytestostruct exit_functionvia pwntools.More information at the issue and PR mentioned above.