Giter Site home page Giter Site logo

Tomcat password not found about changeme HOT 5 CLOSED

ztgrace avatar ztgrace commented on August 30, 2024
Tomcat password not found

from changeme.

Comments (5)

ztgrace avatar ztgrace commented on August 30, 2024

What version of Tomcat did you install? I think I've only tested against older versions like 5.5.

I like the idea of adding making the body a list instead of a string. It should be straight forward to change in in the schema.py, mkcred.py and then in the check_success method.

I'd be fine with not making the body text required as long as any supplied success criteria is "required" for that credential. So if you supplied both body and status, then we'd need to check both. So in your tomcat example, status and one of the body strings would need to match. But if you had a success like the code below, it would only check the status.

success:
    status: 200

How does that sound?

from changeme.

AlessandroZ avatar AlessandroZ commented on August 30, 2024

Yes I agree, if you add these two criteria, it has to check both.
I will try to do it soon and push you a pull request.

For the tomcat version, I have installed this one: 6.0.48.

from changeme.

ztgrace avatar ztgrace commented on August 30, 2024

Want to add the body string that matches your install of Tomcat?

from changeme.

AlessandroZ avatar AlessandroZ commented on August 30, 2024

Thanks for merging my pull request.

I think to avoid false positive, it's better to match only the reponse code 200 without matching strings. If you prefer to match strings, you can add it, but more tests with other instances has to be done. For me, the response code is sufficient.

I let you close this issue if you agree.

from changeme.

ztgrace avatar ztgrace commented on August 30, 2024

@AlessandroZ can you verify this bug is fixed with the master branch?

from changeme.

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.