tag:blogger.com,1999:blog-85402570477048077752024-03-12T23:41:50.093+01:00Kediad - Un composé technologiqueUn petit partage technologique de ce qu'on croiser, des découvertes, des tuto et des réflexions.Unknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8540257047704807775.post-50447256557753667082014-01-27T22:34:00.001+01:002014-01-28T16:35:31.249+01:00Shell in a box - le Shell web facile d'emploi<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-s8X-RlOvScg/UufMwV_SWTI/AAAAAAAADAM/VJSP7iytNFc/s1600/Terminal.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-s8X-RlOvScg/UufMwV_SWTI/AAAAAAAADAM/VJSP7iytNFc/s1600/Terminal.png" height="200" width="200" /></a></div>
<br />
<br />
Petit coup de projecteur sur ce web shell, facile d'emploi et de mise en mise en place</div>
<div>
<br /></div>
<div>
<a href="http://code.google.com/p/shellinabox/">http://code.google.com/p/shellinabox/</a></div>
<div>
<br /></div>
<div>
Celui-ci permet d’émuler un terminal et de le rendre accessible via un combo de javascript, Ajax et CSS, donc depuis n'importe quel navigateur web.</div>
<div>
<br /></div>
<div>
L'installation en 5 min :<br />
<br /></div>
<code type="bash">
linux1:/tmp # wget http://shellinabox.googlecode.com/files/shellinabox-2.14.tar.gz <br />
linux1:/tmp # tar -xvzf shellinabox-2.14.tar.gz <br />
linux1:/tmp # cd shellinabox-2.14/ <br />
linux1:/tmp/shellinabox-2.14 # ./configure <br />
linux1:/tmp/shellinabox-2.14 # make <br />
linux1:/tmp/shellinabox-2.14 # make install <br />
</code><br />
<div>
<br />
Et Voila c'est en place sur le serveur<br />
<br />
Pour lancer le shell de base :<br />
<br />
<code type="bash">
linux1:~# shellinaboxd
</code></div>
<br />
Le shell est maintenant accessible depuis n'importe quel navigateur web de la maniere suivante :<br />
<br />
http://ServeurIP:4200<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-RBQsZT_Rmtc/UuZ2_jUdj-I/AAAAAAAAC_k/cywgqZwqSeM/s1600/shellinabox.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-RBQsZT_Rmtc/UuZ2_jUdj-I/AAAAAAAAC_k/cywgqZwqSeM/s1600/shellinabox.PNG" height="285" width="640" /></a></div>
<br />
<br />
Il y a par la suite un paquet de possibilités possible.. Je m'explique ;)<br />
On peux très bien y enfermer une application ou un service, exemple ici avec un 'top'<br />
<br />
<code type="bash">
linux1:~# shellinaboxd -s /top:nobody:nobody:/:top</code>
<br />
<br />
maintenant on y accède en rajoutant /top a la fin de l'adresse<br />
<br />
http://ServeurIP:4200/top<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-PXpTaBBWNz0/UuaBMcYv7SI/AAAAAAAAC_8/_MGn7kaGPpo/s1600/shellinabox2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-PXpTaBBWNz0/UuaBMcYv7SI/AAAAAAAAC_8/_MGn7kaGPpo/s1600/shellinabox2.PNG" height="504" width="640" /></a></div>
<br />
Avec cette option le droit au login à été retiré, il suffit de l'option <code type="bash">"-s /:LOGIN"</code> pour le remettre.<br />
Il y a donc beaucoup d’utilités que ce soit pour isolé des utilisateurs ou des users. Le man est très bien fait :<br />
<br />
<a href="http://code.google.com/p/shellinabox/wiki/shellinaboxd_man">http://code.google.com/p/shellinabox/wiki/shellinaboxd_man</a><br />
<br />
Un très bon projet que je n'ai pas fini d'utiliser ;)<br />
<br />Unknownnoreply@blogger.com1