Jump to content
php.lv forumi

Md5()


Braiens
 Share

Recommended Posts

Nju luuk. Te man ir kods ka vinsh uztaisa man paroli uz md5()

<code><font color="#000000">
<font color="#0000CC"><?
$pass </font><font color="#006600">= </font><font color="#CC0000">"parole"</font><font color="#006600">;
</font><font color="#0000CC">$pass </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/md5]md5[/url]</font><font color="#006600">(</font><font color="#0000CC">$pass</font><font color="#006600">);
echo </font><font color="#0000CC">$pass</font><font color="#006600">;
</font><font color="#0000CC">?></font> </font>
</code>

Un man vajadzetu lai kads pasaka ka lietot vinu...

Piem. Man ir fails ar login kur ir parole ar md5() paroli. Un man vajag lai vinsh atkode sho paroli...

Link to comment
Share on other sites

atkodeet tu vinju nevareesi, toties tu vareesi saliidzinaat ar sakodeeto:

 

<?

if(md5($pass)=='098f6bcd4621d373cade4e832627b4f6'){

echo 'Pilniigi pareizi, parole ir test!';

}

else{

echo 'Nezini gan tu paroli!';

}

?>

 

piemeeram, shii kodeetaa parole glabaajas tev uz servera, tu vinju izsauc un shaadi saliidzini ar lietotaaja noraadiito $pass. pat tad, ja no tava servera tiks ieguuta shii sakodeetaa parole, ieguveejs ar to neko nevarees dariit, tikai kaa saliidzinaat to ar kaadu tekstu.

Link to comment
Share on other sites

atkodeet tu vinju nevareesi, toties tu vareesi saliidzinaat ar sakodeeto:

 

<?

if(md5($pass)=='098f6bcd4621d373cade4e832627b4f6'){

echo 'Pilniigi pareizi, parole ir test!';

}

else{

echo 'Nezini gan tu paroli!';

}

?>

 

piemeeram, shii kodeetaa parole glabaajas tev uz servera, tu vinju izsauc un shaadi saliidzini ar lietotaaja noraadiito $pass. pat tad, ja no tava servera tiks ieguuta shii sakodeetaa parole, ieguveejs ar to neko nevarees dariit, tikai kaa saliidzinaat to ar kaadu tekstu.

Tik daudz es zinu... Bet viens dzeks varad binary atkodeja jebkadu md5 kodu un vinsh teica ka vinam ir kautkads atkodetajs...

Link to comment
Share on other sites

Skat ka es te chakareju :

<code><font color="#000000">
<font color="#0000CC"><?
</font><font color="#006600">echo </font><font color="#CC0000">"<form  action="" method="</font><font color="#0000CC">post</font><font color="#CC0000">">
<input name="</font><font color="#0000CC">parole</font><font color="#CC0000">" type="</font><font color="#0000CC">text</font><font color="#CC0000">" value="">
<input type="</font><font color="#0000CC">submit</font><font color="#CC0000">" value="</font><font color="#0000CC">ap</font><font color="#CC0000">" name="</font><font color="#0000CC">ap</font><font color="#CC0000">">
</form>"</font><font color="#006600">;
</font><font color="#0000CC">$pass </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/md5]md5[/url]</font><font color="#006600">(</font><font color="#0000CC">$parole</font><font color="#006600">);
if (</font><font color="#0000CC">$pass </font><font color="#006600">=== </font><font color="#0000CC">$pass</font><font color="#006600">) {
echo </font><font color="#CC0000">"Tu ievadiji shadu paroli: <font color="</font><font color="#0000CC">red</font><font color="#CC0000">">$parole</font> un uz md5() shadi: <font color="</font><font color="#0000CC">red</font><font color="#CC0000">">$pass</font>"</font><font color="#006600">;
}
</font><font color="#0000CC">?></font>
</font>
</code>

Link to comment
Share on other sites

kaadaa sakaraa ($pass === $pass) ??

 

ir md5 brute force crackeri - tas ir, vinsh mezjoniigaa aatrumaa saliidzina visvisaadus variantus (aa, ab, ac u.t.t.) un ja atrod iisto, tad zinjo par to. tachu ja parole buus vismaz 6 simbolus gara un ietvers dazjus skaitljus, tad atlaust vinjam to tik viegli vis neizdosies.

 

<code><font color="#000000">

<form  action="" method="post">
<input name="parole" type="text" value="">
<input type="submit" value="ap" name="ap">
</form>
<font color="#0000CC"><?
</font><font color="#006600">if(!empty(</font><font color="#0000CC">$parole</font><font color="#006600">)){
</font><font color="#0000CC">$parole_md5</font><font color="#006600">=</font><font color="#0000CC">[url=http://lv.php.net/md5]md5[/url]</font><font color="#006600">(</font><font color="#0000CC">$parole</font><font color="#006600">);
echo </font><font color="#CC0000">"Tu ievadiji shadu paroli: <font color="</font><font color="#0000CC">red</font><font color="#CC0000">">$parole</font> un uz md5() shadi: $parole_md5<font color="</font><font color="#0000CC">red</font><font color="#CC0000">"></font>"</font><font color="#006600">;
</font><font color="#0000CC">?>
</font>
</font>
</code>

Link to comment
Share on other sites

Karosha re ka es domaju, bet neiet

<code><font color="#000000">
<font color="#0000CC"><?
</font><font color="#006600">echo </font><font color="#CC0000">"<form  action="" method="</font><font color="#0000CC">post</font><font color="#CC0000">">
<input name="</font><font color="#0000CC">parole</font><font color="#CC0000">" type="</font><font color="#0000CC">text</font><font color="#CC0000">" value="">
<input type="</font><font color="#0000CC">submit</font><font color="#CC0000">" value="</font><font color="#0000CC">ap</font><font color="#CC0000">" name="</font><font color="#0000CC">ap</font><font color="#CC0000">">
</form>"</font><font color="#006600">;
</font><font color="#0000CC">$pass </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/md5]md5[/url]</font><font color="#006600">(</font><font color="#0000CC">$parole</font><font color="#006600">);
echo </font><font color="#CC0000">"Tu ievadiji shadu paroli: <font color="</font><font color="#0000CC">red</font><font color="#CC0000">">$parole</font> un uz md5() shadi: <font color="</font><font color="#0000CC">red</font><font color="#CC0000">">$pass</font>"</font><font color="#006600">;
</font><font color="#0000CC">$atkodejums</font><font color="#006600">=</font><font color="#0000CC">[url=http://lv.php.net/md5]md5[/url]</font><font color="#006600">(</font><font color="#0000CC">$pass</font><font color="#006600">);
echo </font><font color="#CC0000">"
$atkodejums"</font><font color="#006600">;
</font><font color="#0000CC">?></font>
</font>
</code>

Link to comment
Share on other sites

 Share

×
×
  • Create New...