maurosoria / dirsearch

Web path scanner
11.85k stars 2.3k forks source link

Error #69

Closed Teicu closed 6 years ago

Teicu commented 6 years ago

Hi, can you help me please to fix this error? Thank you

raceback (most recent call last): File "./dirsearch.py", line 38, in main = Program() File "./dirsearch.py", line 34, in init self.controller = Controller(self.script_path, self.arguments, self.output) File "/root/dirsearch/lib/controller/Controller.py", line 134, in init self.wait() File "/root/dirsearch/lib/controller/Controller.py", line 330, in wait self.fuzzer.start() File "/root/dirsearch/lib/core/Fuzzer.py", line 80, in start self.setupScanners() File "/root/dirsearch/lib/core/Fuzzer.py", line 56, in setupScanners self.defaultScanner = Scanner(self.requester, self.testFailPath, "") File "/root/dirsearch/lib/core/Scanner.py", line 44, in init self.setup() File "/root/dirsearch/lib/core/Scanner.py", line 61, in setup self.dynamicParser = DynamicContentParser(self.requester, firstPath, firstResponse.body, secondResponse.body) File "/root/dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 14, in init self.generateDynamicMarks(firstPage, secondPage) File "/root/dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 31, in generateDynamicMarks self.cleanPage = self.removeDynamicContent(firstPage, self.dynamicMarks) File "/root/dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 94, in removeDynamicContent page = re.sub(r'(?s)%s.+%s' % (prefix, suffix), '%s%s' % (prefix, suffix), str(page)) File "/usr/lib/python3.5/re.py", line 182, in sub return _compile(pattern, flags).sub(repl, string, count) File "/usr/lib/python3.5/re.py", line 293, in _compile p = sre_compile.compile(pattern, flags) File "/usr/lib/python3.5/sre_compile.py", line 536, in compile p = sre_parse.parse(p, flags) File "/usr/lib/python3.5/sre_parse.py", line 834, in parse raise source.error("unbalanced parenthesis") sre_constants.error: unbalanced parenthesis at position 14

maurosoria commented 6 years ago

Need more info to reproduce it. Perhaps you can send me a html?

maurosoria commented 6 years ago

Pushed posible fix.