Comments (5)
def unpack(stream, fmt):
print stream, fmt
size = struct.calcsize(fmt)
print size
buf = stream.read(size)
print buf
if "" in buf:
print "error"
return struct.unpack(fmt, buf)
from ajpy.
I'm sorry but I don't understand your issue. Please provide more information:
- Have you tested with Python 3?
- Which version of tomcat are you trying to communicate with?
- What is your actual issue?
You just put some code and stacktrace without any kind of context, I can't help you with so little information.
from ajpy.
oh, i am not test with python 3.
Apache Tomcat/Coyote JSP engine 1.1:nmap scan result(it is not my server): Apache Tomcat/Coyote JSP engine 1.1
def unpack(stream, fmt): print stream, fmt size = struct.calcsize(fmt) print size buf = stream.read(size) print buf if "" in buf: print "error" return struct.unpack(fmt, buf)
stream: <socket._fileobject object at 0x7f4b45690ad0>
fmt: >HHb
size: 5
buf: ''ps:empty
buf: it is empty
Now how to modify the code to make it work properly?
from ajpy.
Hi, if you see "Apache Tomcat/Coyote JSP engine 1.1" in your nmap output it means it's an Apache HTTP server with mod_jk loaded so it is not AJP but HTTP. AJP usually is exposed on port 8009 and nmap will tell you 'Apache Jserv (Protocol v1.3)' instead.
AJPy only uses the AJP protocol, not the HTTP which is already supported by, any other web tool I would say.
from ajpy.
oh, it is all my fault, I thought they were the same.
Thank you very much!
from ajpy.
Related Issues (17)
- Create a pip package HOT 5
- Failed to get CSRF token. HOT 5
- Submit a bug HOT 2
- NotImplementedError HOT 4
- Timeout error when using "read_file" functionality HOT 4
- ConnectionRefusedError HOT 5
- Bruteforce feature not compatible python3
- Missing requirements.txt HOT 1
- Purpose to update the README.md HOT 3
- WATCH OUT! use ajp read_file, the target is down!!! HOT 3
- two question about read file HOT 1
- Fix POST method support HOT 1
- Add support to other application containers HOT 1
- Large WAR files upload not working
- License unclear HOT 10
- Unable to read response content when HTTP_METHOD==POST. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ajpy.