简体   繁体   中英

Passing commands to shellinabox from java program

I have a Web page integrated with the shellinabox tool. where user can come in execute the UNIX commands from the browser.

I have some saved scripts which user can select and run. Is there any possibility to send UNIX commands to the shellinabox instance from JAVA program implicitly so that user can see the same in the VT emulator running in the browser.

for Eg: shellinabox --exec something like this

Its really a new area for me.

I wanted to make a running C program available on the web browser. This worked for me :

    shellinaboxd --service='/shell':'harshit':'harshit':'/home/harshit':'./a.out'

This made my program's executable a.out running and I could interact with it on the browser. The url was :

    localhost:4200/shell

Actually the syntax is :

    shellinaboxd --service=<service-url>:<username>:<group>:<home-directory>:<command>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM