Comments (4)
Hi there, thank you for reporting this issue.
If you look at the network traffic using Wireshark for instance, do you see a response from the server on this request?
Maybe the server is slow to respond and the default timeout is not enough but you will see in Wireshark if that's the case.
from ajpy.
Hi, I just checked the sequence via Wireshark as requested. It looks like the TCP handshake completes, but then it looks like it tries to redeliver the initial AJP request until it hits the timeout:
from ajpy.
Hmmm I cannot reproduce with this version of Tomcat.
Can you try to read the web.xml of the root (without the webapp parameter)?
$ python tomcat.py read_file /WEB-INF/web.xml <VULNERABLE HOSTNAME>
from ajpy.
Same stack trace:
python tomcat.py read_file /WEB-INF/web.xml <VULNERABLE HOSTNAME>
Traceback (most recent call last):
File "tomcat.py", line 377, in <module>
hdrs, data = bf.perform_request("/" + args.webapp + "/xxxxx.jsp", attributes=attributes)
File "tomcat.py", line 153, in perform_request
responses = self.forward_request.send_and_receive(self.socket, self.stream)
File "/.../AJPy/ajpy/ajp.py", line 274, in send_and_receive
r = AjpResponse.receive(stream)
File "/.../AJPy/ajpy/ajp.py", line 380, in receive
r.parse(stream)
File "/.../AJPy/ajpy/ajp.py", line 337, in parse
self.magic, self.data_length, self.prefix_code = unpack(stream, ">HHb")
File "/.../AJPy/ajpy/ajp.py", line 44, in unpack
buf = stream.read(size)
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
TimeoutError: [Errno 60] Operation timed out
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
- ConnectionRefusedError HOT 5
- Bruteforce feature not compatible python3
- Missing requirements.txt HOT 1
- run error HOT 5
- 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.