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/pwhash.php | 107 ------------------------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 shell/pwhash.php (limited to 'shell/pwhash.php') diff --git a/shell/pwhash.php b/shell/pwhash.php deleted file mode 100644 index 08e8171..0000000 --- a/shell/pwhash.php +++ /dev/null @@ -1,107 +0,0 @@ - - - - - Password Hasher for PHP Shell <?php echo PHPSHELL_VERSION ?> - - - - - - - - -

Password Hasher for PHP Shell

- -
- -
- Username - -
- -
- Password - -
- -
- Result - -Enter a username and a password and update.

\n"; -} else { - - $u = strtolower($username); - - if (preg_match('/[[ |&~!()]/', $u) || $u == 'null' || - $u == 'yes' || $u == 'no' || $u == 'true' || $u == 'false') { - - echo '

Your username cannot contain any of the following reserved - word: "null", "yes", "no", "true", or - "false". The following characters are also prohibited: - " " (space), "[" (left bracket), "|" (pipe), - "&" (ampersand), "~" (tilde), "!" (exclamation - mark), "(" (left parenthesis), or ")" (right - parenthesis).

' . "\n"; - - echo '

Please choose another username and try again.

' . "\n"; - - } else { - echo "

Write the following line into config.php " . - "in the users section:

\n"; - - if ( function_exists('sha1') ) { $fkt = 'sha1' ; } else { $fkt = 'md5' ; } ; - $salt = dechex(mt_rand()); - - $hash = $fkt . ':' . $salt . ':' . $fkt($salt . $password); - - echo "
\n";
-    echo htmlentities(str_pad($username, 8) . ' = "' . $hash . '"') . "\n";
-    echo "
\n"; - } -} -?> - -

- -
- -
- - -
- -
- Copyright © the Phpshell-team, please see AUTHORS. - This is PHP Shell , get the latest version at http://phpshell.sourceforge.net/. -
- - - -- cgit v1.2.3