zaburo / web-shell

Automatically exported from code.google.com/p/web-shell
0 stars 0 forks source link

Python backtrace when visiting URL #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start webshell.sh
2. Visit host:8022

What is the expected output? What do you see instead?
WebShell (https) at 0.0.0.0, port 8022
----------------------------------------
Exception happened during processing of request from ('172.26.0.111', 1214)
Traceback (most recent call last):
  File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.4/SocketServer.py", line 521, in __init__
    self.handle()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 299, in 
handle_one_request
    self.raw_requestline = self.rfile.readline()
  File "/usr/lib/python2.4/socket.py", line 332, in readline
    data = self._sock.recv(self._rbufsize)
Error: [('SSL routines', 'SSL23_GET_CLIENT_HELLO', 'http request')]
----------------------------------------

What version of the product are you using? On what operating system?
Latest SVN (rev 75)

Please provide any additional information below.
I'm on Gentoo Linux, was running Python 2.3.x, upgraded to 2.4

Have build python with ssl, and also have pyopenssl installed.

dev-dev-lang/python-2.4.4-r6, compiled iwith the following USE flags: 
USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -
examples -nocxx -nothreads -tk -ucs2"

Also using:
dev-python/pyopenssl-0.6

OpenSSL> version
OpenSSL 0.9.8d 28 Sep 2006

Original issue reported on code.google.com by nosatal...@gmail.com on 28 Feb 2008 at 8:41

GoogleCodeExporter commented 8 years ago
Oddly, this worked for me once. And now I get these errors over and over again. 
I had a request open in Safari 
(on my Macbookpro), then I opened one on my iPhone and now it's broken. even if 
I restart it, I can't open a 
single request. It would appear, based on the error that the program does not 
like having more than one request 
connecting at a time.

Original comment by jelw...@gmail.com on 17 Jul 2008 at 10:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
web-shell 0.9.6 from repository
pyopenssl 0.7 & pyopenssl 0.6
python 2.5.2 & python 2.4
linux 2.6.24-rt1

the same error...

Original comment by marcell....@gmail.com on 16 Sep 2008 at 6:48

GoogleCodeExporter commented 8 years ago
I've discovered this is what happens if you go to the http url instead of the 
https url.

Note that it shouldn't be http://host:port - you should use https://host:port

Original comment by pornbyp...@gmail.com on 3 Sep 2010 at 2:27

GoogleCodeExporter commented 8 years ago
I still get this error when using https://host:port
Python 2.7 and python2-pyopenssl on Arch Linux.

Original comment by Exceptio...@gmail.com on 7 Apr 2011 at 7:07