wasim21k / web-shell

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

problems with python #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
followed installation instructions on:
SunOS  5.8 Generic_117350-33 
sun4u sparc SUNW,Sun-Fire-280R

OpenSSL> version
OpenSSL 0.9.8a 11 Oct 2005

bash-2.03# ./webshell.py
The python SSL extensions seem to be not installed.
You can run WebShell without SSL encryption with the --ssl-disable command 
line switch.
bash-2.03# ./webshell.py --ssl-disable
WebShell (http) at 127.0.0.1, port 8022
(just hangs here)

What is the expected output? 
i would assume the script should end and then i should be listening to 
port 8022

What do you see instead? it just hangs. when i process the python code and 
look at debugging i see this:
(Pdb)
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/pdb.py", line 1193, in main
    pdb._runscript(mainpyfile)
  File "/usr/local/lib/python2.5/pdb.py", line 1118, in _runscript
    self.run(statement, globals=globals_, locals=locals_)
  File "/usr/local/lib/python2.5/bdb.py", line 366, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "webshell.py", line 27, in <module>
    os.chdir(os.path.normpath(os.path.dirname(__file__)))
NameError: name '__file__' is not defined
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program

What version of the product are you using? On what operating system?
SunOS  5.8 Generic_117350-33 
sun4u sparc SUNW,Sun-Fire-280R

trying: WebShell 0.9.5

Original issue reported on code.google.com by madd...@gmail.com on 8 Aug 2007 at 2:06

GoogleCodeExporter commented 9 years ago
it does look like the server is listening to port 8022
however when i load the webshell.html nothing happens.
all i see is the black background.

Original comment by madd...@gmail.com on 8 Aug 2007 at 3:01

GoogleCodeExporter commented 9 years ago
any suggestions?

Original comment by madd...@gmail.com on 10 Aug 2007 at 11:05

GoogleCodeExporter commented 9 years ago
It seems webshell has a problem with python on solaris, it does not know about 
the __file__ variable. I will try to 
fix this.

Original comment by mre...@gmail.com on 19 Sep 2007 at 5:41

GoogleCodeExporter commented 9 years ago
was this ever resolved? I am getting the same problem with solaris 10.

Thanks,
   -Steve

Original comment by darkav...@gmail.com on 22 Feb 2008 at 5:23

GoogleCodeExporter commented 9 years ago
OpenBSD 4.0 GENERIC#1107 i386

Python 2.4.3

OpenSSL 0.9.7j 04 May 2006

# python webshell.py
Traceback (most recent call last):
  File "webshell.py", line 1417, in ?
    main()
  File "webshell.py", line 1401, in main
    httpd = SecureHTTPServer(server_address, WebShellRequestHandler, o.cmd, o.term,
o.ssl_enabled, o.ssl_cert)
  File "webshell.py", line 1310, in __init__
    ctx.use_certificate_chain_file(ssl_cert)
AttributeError: use_certificate_chain_file

The server does function as expected when ssl is disabled.

Original comment by chuck.ba...@gmail.com on 26 Feb 2008 at 9:02

GoogleCodeExporter commented 9 years ago
Problem also encountered on Centos5 with python installed.

Original comment by meh0...@gmail.com on 19 Aug 2008 at 6:28

GoogleCodeExporter commented 9 years ago
Do you have python-openssl installed on your machines (Solaris, CentOS and 
others)? 

Try to locate a file named 
python-support/python-openssl/python2.5/OpenSSL/SSL.so on
your system (that's a fragment of full pathname which can differ from system to
system). If you don't have this, you probably need to install python-openssl 
first.

Also, did you generate a key and certificate into webshell.pem using 
make_certificate.sh?
If that doesn't work you can always generate the key and certificate manually if
you're familiar with OpenSSL command line tools.

Also, there was a fix released for an issue with WebShell locking up (see issue 
43).
Versions 0.9.6 and later don't have that problem anymore.

Original comment by aleksand...@gmail.com on 21 Oct 2008 at 9:43

GoogleCodeExporter commented 9 years ago
For CentOS5, if you get a "The python SSL extensions seem to be not installed."
message you need to install the "pyOpenSSL" package (yum install pyOpenSSL).

Original comment by dave....@gmail.com on 2 Dec 2009 at 12:23