md5 cracker by GiGz

ljuskaArchive
//archivePosts: 37Member, Moderator in PHP

Evo iz dosade sam skockao PHP md5 cracker, skroz sredjen, pa da podelim kod sa vama ;)

md5.php

<?
define('LISTA' , "lista.txt"); // preimenujte vasu wordlistu u lista.txt, u suprotnom editujte ovaj red :)
?>
<html><head>
<title>MD5 cracker by GiGZ</title>
<script src="funkcije.js" type="text/javascript"></script>
<link rel=stylesheet href="fakyea.css" title="style">
</head>
<body bgcolor="#404040" text="#000000">
<div id="pozicijaa"><img src="slike/header.png"/></div>
<div id="navigacija"><a href="md5.php">Home</a> | <a href="javascript:bookmarksite('MD5 cracker by GiGZ', 'http://www.vasdomen.com')">Bookmark <img src="slike/zvezda.png" border="0" title="Bookmark this page"/></a></div>
<div id="sadrzaj">
<font face="Verdana" size="2">
<center>Ukoliko hash bude krekovan, skripta automatski<br /> sprema hash:password u fajl cracked_md5.txt!<br />
Vasa wordlista sadrzi <font face="Verdana" color="#98e700" size="2"><? $size=sizeof(file(LISTA)); echo "<b>$size</b>"?></font> reci.<br /><br><br></center>
<font face="Verdana" size="1"><div id="poza">Ovde unesite vas hash u <b>MD5</b> algoritmu:</div></font>
<center><form action="cracker.php" method="post" name="troll" onSubmit="return valForm()">
<input type="text" id="textarea" name="hash" size="40" maxlenght="35" value=""/>
<input type="submit" id="dugme" value="Crack!"></center></div><div id="poza2"><a href="#" onclick="fade('uspesni');">Prikazi/Sakrij</a></div>
<div id="uspesni">
<b>Poslednjih 5 crack'd haseva:</b><br /><br />
<?
$file = file("cracked_md5.txt");
for ($i = count($file)-5; $i < count($file); $i++) {
  echo $file[$i] . "<br />";
}
?>
</div>
</form>
</body>
</html>

cracker.php

<?
define('LISTA' , "lista.txt"); // preimenujte vasu wordlistu u lista.txt, u suprotnom editujte ovaj red :)
?>
<html><head>
<title>MD5 cracker by GiGZ</title>
<link rel=stylesheet href="fakyea.css" title="style">
<script type="text/javascript">
function bookmarksite(title, url){
    if (document.all)
        window.external.AddFavorite(url, title);
    else if (window.sidebar)
        window.sidebar.addPanel(title, url, "")
}
</script>con
</head>
<body bgcolor="#404040" text="#000000">
<div id="pozicijaa"><img src="slike/header.png"/></div>
<div id="navigacija"><a href="md5.php">Home</a> | <a href="javascript:bookmarksite('MD5 cracker by GiGZ', 'http://www.vasdomen.com')">Bookmark <img src="slike/zvezda.png" border="0" title="Bookmark this page"/></a></div>
<div id="sadrzaj">
<font face="Verdana" size="2">
<center>Ukoliko hash bude krekovan, skripta automatski<br /> sprema hash:password u fajl cracked_md5.txt!<br />
Vasa wordlista sadrzi <font face="Verdana" color="#98e700" size="2"><? $size=sizeof(file(LISTA)); echo "<b>$size</b>"?></font> reci.<br><br>
<b>Hash:</b>
<div id="tekstbox">  
<?
$cracker = $_POST['hash'];
echo "$cracker"?></div><br />
<b>Password:</b>
<div id="tekstbox">
<?
$cracker = $_POST['hash'];

$array = file(LISTA);
foreach($array as $rec) {
list($rec) = explode("
",$rec);

$md5 = md5($rec);
$cracked = "$cracker:$rec
";


if($cracker == $md5) {
echo "$rec";

$fp = fopen("cracked_md5.txt", "a");
fputs($fp, $cracked);
fclose($fp);
exit;
}
}
if($cracker != $md5) {
echo "<i>- Not Found -</i>";
}
?>
</div>
</div>
</body>
</html>[/code]
[b]fakyea.css[/b]
[code]#sadrzaj {
      width:470px;
      height:auto;
      background: #090909;
      border: 1px solid #000000;
      border-radius: 5px;
      -moz-border-radius: 5px;
      -webkit-border-radius: 5px;
      position:absolute;
      left:50%;
      margin-top:165px;
    margin-left:-270px;
    padding:15px;
      color:#aeaeae;
    }

#uspesni {
    width:470px;
      height:auto;
      background: #090909;
      border: 1px solid #000000;
      border-radius: 5px;
      -moz-border-radius: 5px;
      -webkit-border-radius: 5px;
      position:absolute;
    left:50%;
    margin-top:344px;
    margin-left:-270px;
    padding:15px;
      color:#aeaeae;
      text-align:center;
    }

#poza2 {
    position:absolute;
    left:50%;
    margin-top:305px;
    margin-left:-80px;
    padding:15px;
        color:#848484;
        font-size:10;
}
#dugme {
    font-weight: normal;
    font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
    color: #888888;
    border: 1px solid #595959;
    background-color: #282727;
}

#dugme:hover {
    border-color: #bbbbbb;
}

#textarea {
    font-weight: normal;
    font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
    color: #d0d0d0;
    border: 1px solid #7d7d7d;
    background-color: #282727;
}

#textarea:hover {
    border-color: #bbbbbb;
}

#pozicijaa {
    position:absolute;
    left:50%;
    margin-top:10px;
    margin-left:-305px;
    padding:15px;
}
#navigacija {
    position:absolute;
    left:50%;
    margin-top:130px;
    margin-left:-90px;
    padding:15px;
      color:#848484;
      font-size:12;
}
#poza {
    position:absolute;
    left:8%;
    margin-top:-30px;
    margin-left:15px;
    padding:15px;
}
a:active, a:visited {
    color: #777777;
    text-decoration: none;
}

a:hover { 
  text-decoration: underline;
  color: #c8c8c8;
}
a:link {
  color:#777777;
  text-decoration: none;
}

body { background: black url(slike/body.png);
       background-repeat: repeat }

#tekstbox {
    font-weight: normal;
    font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
    color: #d0d0d0;
    border: 1px solid #7d7d7d;
    background-color: #282727;
        padding: 3px;
}

#tekstbox:hover {
    border-color: #bbbbbb;
}[/code]
[b]funkcije.js[/b]
[code]function bookmarksite(title, url){
    if (document.all)
        window.external.AddFavorite(url, title);
    else if (window.sidebar)
        window.sidebar.addPanel(title, url, "")
}

function valForm()
{
        if(!valid_required(document.troll.hash.value))
        {
    alert("Hash nije unet!")
        return false;
        }
    return true;
}

function valid_required(hash)
{
         if(hash=="")          {
         return false;
         }
    return true;
}

function animateFade(lastTick, eid)
{  
  var curTick = new Date().getTime();
  var elapsedTicks = curTick - lastTick;

  var element = document.getElementById(eid);

  if(element.FadeTimeLeft <= elapsedTicks)
  {
    element.style.opacity = element.FadeState == 1 ? '1' : '0';
    element.style.filter = 'alpha(opacity = '
        + (element.FadeState == 1 ? '100' : '0') + ')';
    element.FadeState = element.FadeState == 1 ? 2 : -2;
    return;
  }

  element.FadeTimeLeft -= elapsedTicks;
  var newOpVal = element.FadeTimeLeft/TimeToFade;
  if(element.FadeState == 1)
    newOpVal = 1 - newOpVal;

  element.style.opacity = newOpVal;
  element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';

  setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33);
}

var TimeToFade = 1000.0;

function fade(eid)
{
  var element = document.getElementById(eid);
  if(element == null)
    return;

  if(element.FadeState == null)
  {
    if(element.style.opacity == null
        || element.style.opacity == ''
        || element.style.opacity == '1')
    {
      element.FadeState = 2;
    }
    else
    {
      element.FadeState = -2;
    }
  }

  if(element.FadeState == 1 || element.FadeState == -1)
  {
    element.FadeState = element.FadeState == 1 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
  }
  else
  {
    element.FadeState = element.FadeState == 2 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade;
    setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
  }  
}

-Vazna napomena: vasu wordlistu preimenujte u lista.txt, ili editujte gore navedenu liniju koda u md5.php i cracker.php fajlovima :)

Outcome:
http://i52.tinypic.com/24wuaug.png

Sign In or Register to comment.

Welcome

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions