TypeError: tostring() got an unexpected keyword argument 'xml_declaration'
Closed this issue · 2 comments
LarsMueller91 commented
Tried running on our network and received this error.
Command was python3 proxyshell.py -u x.x.x.x -e example@example.com
Traceback (most recent call last):
File "proxyshell.py", line 247, in
main()
File "proxyshell.py", line 236, in main
exploit(proxyshell)
File "proxyshell.py", line 180, in exploit
proxyshell.get_legacydn()
File "proxyshell.py", line 109, in get_legacydn
data = self.autodiscover_body()
File "proxyshell.py", line 137, in autodiscover_body
xml_declaration=False
TypeError: tostring() got an unexpected keyword argument 'xml_declaration'
dmaasland commented
Either:
- Upgrade to python 3.8 or later
- Use the devcontainer I just comitted to run the script in
LarsMueller91 commented
oops was an issue with my python version, thanks.