|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 56
Members: 0
Total: 56
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
please decode this one<33 |
|
Posted: Mon Jun 07, 2010 4:29 pm |
|
|
Aerosis |
Beginner |
|
|
Joined: Jun 07, 2010 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Mon Jun 07, 2010 5:01 pm |
|
|
vince213333 |
Advanced user |
|
|
Joined: Aug 03, 2009 |
Posts: 737 |
Location: Belgium |
|
|
|
|
|
|
Index.php:
Code: | <?php
echo '<center>
';
require_once('config.php');
echo"
<title>$Site[title]</title>";
echo '
<style>
body {
background:#000000 url(zeko/bg.gif);background-repeat: background-position:center;
}
</style>
<img src="zeko/zeko2010ss.gif"><br>
<a href="index.php"><input type=\'image\' src="zeko/reg.png"></a>
<a href="pass.php"><input type=\'image\' src="zeko/pass.png"></a>
';
require_once('config.php');
echo '
';
error_reporting(0);
switch ($_POST["operation"]) {
case "register": registerAccount(); break;
default: printHTML();
}
/*
Registration Function
*
**
***/
function registerAccount() {
if(!$_POST["user"]) { printHTML("Username Field Empty!"); die(); }
if(!ereg("^[0-9a-zA-Z]{4,15}$",$_POST["user"])) { printHTML("You may only use letters or numbers, with a length of 4 to 15 for the username!"); die(); }
if(!$_POST["pass1"]) { printHTML("First Password Field Empty!"); die(); }
if(!$_POST["pass2"]) { printHTML("Second Password Field Empty!"); die(); }
if(!ereg("^[0-9a-zA-Z]{4,15}$",$_POST["pass1"])) { printHTML("You may only use letters or numbers, with a length of 4 to 15 for the password!"); die(); }
if($_POST["pass1"]!=$_POST["pass2"]) { printHTML("Passwords do not match!"); die(); }
$temp["result"] = mysql_fetch_array(mysql_query(sprintf("SELECT * FROM accounts WHERE AccountID='%s'", mysql_real_escape_string($_POST["user"]))));
if($temp["result"]) { printHTML("Username already exists!"); die(); }
if(!$_POST["sid"]) { printHTML("Secret ID Number Field Empty!"); die(); }
$temp["query"] = sprintf("INSERT INTO accounts(AccountID,Email,SecretNumber) VALUES ('%s','%s','%s')",
mysql_real_escape_string($_POST["user"]), mysql_real_escape_string($_POST["email"]), mysql_real_escape_string($_POST["sid"]));
if (!mysql_query($temp["query"])) { die(mysql_error()); }
else { printHTML("Registration Successful!"); }
}
/*
Print HTML
*
**
***/
function printHTML($output) {
echo '<body><div id="container">
<form action="index.php" method="post" class="niceform">
<input type="hidden" name="operation" value="register" />
';
if($output) {
echo ' <dl>
<dt><label for="out"> ;;</label></dt>
<dd><label for="out"><strong><b>'; print($output);
echo '</b></strong></label></dd>
</dl>
'; }
echo '
<dl>
<dt><label for="user">Username:</label></dt>
<dd><input type="text" name="user" id="user" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="pass1">Password:</label></dt>
<dd><input type="password" name="pass1" id="pass1" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="pass2">Confirm Password:</label></dt>
<dd><input type="password" name="pass2" id="pass2" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="email">E-Mail:</label></dt>
<dd><input type="text" name="email" id="email" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="sid">ID Number:</label></dt>
<dd><input onkeypress="return onlyNumbers(event);" type="password" name="sid" id="sid" size="32" maxlength="8" /></dd>
</dl>
<dl>
<dt><label for="submit"> ;;</label></dt>
<dd><input type="submit" name="submit" id="submit" value="Submit" /></dd>
</dl>
</form>
</div>
';
}
echo '
<br><br>
<img src="zeko/me.png">
<br><br>
<h2>';
require_once('config.php');
echo"
Copyright © 2010 </span><a href='$Server[url]'><font color=#5218FA>$Server[name]</font></a> <span class='style1'>|| Designed by</span> <a
href='http://zeko2010ss.ucoz.com'><font color=#5218FA>Zeko2010ss</font></a>";
echo '</h2>
</center>';
?> |
|
|
|
|
|
|
|
|
|
Posted: Mon Jun 07, 2010 5:03 pm |
|
|
vince213333 |
Advanced user |
|
|
Joined: Aug 03, 2009 |
Posts: 737 |
Location: Belgium |
|
|
|
|
|
|
Pass.php:
Code: | <?php
echo '<center>
';
require_once('config.php');
echo"
<title>$Site[title]</title>";
echo '
<style>
body {
background:#000000 url(zeko/bg.gif);background-repeat: background-position:center;
}
</style>
<img src="zeko/zeko2010ss.gif"><br>
<a href="index.php"><input type=\'image\' src="zeko/reg.png"></a>
<a href="pass.php"><input type=\'image\' src="zeko/pass.png"></a>
';
require_once('config.php');
echo '
';
error_reporting(0);
switch ($_POST["operation"]) {
case "changepass": changePassword(); break;
default: printHTML();
}
/*
Registration Function
*
**
***/
function changePassword() {
if(!$_POST["user"]) { printHTML("Username Field Empty!"); die(); }
if(!ereg("^[0-9a-zA-Z]{4,15}$",$_POST["user"])) { printHTML("You may only use letters or numbers, with a length of 4 to 15 for the username!"); die(); }
if(!$_POST["email"]) { printHTML("E-mail Field Empty!"); die(); }
if(!$_POST["sid"]) { printHTML("Secret ID Number Field Empty!"); die(); }
if(!$_POST["pass1"]) { printHTML("New Password Field Empty!"); die(); }
if(!$_POST["pass2"]) { printHTML("Confirm Password Field Empty!"); die(); }
if(!ereg("^[0-9a-zA-Z]{4,15}$",$_POST["pass1"])) { printHTML("You may only use letters or numbers, with a length of 4 to 15 for the password!"); die(); }
if($_POST["pass1"]!=$_POST["pass2"]) { printHTML("Passwords do not match!"); die(); }
$query = "SELECT * FROM accounts WHERE AccountID='$_POST[user]' AND Email='$_POST[email]' AND SecretNumber='$_POST[sid]'";
$result=mysql_query($query);
$rows=mysql_num_rows($result);
if(!$rows) { printHTML("incorrect account information !"); die(); }
$temp["query"] = sprintf("UPDATE accounts SET Password='' WHERE AccountID='$_POST[user]'");
if (!mysql_query($temp["query"])) { die(mysql_error()); }
else { printHTML("Password Modification Successful"); }
}
/*
Print HTML
*
**
***/
function printHTML($output) {
echo '<body><div id="container">
<form action="pass.php" method="post" class="niceform">
<input type="hidden" name="operation" value="changepass" />
';
if($output) {
echo '
<dl>
<dt><label for="out"> ;;</label></dt>
<dd><label for="out"><strong><b>'; print($output); ;echo '</b></strong></label></dd>
</dl>
';
}
echo '
<dl>
<dt><label for="user">Username:</label></dt>
<dd><input type="text" name="user" id="user" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="email">E-mail:</label></dt>
<dd><input type="text" name="email" id="email" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="sid">ID Number:</label></dt>
<dd><input onkeypress="return onlyNumbers(event);" type="password" name="sid" id="sid" size="32" maxlength="8" /></dd>
</dl>
<dl>
<dt><label for="pass1">New Password:</label></dt>
<dd><input type="password" name="pass1" id="pass1" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="pass2">Confirm New Password:</label></dt>
<dd><input type="password" name="pass2" id="pass2" size="32" maxlength="15" /></dd>
</dl>
<dl>
<dt><label for="submit"> ;;</label></dt>
<dd><input type="submit" name="submit" id="submit" value="Submit" /></dd>
</dl>
</form>
</div>
';
}
echo '
<br><br>
<img src="zeko/me.png">
<br><br>
<h2>';
require_once('config.php');
echo"
Copyright © 2010 </span><a href='$Server[url]'><font color=#5218FA>$Server[name]</font></a> <span class='style1'>|| Designed by</span> <a
href='http://zeko2010ss.ucoz.com'><font color=#5218FA>Zeko2010ss</font></a>";;echo '</h2>
</center>';
?> |
|
|
|
|
|
|
|
|
|
Posted: Mon Jun 07, 2010 5:16 pm |
|
|
Aerosis |
Beginner |
|
|
Joined: Jun 07, 2010 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|