Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HellBoundHackers Web Patching
17-06-2012, 01:12 AM,
Post: #1
HellBoundHackers Web Patching
nie adalah source code dari challenge hellboundhackers web patching 4...so sape2 nk mng challenge tu bleh la tgk cnie...yg nie hnya khas untuk challenge yg ke 4 sahaja...sbb yg lain bleh kata sng la...

any question bleh tnye kt thread nie...@[p0pc0rn] lau xpuas ati ngn thread yg nie...mntak delete trus..xprlu nk marah2 or bnci2 ^^

PHP Code:
<?php

include( "config.php" );

mysql_connect$dbhost$dbuser$dbpass ) or die( "Unable to connect!" );
mysql_select_db$db );

if( isset( 
$_POST['username'] ) && isset( $_POST['password'] ) )
{
    
setcookie"username"addslashes$_POST['username'] ) );
    
setcookie"password"addslashes$_POST['password'] ) );
    
header"Location: " . ($_SERVER['SERVER_NAME'];
}
else
{
    if( isset( 
$_COOKIE['username'] ) && isset( $_COOKIE['password'] ) )
    {
        
$query "SELECT * FROM `members` WHERE username = '" mysql_real_escape_string(htmlentities($_COOKIE['username'], ENT_QUOTES"utf-8")) . "' AND password = '" mysql_real_escape_string(htmlentities($_COOKIE['password'], ENT_QUOTES,"utf-8")) . "'";
        
$res mysql_query$query ) or die( "Query: " $query " failed." );
        
$rows mysql_num_rows$res );
        if( !
$rows )
        {
            die(
"Username or password invalid!");
        }
        if( isset( 
$_POST['update'] ) )
        {
            
$pass addslashes$_POST['new_pass'] );
            
$update "UPDATE members SET password = '" $pass "' WHERE username = '" mysql_real_escape_string($_COOKIE['username']);
            
mysql_query$update ) or die( "Unable to update your password, please try again!" );
        }
        else
        {
            
$row mysql_fetch_row$res );
            
?>
            <div style="text-align: center;">
            <h2>Logged in as: <?= htmlentities$row[0] ); ?></h2><br /><br />
            <strong>::Change Your Password::</strong>
            <form action="<?= htmlentities$_SERVER['PHP_SELF'] ); ?>" method="post"><br />
            New Password: <input type="text" name="new_pass" /><br />
            <input type="submit" name="submit" value="::Change Pass::" />
            </form>
            </div>
            <?php
        
}
    }
    else
    {
        
?>
        <div style="text-align: center;">
        <strong>::Log In::</strong>
        <form action="<?= htmlentities$_SERVER['PHP_SELF'] ); ?>" method="post"><br />
        Username: <input type="text" name="username" /><br />
        Password: <input type="password" name="password" /><br />
        <input type="submit" name="submit" value="::Log In::" />
        </form>
        </div>
        <?php
    
}
}

?>
Reply
17-06-2012, 01:17 AM,
Post: #2
RE: HellBoundHackers Web Patching
ada yg main gak kt hbh ek dh lama xmain sana ;d
[̲̅ə̲̅٨̲̅٥̲̅٦̲̅]
i ℓ٥ﻻ ﻉ√٥υ F٥rﻉ√ﻉr ღ
|_|0|_|
|_|_|0|
|0|0|0|
http://jonhburn2.freehostia.com/lol.txt
Reply
17-06-2012, 01:18 AM,
Post: #3
RE: HellBoundHackers Web Patching
tak perlu tag aku kot,aku tak larat nk delete msj kt inbox
[Image: 3EsGZgg.png]
uno akhirnya kau ngaku gak ye
Reply
17-06-2012, 01:21 AM,
Post: #4
RE: HellBoundHackers Web Patching
(17-06-2012, 01:17 AM)johnburn Wrote: ada yg main gak kt hbh ek dh lama xmain sana ;d

bosan...saje main kt ctu ^^
Reply


Forum Jump: