RE: PHP MD5 Cracker 04-04-2013, 03:42 PM
#3
(04-04-2013, 03:26 PM)Deque Wrote: What exactly doesn't work?
I am not a PHP coder at all, but shouldn't it be:
Code:if(md5($line) == $hash ) {
And:
Code:echo 'Hash cracked!<br>The root of the hash is ' . $line . '.';
Well, what doesn't work is the actual cracking part, so the part you just talked about. I'm pretty sure the error is in the thing you corrected.
Also, I've got to sadly say that your correction is not working too.
I'm just learning PHP, and so I'm not good with this stuff.
For whatever, this is the code for the whole page:
PHP Code:
<html>
<head>
<div align="center" style="position: absolute; top: 37px; left: 7px; width: 187px; color: red; font-family: helvetica; font-size: 14px;">
Coded by Noize at<br>
HackCommunity.com<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
MD5 Hash Cracker
</div>
<link rel="stylesheet" type="text/css" href="http://noizethehacker.altervista.org/style.css" />
<title>MD5 Hash Cracker</title>
<script type="text/javascript">
window.onload = function() {
document.getElementById('hash').focus();
}
</script>
</head>
<body bgcolor="black">
<div id="center_body">
<font color="#00ff00">
#########################################################<br>
<font face="sans-serif" size="4" color="white"><b>Noize's MD5 Hash Cracker</b></font><br>
#########################################################<br>
<form method='post' action='' style="position: relative; left: 6px;">
<br>
Hash: <input type="text" name="hash" id="hash" placeholder="MD5 Hash" /><br>
Wordlist: <input type="text" name="wordlist" id="wordlist" style="position: relative; left: -1px;" placeholder="wordlist.txt" value="wordlist.txt" /><br>
<input type="submit" value=" Crack " style="position: relative; top: 3px; left: 95px; margin-bottom: -5px; color: #00ff00; background-color: black; font-family: arial; font-size: 13px; cursor: pointer;" /><br>
<input type="hidden" name="submit" />
</form>
#########################################################<br>
</font>
<br>
<?php
## Coded by Noize ##
if (isset($_POST['submit'])) {
$hash = $_POST['hash'];
$wordlist = $_POST['wordlist'];
foreach( $wordlist as $line ) {
if(md5($line) == $hash ) {
echo 'Hash cracked!<br>The root of the hash is ' . $line . '.';
exit();
} else {
echo 'Failed to crack the hash.';
exit();
}
}
if(!file_exists( $wordlist ))
{
echo '<font color="red">Wordlist not found at location ' . $wordlist . '.</font>';
}
}
?>
</div>
</body>
</html>
My Bitcoin address: 1AtxVsSSG2Z8JfjNy9KNFDUN6haeKr7LiP
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U
If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U
If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)