Coder Social home page Coder Social logo

Comments (8)

maurosoria avatar maurosoria commented on August 27, 2024

I pushed a possible fix. Try fix_75 branch. I need feedback to fixing this problem

git clone https://github.com/maurosoria/dirsearch -b fix_75

Thanks

from dirsearch.

jjruiz avatar jjruiz commented on August 27, 2024

Thank you for your response.

Applying that fix I get the following error:

Traceback (most recent call last):
  File "dirsearch.py", line 38, in <module>
    main = Program()
  File "dirsearch.py", line 34, in __init__
    self.controller = Controller(self.script_path, self.arguments, self.output)
  File "dirsearch/lib/controller/Controller.py", line 135, in __init__
    self.wait()
  File "dirsearch/lib/controller/Controller.py", line 334, in wait
    self.fuzzer.start()
  File "dirsearch/lib/core/Fuzzer.py", line 80, in start
    self.setupScanners()
  File "dirsearch/lib/core/Fuzzer.py", line 56, in setupScanners
    self.defaultScanner = Scanner(self.requester, self.testFailPath, "")
  File "dirsearch/lib/core/Scanner.py", line 44, in __init__
    self.setup()
  File "dirsearch/lib/core/Scanner.py", line 61, in setup
    self.dynamicParser = DynamicContentParser(self.requester, firstPath, firstResponse.body, secondResponse.body)
  File "dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 16, in __init__
    self.generateDynamicMarks(firstPage, secondPage)
  File "dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 33, in generateDynamicMarks
    self.cleanPage = self.removeDynamicContent(firstPage, self.dynamicMarks)
  File "dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 86, in removeDynamicContent
    encoding = chardet.detect(page)['encoding']
NameError: name 'chardet' is not defined

from dirsearch.

maurosoria avatar maurosoria commented on August 27, 2024

Run a
git pull
and try again

from dirsearch.

maurosoria avatar maurosoria commented on August 27, 2024

?????

from dirsearch.

zerodaykb avatar zerodaykb commented on August 27, 2024

I had same error.
On branch fix_75 there is:

File "dirsearch.py", line 38, in <module>
    main = Program()
  File "dirsearch.py", line 34, in __init__
    self.controller = Controller(self.script_path, self.arguments, self.output)
  File "/my_private_absolute_path/dirsearch/lib/controller/Controller.py", line 135, in __init__
    self.wait()
  File "/my_private_absolute_path/dirsearch/lib/controller/Controller.py", line 334, in wait
    self.fuzzer.start()
  File "/my_private_absolute_path/dirsearch/lib/core/Fuzzer.py", line 80, in start
    self.setupScanners()
  File "/my_private_absolute_path/dirsearch/lib/core/Fuzzer.py", line 57, in setupScanners
    self.scanners['/'] = Scanner(self.requester, self.testFailPath, "/")
  File "/my_private_absolute_path/dirsearch/lib/core/Scanner.py", line 44, in __init__
    self.setup()
  File "/my_private_absolute_path/dirsearch/lib/core/Scanner.py", line 61, in setup
    self.dynamicParser = DynamicContentParser(self.requester, firstPath, firstResponse.body, secondResponse.body)
  File "/my_private_absolute_path/dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 16, in __init__
    self.generateDynamicMarks(firstPage, secondPage)
  File "/my_private_absolute_path/dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 33, in generateDynamicMarks
    self.cleanPage = self.removeDynamicContent(firstPage, self.dynamicMarks)
  File "/my_private_absolute_path/dirsearch/thirdparty/sqlmap/DynamicContentParser.py", line 91, in removeDynamicContent
    suffix = suffix.decode(encoding, errors='replace')
AttributeError: 'NoneType' object has no attribute 'decode'

from dirsearch.

maurosoria avatar maurosoria commented on August 27, 2024

I've just pushed a possible patch for that bug. I can't reproduce the error, so I'm not sure it will work...

from dirsearch.

zerodaykb avatar zerodaykb commented on August 27, 2024

It works. :)

from dirsearch.

maurosoria avatar maurosoria commented on August 27, 2024

Finally ! :)

from dirsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.