Browse Source

fixing python3.7 curl_controller + minor details

epsylon 3 years ago
parent
commit
92dd3fb651
3 changed files with 6 additions and 3 deletions
  1. 4 1
      core/curlcontrol.py
  2. 1 1
      doc/MANIFESTO
  3. 1 1
      doc/README

+ 4 - 1
core/curlcontrol.py

@@ -451,7 +451,10 @@ class Curl:
         m['request-size'] = str(self.handle.getinfo(pycurl.REQUEST_SIZE))
         m['response-code'] = str(self.handle.getinfo(pycurl.RESPONSE_CODE))
         m['ssl-verifyresult'] = str(self.handle.getinfo(pycurl.SSL_VERIFYRESULT))
-        m['content-type'] = (self.handle.getinfo(pycurl.CONTENT_TYPE) or '').strip(';')
+        try:
+            m['content-type'] = (self.handle.getinfo(pycurl.CONTENT_TYPE) or '').strip(';')
+        except:
+            m['content-type'] = None
         m['cookielist'] = str(self.handle.getinfo(pycurl.INFO_COOKIELIST))
         #m['content-length-download'] = str(self.handle.getinfo(pycurl.CONTENT_LENGTH_DOWNLOAD))
         #m['content-length-upload'] = str(self.handle.getinfo(pycurl.CONTENT_LENGTH_UPLOAD))

File diff suppressed because it is too large
+ 1 - 1
doc/MANIFESTO


+ 1 - 1
doc/README

@@ -213,7 +213,7 @@ Commands and examples:
 
 ----------------------------------------
 
-* Simple injection from URL:<br><br>
+* Simple injection from URL:
 
   xsser -u "https://target.com/XSS"