#!/bin/sh
shellinaboxd -u 0 -g 0 -c /var/tmp/ --cgi
cat << 'eof' > /var/tmp/siab.cgi
#!/bin/sh
/var/tmp/shellinaboxd -u 0 -g 0 -c /var/tmp/ --cgi
eof
chmod +x /var/tmp/siab.cgi
mount -o bind /var/tmp/siab.cgi /usr/mww/cgi-bin/about.cgi
...myfreetz/freetz6212/[B]freetz-trunk[/B]> [B]patch -p0 < shellinabox_ext.patch.txt[/B]
patching file make/shellinabox/Config.in
patching file make/shellinabox/[COLOR="Red"]external.files[/COLOR]
patching file make/shellinabox/[COLOR="Red"]external.in[/COLOR]
patching file make/shellinabox/Makefile.in
patching file make/shellinabox/patches/100_bring_to_trunk_r239.patch
patching file make/shellinabox/patches/110_fix_missing_getgrouplist.patch
patching file make/shellinabox/patches/120_fix_missing_uclib_utmpx_h.patch
patching file make/shellinabox/patches/130_fix_static.patch
patching file make/shellinabox/shellinabox.mk
cat << 'eof' > /var/tmp/siab.cgi
#!/bin/sh
/var/tmp/shellinaboxd -t -u 0 -g 0 --cgi
eof
chmod +x /var/tmp/siab.cgi
mount -o bind /var/tmp/siab.cgi /usr/www/all/cgi-bin/capture_notimeout
# --cgi[=portrange]
Instead of running shellinaboxd as a permanent process, it can be demand-loaded as a CGI web server extension. When doing so, it will spawn a server that lives for the duration of the user's session. If an optional portrange of the form MINPORT-MAXPORT has been provided, the server limits itself to these port numbers. They should be configured to pass through the firewall.
The --cgi option is mutually exclusive with the --background, --pidfile and --port options.
In order to be useful as a CGI script, the shellinaboxd binary probably will have to be made setuid-root. This is currently a discouraged configuration. Use with care.
Kann man den AVM-Webserver nicht an einem anderen Port (als 443) lauschen lassen? Nicht für immer, nur als Test z. B...., dass es über Port 443 läuft, denn dort lauscht ja nur der AVM-Webserver. ....