dmaasland/proxyshell-poc

TypeError: tostring() got an unexpected keyword argument 'xml_declaration'

Closed this issue · 2 comments

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'

Either:

  1. Upgrade to python 3.8 or later
  2. Use the devcontainer I just comitted to run the script in

oops was an issue with my python version, thanks.