--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+ <head>
+ <title>Welcome to Shell-In-A-Box</title>
+ </head>
+ <body bgcolor=#c0c0c0>
+ <center>
+ <script language=JavaScript1.2>
+ <!--
+ document.writeln("<applet code='com/shellinabox/ShellInABox.class'");
+ document.writeln(" align=center alt='ShellInABox' name='ShellInABox'");
+ if (typeof innerWidth == "undefined") {
+ document.writeln(" width='100%' height='100%'");
+ } else {
+ document.writeln(" width='" + innerWidth + "' height='" + innerHeight + "'");
+ }
+ document.writeln(" hiddenframe='hidden'");
+ document.writeln(" cookieurl='blank.html'>");
+ document.writeln(" <param name=hiddenframe value=hidden>");
+ document.writeln(" <param name=cookieurl value=blank.html>");
+ document.writeln(" <param name=cgi value=wrapper.cgi>");
+ document.writeln("</applet>");
+ //-->
+ </script>
+ <noscript>
+ <applet code='com/shellinabox/ShellInABox.class'
+ align=center alt='ShellInABox' name='ShellInABox'
+ width='100%' height='100%'
+ hiddenframe='hidden'
+ cookieurl='blank.html'>
+ <param name=hiddenframe value=hidden>
+ <param name=cookieurl value=blank.html>
+ </applet>
+ </noscript>
+ <center>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+ <head>
+ <title></title>
+ </head>
+ <body bgcolor=#c0c0c0>
+ <!-- COOKIES ${COOKIE}; ${HTTP_COOKIE}; -->
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+ <head>
+ <title>Welcome to Shell-In-A-Box</title>
+ </head>
+ <body bgcolor=#c0c0c0>
+ <center>
+ <script language=JavaScript1.2>
+ <!--
+ document.writeln("<applet code='com/shellinabox/ShellInABox.class'");
+ document.writeln(" align=center alt='ShellInABox' name='ShellInABox'");
+ if (typeof innerWidth == "undefined") {
+ document.writeln(" width='100%' height='100%'");
+ } else {
+ document.writeln(" width='" + innerWidth + "' height='" + innerHeight + "'");
+ }
+ document.writeln(" hiddenframe='hidden'");
+ document.writeln(" cookieurl='blank.html'>");
+ document.writeln(" <param name=hiddenframe value=hidden>");
+ document.writeln(" <param name=cookieurl value=blank.html>");
+ document.writeln("</applet>");
+ //-->
+ </script>
+ <noscript>
+ <applet code='com/shellinabox/ShellInABox.class'
+ align=center alt='ShellInABox' name='ShellInABox'
+ width='100%' height='100%'
+ hiddenframe='hidden'
+ cookieurl='blank.html'>
+ <param name=hiddenframe value=hidden>
+ <param name=cookieurl value=blank.html>
+ </applet>
+ </noscript>
+ <center>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+ <head>
+ <title></title>
+ </head>
+ <body bgcolor=#c0c0c0>
+ <!-- COOKIES ${COOKIE}; ${HTTP_COOKIE}; -->
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+ <head>
+ <title>Welcome to Shell-In-A-Box</title>
+ </head>
+ <frameset rows="*,0" border=0>
+ <frame src=${RELATIVE_SCRIPT_NAME}applet.html name=applet noresize scrolling=no border=no marginwidth=0 marginheight=0>
+ <frame src=${RELATIVE_SCRIPT_NAME}blank.html name=hidden noresize scrolling=no border=no marginwidth=0 marginheight=0>
+ </frameset>
+ <noframes>
+ <body bgcolor=#c0c0c0>
+ <center>
+ <script language=JavaScript1.2>
+ <!--
+ document.writeln("<applet code='com/shellinabox/ShellInABox.class'");
+ document.writeln(" align=center alt='ShellInABox' name='ShellInABox'");
+ if (typeof innerWidth == "undefined") {
+ document.writeln(" width='100%' height='100%'");
+ } else {
+ document.writeln(" width='" + innerWidth + "' height='" + innerHeight + "'");
+ }
+ document.writeln(" hiddenframe=''");
+ document.writeln(" <param name=hiddenframe value=''>");
+ document.writeln("</applet>");
+ //-->
+ </script>
+ <noscript>
+ <applet code='com/shellinabox/ShellInABox.class'
+ align=center alt='ShellInABox' name='ShellInABox'
+ width='100%' height='100%'
+ hiddenframe=''>
+ <param name=hiddenframe value=''>
+ </applet>
+ </noscript>
+ <center>
+ </body>
+ </noframes>
+</html>
--- /dev/null
+#!/usr/local/bin/perl
+# index.cgi
+# Display the shell-in-a-box pages
+
+BEGIN { push(@INC, ".."); };
+use WebminCore;
+&init_config();
+
+chop($hw = `uname -m`);
+$hw =~ /(86|x86_64)$/ || &error($text{'index_ecpu'});
+system("chmod 6755 cgi-bin/shellinabox.data/shellinaboxd");
+system("rm -f cgi-bin/shellinabox.data/shellinabox.socket");
+
+&PrintHeader();
+print <<EOF;
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+ <head>
+ <title>Welcome to Shell-In-A-Box</title>
+ </head>
+ <frameset rows="*,0" border=0>
+ <frame src=applet.html name=applet noresize scrolling=no border=no marginwidth=0 marginheight=0>
+ <frame src=blank.html name=hidden noresize scrolling=no border=no marginwidth=0 marginheight=0>
+ </frameset>
+ <noframes>
+ <body bgcolor=#c0c0c0>
+ <center>
+ <script language=JavaScript1.2>
+ <!--
+ document.writeln("<applet code='com/shellinabox/ShellInABox.class'");
+ document.writeln(" align=center alt='ShellInABox' name='ShellInABox'");
+ if (typeof innerWidth == "undefined") {
+ document.writeln(" width='100%' height='100%'");
+ } else {
+ document.writeln(" width='" + innerWidth + "' height='" + innerHeight + "'");
+ }
+ document.writeln(" hiddenframe=''");
+ document.writeln(" <param name=hiddenframe value=''>");
+ document.writeln("</applet>");
+ //-->
+ </script>
+ <noscript>
+ <applet code='com/shellinabox/ShellInABox.class'
+ align=center alt='ShellInABox' name='ShellInABox'
+ width='100%' height='100%'
+ hiddenframe=''>
+ <param name=hiddenframe value=''>
+ </applet>
+ </noscript>
+ <center>
+ </body>
+ </noframes>
+</html>
+EOF
+
--- /dev/null
+index_ecpu=This module only runs on x86 Linux systems.
--- /dev/null
+name=Shell
+desc=Shell In A Box
+os_support=*-linux
+version=0.3
+depends=1.480
--- /dev/null
+#!/usr/bin/perl -U
+
+@uinfo = getpwnam("nobody");
+($(, $)) = ( $uinfo[3], "$uinfo[3] $uinfo[3]" );
+($<, $>) = ( $uinfo[2], $uinfo[2] );
+$ENV{'USER'} = "nobody";
+#exec("strace -f cgi-bin/shellinabox.cgi 2>/tmp/trace.out");
+exec("cgi-bin/shellinabox.cgi");
+print "Content-type: text/plain\n\n";
+print "exec failed : $!\n";
+