From 3d6790614bb0dc776e02a95835e5c274263d1d1a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Nov 2011 11:22:36 -0500 Subject: This zip file was identified as ltshell-3.zip --- shell/bin/cat.php | 7 ++++++ shell/bin/cd.php | 5 ++++ shell/bin/chmod.php | 13 ++++++++++ shell/bin/echo.php | 6 +++++ shell/bin/editor.php | 21 ++++++++++++++++ shell/bin/help.php | 12 ++++++++++ shell/bin/ls.php | 34 ++++++++++++++++++++++++++ shell/bin/pwd.php | 5 ++++ shell/bin/rm.php | 8 +++++++ shell/bin/stat.php | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ shell/bin/whoami.php | 4 ++++ 11 files changed, 182 insertions(+) create mode 100644 shell/bin/cat.php create mode 100644 shell/bin/cd.php create mode 100644 shell/bin/chmod.php create mode 100644 shell/bin/echo.php create mode 100644 shell/bin/editor.php create mode 100644 shell/bin/help.php create mode 100644 shell/bin/ls.php create mode 100644 shell/bin/pwd.php create mode 100644 shell/bin/rm.php create mode 100644 shell/bin/stat.php create mode 100644 shell/bin/whoami.php (limited to 'shell/bin') diff --git a/shell/bin/cat.php b/shell/bin/cat.php new file mode 100644 index 0000000..fab9883 --- /dev/null +++ b/shell/bin/cat.php @@ -0,0 +1,7 @@ +'; + echo ''; + echo ''."\n"; + echo ''; + echo ''; + } +} diff --git a/shell/bin/help.php b/shell/bin/help.php new file mode 100644 index 0000000..95d2641 --- /dev/null +++ b/shell/bin/help.php @@ -0,0 +1,12 @@ +1) { echo $name.":\n"; } + $files = array(); + while (false !== ($file = readdir($dh))) { + $files[]="$file"; + } + sort($files); + echo implode("\n",$files)."\n"; + closedir($dh); + } + } else { + echo $name."\n"; + } + } else { + echo $me.': file does not exist: `'.$name."'\n"; + $ret++; + } + } + return $ret; +} diff --git a/shell/bin/pwd.php b/shell/bin/pwd.php new file mode 100644 index 0000000..2b43d00 --- /dev/null +++ b/shell/bin/pwd.php @@ -0,0 +1,5 @@ +