Check in shell-in-a-box module
authorJamie Cameron <jcameron@webmin.com>
Tue, 17 Nov 2009 23:25:00 +0000 (15:25 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 17 Nov 2009 23:25:00 +0000 (15:25 -0800)
47 files changed:
shellinabox/applet.html [new file with mode: 0644]
shellinabox/blank.html [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.cgi [new file with mode: 0755]
shellinabox/cgi-bin/shellinabox.data/applet.html [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.data/beep.au [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.data/blank.html [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt.gz [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.data/shellinabox.html [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.data/shellinabox.zip [new file with mode: 0644]
shellinabox/cgi-bin/shellinabox.data/shellinaboxd [new file with mode: 0755]
shellinabox/com/shellinabox/ShellInABox$1.class [new file with mode: 0644]
shellinabox/com/shellinabox/ShellInABox$AppletPanel.class [new file with mode: 0644]
shellinabox/com/shellinabox/ShellInABox$ConsoleArea.class [new file with mode: 0644]
shellinabox/com/shellinabox/ShellInABox.class [new file with mode: 0644]
shellinabox/com/shellinabox/clipboard/Clipboard$Helper.class [new file with mode: 0644]
shellinabox/com/shellinabox/clipboard/Clipboard.class [new file with mode: 0644]
shellinabox/com/shellinabox/clipboard/ClipboardOwner.class [new file with mode: 0644]
shellinabox/com/shellinabox/console/Console$ConsoleScrollbar.class [new file with mode: 0644]
shellinabox/com/shellinabox/console/Console$ScrollMonitor.class [new file with mode: 0644]
shellinabox/com/shellinabox/console/Console.class [new file with mode: 0644]
shellinabox/com/shellinabox/console/VectorFont$Helper.class [new file with mode: 0644]
shellinabox/com/shellinabox/console/VectorFont.class [new file with mode: 0644]
shellinabox/com/shellinabox/console/VectorFontConsole.class [new file with mode: 0644]
shellinabox/com/shellinabox/dialogs/ComboBox$Helper.class [new file with mode: 0644]
shellinabox/com/shellinabox/dialogs/ComboBox.class [new file with mode: 0644]
shellinabox/com/shellinabox/dialogs/ConfigurationDialog.class [new file with mode: 0644]
shellinabox/com/shellinabox/emulation/UnicodeMap.class [new file with mode: 0644]
shellinabox/com/shellinabox/emulation/VT102.class [new file with mode: 0644]
shellinabox/com/shellinabox/persistent/Configuration.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/GuiObject.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/HttpThread.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/PrepareConnectionThread.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/SessionObject.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/SubmitDataThread.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/Tunnel.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/TunnelConstants.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/TunnelException.class [new file with mode: 0644]
shellinabox/com/shellinabox/tunnel/TunnelUtility.class [new file with mode: 0644]
shellinabox/images/icon.gif [new file with mode: 0644]
shellinabox/images/smallicon.gif [new file with mode: 0644]
shellinabox/index.cgi [new file with mode: 0755]
shellinabox/lang/en [new file with mode: 0644]
shellinabox/module.info [new file with mode: 0644]
shellinabox/shellinabox.fnt [new file with mode: 0644]
shellinabox/shellinabox.fnt.gz [new file with mode: 0644]
shellinabox/wrapper.cgi [new file with mode: 0755]

diff --git a/shellinabox/applet.html b/shellinabox/applet.html
new file mode 100644 (file)
index 0000000..b3b7d1e
--- /dev/null
@@ -0,0 +1,37 @@
+<!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>
diff --git a/shellinabox/blank.html b/shellinabox/blank.html
new file mode 100644 (file)
index 0000000..9782fcc
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+  <head>
+    <title></title>
+  </head>
+  <body bgcolor=#c0c0c0>
+  <!-- COOKIES ${COOKIE}; ${HTTP_COOKIE}; -->
+  </body>
+</html>
diff --git a/shellinabox/cgi-bin/shellinabox.cgi b/shellinabox/cgi-bin/shellinabox.cgi
new file mode 100755 (executable)
index 0000000..22f9254
Binary files /dev/null and b/shellinabox/cgi-bin/shellinabox.cgi differ
diff --git a/shellinabox/cgi-bin/shellinabox.data/applet.html b/shellinabox/cgi-bin/shellinabox.data/applet.html
new file mode 100644 (file)
index 0000000..f89929f
--- /dev/null
@@ -0,0 +1,36 @@
+<!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>
diff --git a/shellinabox/cgi-bin/shellinabox.data/beep.au b/shellinabox/cgi-bin/shellinabox.data/beep.au
new file mode 100644 (file)
index 0000000..8005f22
Binary files /dev/null and b/shellinabox/cgi-bin/shellinabox.data/beep.au differ
diff --git a/shellinabox/cgi-bin/shellinabox.data/blank.html b/shellinabox/cgi-bin/shellinabox.data/blank.html
new file mode 100644 (file)
index 0000000..9782fcc
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+  <head>
+    <title></title>
+  </head>
+  <body bgcolor=#c0c0c0>
+  <!-- COOKIES ${COOKIE}; ${HTTP_COOKIE}; -->
+  </body>
+</html>
diff --git a/shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt b/shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt
new file mode 100644 (file)
index 0000000..0e3f8da
Binary files /dev/null and b/shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt differ
diff --git a/shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt.gz b/shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt.gz
new file mode 100644 (file)
index 0000000..a32815a
Binary files /dev/null and b/shellinabox/cgi-bin/shellinabox.data/shellinabox.fnt.gz differ
diff --git a/shellinabox/cgi-bin/shellinabox.data/shellinabox.html b/shellinabox/cgi-bin/shellinabox.data/shellinabox.html
new file mode 100644 (file)
index 0000000..d49d1bf
--- /dev/null
@@ -0,0 +1,38 @@
+<!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>
diff --git a/shellinabox/cgi-bin/shellinabox.data/shellinabox.zip b/shellinabox/cgi-bin/shellinabox.data/shellinabox.zip
new file mode 100644 (file)
index 0000000..b905649
Binary files /dev/null and b/shellinabox/cgi-bin/shellinabox.data/shellinabox.zip differ
diff --git a/shellinabox/cgi-bin/shellinabox.data/shellinaboxd b/shellinabox/cgi-bin/shellinabox.data/shellinaboxd
new file mode 100755 (executable)
index 0000000..648ac2e
Binary files /dev/null and b/shellinabox/cgi-bin/shellinabox.data/shellinaboxd differ
diff --git a/shellinabox/com/shellinabox/ShellInABox$1.class b/shellinabox/com/shellinabox/ShellInABox$1.class
new file mode 100644 (file)
index 0000000..00dece2
Binary files /dev/null and b/shellinabox/com/shellinabox/ShellInABox$1.class differ
diff --git a/shellinabox/com/shellinabox/ShellInABox$AppletPanel.class b/shellinabox/com/shellinabox/ShellInABox$AppletPanel.class
new file mode 100644 (file)
index 0000000..037cf14
Binary files /dev/null and b/shellinabox/com/shellinabox/ShellInABox$AppletPanel.class differ
diff --git a/shellinabox/com/shellinabox/ShellInABox$ConsoleArea.class b/shellinabox/com/shellinabox/ShellInABox$ConsoleArea.class
new file mode 100644 (file)
index 0000000..a249975
Binary files /dev/null and b/shellinabox/com/shellinabox/ShellInABox$ConsoleArea.class differ
diff --git a/shellinabox/com/shellinabox/ShellInABox.class b/shellinabox/com/shellinabox/ShellInABox.class
new file mode 100644 (file)
index 0000000..abeaf30
Binary files /dev/null and b/shellinabox/com/shellinabox/ShellInABox.class differ
diff --git a/shellinabox/com/shellinabox/clipboard/Clipboard$Helper.class b/shellinabox/com/shellinabox/clipboard/Clipboard$Helper.class
new file mode 100644 (file)
index 0000000..24bf97e
Binary files /dev/null and b/shellinabox/com/shellinabox/clipboard/Clipboard$Helper.class differ
diff --git a/shellinabox/com/shellinabox/clipboard/Clipboard.class b/shellinabox/com/shellinabox/clipboard/Clipboard.class
new file mode 100644 (file)
index 0000000..64c67f4
Binary files /dev/null and b/shellinabox/com/shellinabox/clipboard/Clipboard.class differ
diff --git a/shellinabox/com/shellinabox/clipboard/ClipboardOwner.class b/shellinabox/com/shellinabox/clipboard/ClipboardOwner.class
new file mode 100644 (file)
index 0000000..7fd86ce
Binary files /dev/null and b/shellinabox/com/shellinabox/clipboard/ClipboardOwner.class differ
diff --git a/shellinabox/com/shellinabox/console/Console$ConsoleScrollbar.class b/shellinabox/com/shellinabox/console/Console$ConsoleScrollbar.class
new file mode 100644 (file)
index 0000000..8607cc9
Binary files /dev/null and b/shellinabox/com/shellinabox/console/Console$ConsoleScrollbar.class differ
diff --git a/shellinabox/com/shellinabox/console/Console$ScrollMonitor.class b/shellinabox/com/shellinabox/console/Console$ScrollMonitor.class
new file mode 100644 (file)
index 0000000..44e761b
Binary files /dev/null and b/shellinabox/com/shellinabox/console/Console$ScrollMonitor.class differ
diff --git a/shellinabox/com/shellinabox/console/Console.class b/shellinabox/com/shellinabox/console/Console.class
new file mode 100644 (file)
index 0000000..55e5dac
Binary files /dev/null and b/shellinabox/com/shellinabox/console/Console.class differ
diff --git a/shellinabox/com/shellinabox/console/VectorFont$Helper.class b/shellinabox/com/shellinabox/console/VectorFont$Helper.class
new file mode 100644 (file)
index 0000000..92c3cf4
Binary files /dev/null and b/shellinabox/com/shellinabox/console/VectorFont$Helper.class differ
diff --git a/shellinabox/com/shellinabox/console/VectorFont.class b/shellinabox/com/shellinabox/console/VectorFont.class
new file mode 100644 (file)
index 0000000..0ee3c9d
Binary files /dev/null and b/shellinabox/com/shellinabox/console/VectorFont.class differ
diff --git a/shellinabox/com/shellinabox/console/VectorFontConsole.class b/shellinabox/com/shellinabox/console/VectorFontConsole.class
new file mode 100644 (file)
index 0000000..f7c36a2
Binary files /dev/null and b/shellinabox/com/shellinabox/console/VectorFontConsole.class differ
diff --git a/shellinabox/com/shellinabox/dialogs/ComboBox$Helper.class b/shellinabox/com/shellinabox/dialogs/ComboBox$Helper.class
new file mode 100644 (file)
index 0000000..2661f45
Binary files /dev/null and b/shellinabox/com/shellinabox/dialogs/ComboBox$Helper.class differ
diff --git a/shellinabox/com/shellinabox/dialogs/ComboBox.class b/shellinabox/com/shellinabox/dialogs/ComboBox.class
new file mode 100644 (file)
index 0000000..ce62c4a
Binary files /dev/null and b/shellinabox/com/shellinabox/dialogs/ComboBox.class differ
diff --git a/shellinabox/com/shellinabox/dialogs/ConfigurationDialog.class b/shellinabox/com/shellinabox/dialogs/ConfigurationDialog.class
new file mode 100644 (file)
index 0000000..a2f94fb
Binary files /dev/null and b/shellinabox/com/shellinabox/dialogs/ConfigurationDialog.class differ
diff --git a/shellinabox/com/shellinabox/emulation/UnicodeMap.class b/shellinabox/com/shellinabox/emulation/UnicodeMap.class
new file mode 100644 (file)
index 0000000..c6ff69d
Binary files /dev/null and b/shellinabox/com/shellinabox/emulation/UnicodeMap.class differ
diff --git a/shellinabox/com/shellinabox/emulation/VT102.class b/shellinabox/com/shellinabox/emulation/VT102.class
new file mode 100644 (file)
index 0000000..7886ec4
Binary files /dev/null and b/shellinabox/com/shellinabox/emulation/VT102.class differ
diff --git a/shellinabox/com/shellinabox/persistent/Configuration.class b/shellinabox/com/shellinabox/persistent/Configuration.class
new file mode 100644 (file)
index 0000000..47dea5e
Binary files /dev/null and b/shellinabox/com/shellinabox/persistent/Configuration.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/GuiObject.class b/shellinabox/com/shellinabox/tunnel/GuiObject.class
new file mode 100644 (file)
index 0000000..88122bb
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/GuiObject.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/HttpThread.class b/shellinabox/com/shellinabox/tunnel/HttpThread.class
new file mode 100644 (file)
index 0000000..69c43fa
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/HttpThread.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/PrepareConnectionThread.class b/shellinabox/com/shellinabox/tunnel/PrepareConnectionThread.class
new file mode 100644 (file)
index 0000000..80f3cd3
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/PrepareConnectionThread.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/SessionObject.class b/shellinabox/com/shellinabox/tunnel/SessionObject.class
new file mode 100644 (file)
index 0000000..beb40bb
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/SessionObject.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/SubmitDataThread.class b/shellinabox/com/shellinabox/tunnel/SubmitDataThread.class
new file mode 100644 (file)
index 0000000..fd0a20b
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/SubmitDataThread.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/Tunnel.class b/shellinabox/com/shellinabox/tunnel/Tunnel.class
new file mode 100644 (file)
index 0000000..799663f
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/Tunnel.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/TunnelConstants.class b/shellinabox/com/shellinabox/tunnel/TunnelConstants.class
new file mode 100644 (file)
index 0000000..906c907
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/TunnelConstants.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/TunnelException.class b/shellinabox/com/shellinabox/tunnel/TunnelException.class
new file mode 100644 (file)
index 0000000..0563413
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/TunnelException.class differ
diff --git a/shellinabox/com/shellinabox/tunnel/TunnelUtility.class b/shellinabox/com/shellinabox/tunnel/TunnelUtility.class
new file mode 100644 (file)
index 0000000..cfda0f5
Binary files /dev/null and b/shellinabox/com/shellinabox/tunnel/TunnelUtility.class differ
diff --git a/shellinabox/images/icon.gif b/shellinabox/images/icon.gif
new file mode 100644 (file)
index 0000000..10eb893
Binary files /dev/null and b/shellinabox/images/icon.gif differ
diff --git a/shellinabox/images/smallicon.gif b/shellinabox/images/smallicon.gif
new file mode 100644 (file)
index 0000000..4602bcf
Binary files /dev/null and b/shellinabox/images/smallicon.gif differ
diff --git a/shellinabox/index.cgi b/shellinabox/index.cgi
new file mode 100755 (executable)
index 0000000..8d431b0
--- /dev/null
@@ -0,0 +1,55 @@
+#!/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
+
diff --git a/shellinabox/lang/en b/shellinabox/lang/en
new file mode 100644 (file)
index 0000000..cd4cd0d
--- /dev/null
@@ -0,0 +1 @@
+index_ecpu=This module only runs on x86 Linux systems.
diff --git a/shellinabox/module.info b/shellinabox/module.info
new file mode 100644 (file)
index 0000000..4994a74
--- /dev/null
@@ -0,0 +1,5 @@
+name=Shell
+desc=Shell In A Box
+os_support=*-linux
+version=0.3
+depends=1.480
diff --git a/shellinabox/shellinabox.fnt b/shellinabox/shellinabox.fnt
new file mode 100644 (file)
index 0000000..0e3f8da
Binary files /dev/null and b/shellinabox/shellinabox.fnt differ
diff --git a/shellinabox/shellinabox.fnt.gz b/shellinabox/shellinabox.fnt.gz
new file mode 100644 (file)
index 0000000..a32815a
Binary files /dev/null and b/shellinabox/shellinabox.fnt.gz differ
diff --git a/shellinabox/wrapper.cgi b/shellinabox/wrapper.cgi
new file mode 100755 (executable)
index 0000000..3017e4a
--- /dev/null
@@ -0,0 +1,11 @@
+#!/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";
+