This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Exploit for "assignment" of GoogleCTF 2017 | |
# | |
# CTF-quality exploit... | |
# | |
# Slightly simplified and shortened explanation: | |
# | |
# The bug is a UAF of one or both values during add_assign() if a GC is | |
# triggered during allocate_value(). The exploit first abuses this to leak a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from suds.transport.http import HttpTransport as SudsHttpTransport | |
class WellBehavedHttpTransport(SudsHttpTransport): | |
"""HttpTransport which properly obeys the ``*_proxy`` environment variables.""" | |
def u2handlers(self): | |
"""Return a list of specific handlers to add. | |
The urllib2 logic regarding ``build_opener(*handlers)`` is: |