www.Hacking-Romania.com
Hacking, gaby hacker team, programe hack, radmin hack, hi5 hack, hack the west, hacking romania, hacking stuff, hacking tools, 1 hack, 1st hacks, 2 hack, 2 hacks, 3 hack, 3 hacks, 3000 hack, 3004 hack, 4 hack, 4 hacks, 55 hack, 6 hack, 6 hacks, 7 hack, 7 hacks, 9 hack, 9dragons hack, a hack, adventure quest hack, aim hack, alz hack, and hacks, best hack, blue hack, bots hack, bots hacks, buy hack, cabal online hack, chaos hacks, cheat engine hack, cheat hack, cheats and hacks, cheats hacks, city hack, club hack, combo hack, conquer hacks, conquer online hack, conquer online hacks, conquer speed hack, conquiztador hack, counter strike 1.6 hack, damage hack, de hack, download hack, download hack for, dragonfable hack, dragonfable hacks, drakkarious hack, exp hack, flyff hack, free hack, free hacks, game hack, game hacks, garena exp hack, gladiatus hack, gm hack, gold hack, gunz hack, hack, hack 5, hack a pc, hack a site, hack a website, hack blog, hack conquer, hack counter strike, hack crack, hack cs, hack cs 1.6, hack dvd, hack email, hack forum, hack hunter, hack id, hack info, hack it, hack mess, hack muonline, hack net, hack password, hack passwords, hack pc, hack pdf, hack programs, hack site, hack sites, hack soft, hack software, hack team, hack the game, hack this, hack website, hack windows xp, hack world, hack xp, hacked, hacking, hacking game, hacking programs, hacking software, hacking tutorials, hacks, how hack, how to hack, icon hack, last chaos hack, last chaos hacks, life hack, lineage 2 hack, lineage 2 hacks, linux hack, lvl hack, maplestory hacks, mobile hack, multi hack 3.0, mybrute hack, naruto arena hack, naruto arena hacks, one hit kill hack, online hacks, perfect world hacks, pool hack, programe hack, resolution hack, resource hack, roll hack, royal hack, silkroad hack, source hack, speed hack, speed hacks, super hack, the west hack, warrock hack, warrock hacks, web hack, xpango hack, lockerz forum
Lista Forumurilor Pe Tematici
www.Hacking-Romania.com | Reguli | Inregistrare | Login

POZE WWW.HACKING-ROMANIA.COM

Nu sunteti logat.
Nou pe simpatie:
lavi17
Femeie
22 ani
Constanta
cauta Barbat
24 - 43 ani
www.Hacking-Romania.com / Programe Securitate / Autentificare pe baza de "amprenta"  
Autor
Mesaj Pagini: 1
harry2115
Moderator

Inregistrat: acum 16 ani
Postari: 385
*Pe baza de imagine, insa "amprenta" sunt mai bine.
Acesta e un cod PHP care permite autentificare pe un site web (admin panel & other shitz) folosind o imagine. Daca pixelii imaginii uploadate in acel moment corespund cu cei din baza de date, atunci se face autentificarea, altfel nu.
Folderul trebuie sa aiba chmod777 (deoarece imaginea se uploadeaza, i se preiau culorile pixelilor, apoi se sterge).
Nu este ceva extraordinar si iesit din comun, dar ma plictiseam aseara. Care ar fi avantajele ? In primul rand nu se poate ghici parola, deoarece la o imagine de 150x150 obtinem 22500 culori (8 caractere parca). Dezavantaje ? Nu stiu cat de fiabil este si partea care nu imi place mie este ca trebuie mereu uploadata imaginea.
         Cod:

<?php
$hostname="localhost";
$username="username";
$password="password";
$database="db";

$conexiune=mysql_connect($hostname, $username, $password)
or die ("eroare !";

$bazadate=mysql_select_db($database, $conexiune)
or die ("eroare !";
?>

Acum trebuie uploadata imaginea pe server, eu mi-am ales-o pe urmatoarea:



Apoi cream tabela in BD:
Cod:

<?php
include ("conexiune.php";

$delete="DROP TABLE IF EXISTS tabela";
mysql_query($delete, $conexiune);

$table="CREATE TABLE tabela (
id int(3) NOT NULL AUTO_INCREMENT,
culoare int(200) NOT NULL ,
PRIMARY KEY (id)) TYPE=MyISAM";
if(mysql_query($table)){
echo "Tabelul a fost creat<br/>";
}
else{
echo "Tabelul nu a fost creat<br/>";
}

?>

Urmeaza culoare.php, fisier care poate fi sters dupa ce este rulat o singura data (acesta preia culoarea pixelilor si o baga in bd):
Cod:

<?php
include ("conexiune.php";
$im = imagecreatefromjpeg("imagine.jpg";
for($i=0; $i<150; $i++)
    {
     for($j=0; $j<150; $j++)
         {
           //Extragem culoarea si o introducem in BD
           $rgb = imagecolorat($im, $i, $j);
           $sql = "INSERT INTO tabela (culoare) VALUES ('".$rgb."')";
           if(mysql_query($sql)) { echo "added"; }
           else { mysql_error(); }
         }
    }

mysql_close($conexiune);
?>

Si partea finala... index.php:
Cod:

<FORM ENCTYPE="multipart/form-data" ACTION="" METHOD=POST>
Imagine: <INPUT NAME="file_up" TYPE="file">
<INPUT TYPE="submit" name="submit" VALUE="Upload">
</FORM>

<?php
include ("conexiune.php";

if($_POST['submit'])
{
$file_upload="true";
$file_up_size=$_FILES['file_up'][size];
if ($_FILES[file_up][size]>17000)
    {
      die("dimensiune prea mare";
      $file_upload="false";
    }
//Lasam doar jpg/jpeg
if (!($_FILES[file_up][type] =="image/jpeg")
    {
      die ("nu e jpg/jpeg";
      $file_upload="false";
    }
$file_name=$_FILES[file_up][name];
//Generam un nume pt. imagine
$x[0]=rand(0, 10);
$x[1]=rand(0, 10);
$x[2]=rand(0, 10);
$x[3]=rand(0, 10);
$x[4]=rand(0, 10);
$add="$x[0]$x[1]$x[2]$x[3]$x[4]$file_name";
if($file_upload=="true"
   {
     if (file_exists($add))
        {
           die ("Fisierul ales exista deja pe server.";
        }
     else
        {
           if(move_uploaded_file ($_FILES[file_up][tmp_name], $add))
             {
                $link=$add;
                $hand=imagecreatefromjpeg($add);
                //Preluam dimensiunile
                $x=imagesx($hand);
                $y=imagesy($hand);
                if ($x!= 150 || $y!=150)
                    {
                       unlink($link);
                       die ("dimensiunile nu corespund";
                    }
                //Daca dimensiunile sunt cele bune...
                else
                    {
                       $count=0;
                       for ($i=0; $i<150; $i++)
                           {
                              for ($j=0; $j<150; $j++)
                                  {
                                     $pixel[$count]=imagecolorat($hand, $i, $j);
                                     $count++;
                                  }
                           }
                       unlink($link);
                       $count=0;
                       $asd="true";
                       //Extragem din DB
                       $sql="SELECT * FROM tabela";
                       $sql=mysql_query($sql);
                       while($row=mysql_fetch_row($sql))
                            {
                               if ($pixel[$count]!=$row[1])
                                  {
                                    $asd="false";
                                  }             
                               $count++;
                            }
                       if ($asd=="false" { echo "parola gresita !"; }
                       else if($asd=="true" { echo "asta e parola!"; }
                       else { die("eroare !"; }
         }
    } } } }
mysql_close($conexiune);
?>


Asta e tot.De mentionat ca nu merge pe IE, insa functioneaza pe Mozilla, Opera, Safari. Bafta !


_______________________________________
[img]http://img191.imageshack.us/img191/3862/45256061.jpg[/img]
[img]http://img.userbarz.com/35/6865.jpg[/img]
[color=red]Putina rabdare,putina culoare....
Si ziua-i frumoasa ca ziua cu soare!!!![/color]

pus acum 16 ani
   
gaby22v
Pe lista neagra

Inregistrat: acum 15 ani
Postari: 27
bv!

pus acum 15 ani
   
smeker
SPAMMER

Inregistrat: acum 15 ani
Postari: 5
io iti dau un cont pe hi2.ro sa imi faci si mie o pagina din aia ka mie numi iese imi da ierori pls vrei ma gasesti la id de mess iulyan_rebelu

pus acum 15 ani
   
invizibil
NOVICE

Din: Consyanta
Inregistrat: acum 15 ani
Postari: 83
tare

pus acum 15 ani
   
andronel18
INCEPATOR

Inregistrat: acum 16 ani
Postari: 40
mijto gen james bond))

pus acum 15 ani
   
Pagini: 1  

Mergi la