meihuabo / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

Not sure how to access shellinabox via lighttpd #241

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

I have run the shellinabox on my box.

ps -ef
root     16299 16294  0 01:56 pts/0    00:00:00 vi /etc/lighttpd/lighttpd_ssl.co
nobody   16373 12446  0 02:25 ttyS0    00:00:00 /bin/shellinaboxd
nobody   16374 16373  0 02:25 ttyS0    00:00:00 /bin/shellinaboxd
root     16378     1  0 02:25 ?        00:00:00 lighttpd -f lighttpd_ssl.conf
root     16379 16378  0 02:25 ?        00:00:00 /var/www/html/diag.fcgi
root     16380 16378  0 02:25 ?        00:00:00 /var/www/html/diag.fcgi
root     16381 16378  0 02:25 ?        00:00:00 /var/www/html/diag.fcgi
root     16382 16378  0 02:25 ?        00:00:00 /var/www/html/diag.fcgi
root     16383 12446  0 02:25 ttyS0    00:00:00 ps -ef

 netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
PID/Program name    
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      
16379/diag.fcgi
tcp        0      0 0.0.0.0:4200            0.0.0.0:*               LISTEN      
16373/shellinaboxd
tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      
16380/diag.fcgi
tcp        0      0 127.0.0.1:9002          0.0.0.0:*               LISTEN      
16381/diag.fcgi
tcp        0  

Have enabled mod_proxy within the lighttpd.conf file

#shellinabox
proxy.server = (
    "/shell" =>
    ( (
        "host" => "127.0.0.1",
        "port" => 4200
    ) )
)

#                               "mod_status",
#                               "mod_setenv",
                                "mod_fastcgi",
                                "mod_proxy",      //enabled
#                               "mod_simple_vhost",
#                               "mod_evhost",
#        

but still when i try to access https://64.103.161.140/shell i get a file not 
found.

Please help me out with this .

Original issue reported on code.google.com by soumya.p...@gmail.com on 24 Oct 2013 at 12:57

GoogleCodeExporter commented 9 years ago
P.S

i have used 
 SHELLINABOX_ARGS="--o-beep -s /:SSH:64.103.161.140 --localhost-only"
# 
# 
# /bin/shellinaboxd &

to start shellinabox

Original comment by soumya.p...@gmail.com on 25 Oct 2013 at 4:50

GoogleCodeExporter commented 9 years ago
I had a same problem with you. I just solved it by adding a slash to the URL. I 
your case, I think the URL "https://64.103.161.140/shell/" will work.

Original comment by chungh...@gmail.com on 17 Sep 2014 at 1:41