Coder Social home page Coder Social logo

ConnectionRefusedError about ajpy HOT 5 CLOSED

hypn0s avatar hypn0s commented on June 10, 2024
ConnectionRefusedError

from ajpy.

Comments (5)

hypn0s avatar hypn0s commented on June 10, 2024

Hi @dattachandan ,

As I can see from your commands, you don't set the optional argument correctly. The port flag should be set before the IP address:
python tomcat.py version --port 20022 10.2.2.11

The same thing applies to the version and list commands. By default, the TCP port 8009 is used.

from ajpy.

dattachandan avatar dattachandan commented on June 10, 2024

Thanks, tried but gives a different error


python tomcat.py version --port 20022 10.2.2.11
usage: tomcat.py [-h] [--port PORT] [-v]
                 {bf,upload,undeploy,version,list,read_file} ... target
tomcat.py: error: unrecognized arguments: --port 20022

from ajpy.

hypn0s avatar hypn0s commented on June 10, 2024

Sorry, I was completely wrong, as you can see from the provided usage:

python tomcat.py --port 20022 version 10.2.2.11

argparse sucks with subparsers...

from ajpy.

dattachandan avatar dattachandan commented on June 10, 2024

Thanks, that worked.

Does this output mean the tomcat is patched without this CVE issue?

python tomcat.py  --port 9009 version 10.2.2.173
No data in response. Headers:
 {'data_length': 10,
 'http_status_code': 200,
 'http_status_msg': b'OK',
 'magic': 16706,
 'num_headers': 0,
 'prefix_code': 4,
 'response_headers': {}}
None

from ajpy.

hypn0s avatar hypn0s commented on June 10, 2024

This only means the version could not be retrieved, as in not included in the pages.

from ajpy.

Related Issues (17)

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.