[2012#08#16]
Done it !
ssh.sh - no SSL. Totally unsecure.
telnet.sh - no SSL. Totally unsecure.
But i don't understand this "/:$(id -u):$(id -g)"
Didn't find this in shellinabox man.
Done it !
ssh.sh - no SSL. Totally unsecure.
Code:
#!/bin/bash
function connect {
shellinaboxd --cgi -t -s /:SSH:$parms
}
parms=$QUERY_STRING
connect
Code:
#!/bin/bash
#address in url must be in this syntax
#<aaa.bbb.ccc.ddd>:<port>
function connect {
shellinaboxd --cgi -t -s /:$(id -u):$(id -g):HOME:"telnet $telnet_address $telnet_port"
}
parms=$QUERY_STRING
telnet_address=`echo $parms|awk -F":" '{ print$1 }'`
telnet_port=`echo $parms|awk -F":" '{ print$2 }'`
connect
Didn't find this in shellinabox man.



last mentioned version vas 3.0....
Comment