[Ajuda] SQL injection
#3

Implementa nesse cуdigo pra min? Huheuehue
PHP код:
        $result mysql_query("SELECT `usuario`,`senha`,`ultimaskin` FROM `usuarios` WHERE usuario='".$_POST['usuario']."'");        
        while(
$data mysql_fetch_array($result)) // Make $data an array of the query you just executed. 
        

            
$senha $data['senha'];
            
$usuario $data['usuario'];
            
$ultimaskin $data['ultimaskin'];
        }
        function 
udb_hash($pass)
        {
            
$length strlen($pass);
            
$s1 1;
            
$s2 0;   
            for(
$i=0$i<$length$i++)
            {
                
$s1 = ($s1 ord($pass[$i])) % 65521;
                
$s2 = ($s2 $s1)       % 65521;
            }
            
$wy= ($s2 << 16) + $s1;
            return 
$wy;
        }        
        if(
$senha == $_POST['senha'])
        {
            
$problema false;    
            
$_SESSION['logado'] = 1;
            
$_SESSION['usuario'] = $usuario;
            
$_SESSION['skin'] = $ultimaskin;
            echo 
"<meta http-equiv='refresh' content='0; url=naoachou.php'>";
        } 
Reply


Messages In This Thread
SQL injection - by Mr.Hardy - 14.01.2014, 01:11
Re: SQL injection - by Kmatsu - 14.01.2014, 01:13
Re: SQL injection - by Mr.Hardy - 14.01.2014, 01:16
Re: SQL injection - by Falcon. - 14.01.2014, 11:39
Re: SQL injection - by GWMPT - 14.01.2014, 17:17

Forum Jump:


Users browsing this thread: 3 Guest(s)