|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 131
Members: 0
Total: 131
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Source PHP Decode MySql SHA1 Brutus Force |
|
Posted: Sun Jan 20, 2008 6:30 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
Need programer PHP : Source PHP Decode MySql SHA1 Brutus Force by wordlist
wordlist.txt
THank You
Exemple Hash : D98ABA786F6715F905E1A11EFF509DFD47FF1136 |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
|
|
|
|
Posted: Wed Jan 23, 2008 12:55 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
<?php
//EDIT: now works with lower-and UPPERcase
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$words = file_get_contents('wordlist.txt');
$words = str_replace("\r", "\n", $words);
$words = str_replace("\n\n", "\n", $words);
$words = explode("\n", $words);
for ($i = 0; $i < count($words); $i++)
{
if (sha1($words[$i]) == strtolower($_POST['hash']))
{
echo 'Match found: '.$_POST['hash'].' is <b>'.$words[$i].'</b>';
$found = true;
break;
}
}
if (!$found) echo 'No hash found.';
}
?>
<form method="POST">
Hash: <input type="text" name="hash" value="<?=$_POST['hash']?>">
<br />
<input type="submit" value=" go " />
</form> |
|
Last edited by ploert on Wed Jan 23, 2008 8:29 pm; edited 2 times in total |
|
|
|
|
|
|
|
Posted: Wed Jan 23, 2008 12:56 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
note it doesn't add anything and it's case sensitive, aka hello doesn't match for Hello, if you need anything more detailed let me know
ps. wordlist isn't a download, should it be? |
|
|
|
|
Posted: Wed Jan 23, 2008 4:58 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
Not work |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
Posted: Wed Jan 23, 2008 5:12 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
I can't guess what exactly you want, the code does what you requested
"Not work" doesn't give me enough info there, I have tested it with a plaintext wordlist of two whole words, and it found the hash there. |
|
|
|
|
Posted: Wed Jan 23, 2008 5:20 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
nox wrote: | Not work |
It's because you want to crack SHA1 hash, that no one had hacked before ... It's probably too good plaintext password for cracking. Noone can do miracles - if pass is good then hash is uncrackable, period. |
|
|
|
|
|
|
|
|
Posted: Wed Jan 23, 2008 5:23 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
look here :
Type Hash
--------- ---------
TEXT 123456
MD2 D4541250B586296FCCE5DEA4463AE17F
MD4 585028AA0F794AF812EE3BE8804EB14A
MD5 E10ADC3949BA59ABBE56E057F20F883E
SHA-1 7C4A8D09CA3762AF61E59520943DC26494F8941B
SHA-2 (256) 8D969EEF6ECAD3C29A3A629280E686CF0C3F5D5A86AFF3CA12020C923ADC6C92
SHA-2 (384) 0A989EBC4A77B56A6E2BB7B19D995D185CE44090C13E2984B7ECC6D446D4B61EA9991B76A4C2F04B1B4D244841449454
SHA-2 (512) BA3253876AED6BC22D4A6FF53D8406C6AD864195ED144AB5C87621B6C233B548BAEAE6956DF346EC8C17F5EA10F35EE3CBC514797ED7DDD3145464E2A0BAB413
RIPEMD-160 D8913DF37B24C97F28F840114D05BD110DBB2E44
LM 44EFCE164AB921CA
NT 32ED87BDB5FDC5E9CBA88547376818D4
MySQL323 565491D704013245
MySQLSHA1 6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9
Cisco PIX jDUXMyqeIzxQIVgK
VNC Hash 494015F9A35E8B22
__________________
Pic :
when i put a Hash Mysql SHA-1 : " Not Fond " |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
|
|
|
|
Posted: Wed Jan 23, 2008 6:12 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
If the wordlist doesn't contain the password, then you will not find the password - because it's not in the wordlist.
Brute force (without wordlist) will give you the result 100% guaranteed - in about 20 years if you run it on one PC. |
|
|
|
|
Posted: Wed Jan 23, 2008 6:24 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
ploert wrote: | If the wordlist doesn't contain the password, then you will not find the password - because it's not in the wordlist.
Brute force (without wordlist) will give you the result 100% guaranteed - in about 20 years if you run it on one PC. |
20 years is in case of easy passwords ...
I look right now on Cain bruteforce estimations:
loweralpha [a-z]{1,16} --> 427 000 000 years |
|
|
|
|
Posted: Wed Jan 23, 2008 6:29 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
Woa Easier to buy a gun and point it at the admin then ^^ |
|
|
|
|
Posted: Wed Jan 23, 2008 6:53 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
|
|
|
|
Posted: Wed Jan 23, 2008 7:59 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
but the password is added in wordlist.txt
exemple wordlist.txt
123456
hacker
spammer
defacer
123456 = 6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9
when i put a Hash Mysql SHA-1 : " Not Fond " ??? |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
Posted: Wed Jan 23, 2008 8:28 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
oh hehe my bad then
it compares the strings case-sensitive
6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9
!=
6bb4837eb74329105ee4568dda7dc67ed2ca2ad9
I'll edit the code above to make it work with CAPITALS too |
|
|
|
|
Posted: Thu Jan 24, 2008 6:42 am |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
not wr0k |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
Posted: Thu Jan 24, 2008 6:45 am |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
look here :
123456 = 6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9
THankx...
????? |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
www.waraxe.us Forum Index -> All other security holes
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|