ibmendoza / shellinabox

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

How is Shellinabox embeded into a html page? #253

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sorry if this isn't the place to ask this question, I couldn't find anywhere 
else. Anyway, I really want to embed shellinabox into another webpage, like 
they seem to have done on the project's homepage.. How does one accomplish this?

Original issue reported on code.google.com by mr.l.verity on 19 Jan 2014 at 5:01

GoogleCodeExporter commented 9 years ago
It's done using an iframe, eg:

<iframe src="http://demos.anyterm.org/shellinabox_nano/" id="gadget0" 
name="gadget0" frameborder="1" height="500" width="720"></iframe>

Original comment by Sean....@gmail.com on 6 Feb 2014 at 9:38

GoogleCodeExporter commented 9 years ago
Ah.. So far I've only been managing to get shellinabox running standalone; I 
don't have any special apache config or anything like that.. I think I had 
trouble putting something like that together, would have to try again to 
remember what the issue is I suppose. Doesn't particularly help that firewall 
restrictions force me to use port 80... But I digress, thanks for your answer :)

Original comment by bensutto...@gmail.com on 6 Feb 2014 at 9:42

GoogleCodeExporter commented 9 years ago
Oops, should mention that I originally submitted this report from the wrong 
google account; OP and I are in fact the same person.

Original comment by bensutto...@gmail.com on 6 Feb 2014 at 9:44

GoogleCodeExporter commented 9 years ago
Don't know about apache, but in nginx and you just put this inside the site 
block and shellinabox is on http://example.org/sib/

location /sib/
{
    proxy_pass http://127.0.0.1:4200;                                               
} 

Original comment by Sean....@gmail.com on 6 Feb 2014 at 9:55

GoogleCodeExporter commented 9 years ago
I see if I can get it working later today, though I'd prefer to use the Monkey 
httpd daemon, because that's what I already have running on my pi, but I don't 
know if it has all the necessary features and I'm not very good with webserver 
stuff right now. 

So, if I have shellinabox running on port 4200, and I have a web server on port 
80, would I be able to use sib with the method you just gave on a network that 
only lets me access outgoing port 80?

Original comment by bensutto...@gmail.com on 7 Feb 2014 at 6:38