Jump to content
Sign in to follow this  
Unc3nZureD

MD5

Recommended Posts

Problem is that the string <> md5 hash relation is n:1.

#include <Crypt.au3>
#include <Inet.au3>

$sString = "Test"

$sString_Enc = StringTrimLeft(_Crypt_HashData($sString, $CALG_MD5), 2)
$sUrl = _INetGetSource("http://www.md5rainbow.com/" & $sString_Enc)
$sUrl = StringTrimLeft($sUrl, StringInStr($sUrl, "<h1>" & $sString_Enc & "</h1>") + StringLen("<h1>" & $sString_Enc & "</h1>"))
$sUrl = StringLeft($sUrl, StringInStr($sUrl, "<") - 1)

MsgBox(0, "", $sUrl)

Share this post


Link to post
Share on other sites

On the other hand 84,789,141 MD5 hashes are quite a lot :)...

#include <Crypt.au3>
#include <Inet.au3>

Global $sString_Dec
$sString = "The quick brown fox jumps over the lazy dog"
$aString = StringSplit($sString," ")

For $i = 1 to $aString[0]
    $sString_Enc = StringTrimLeft(_Crypt_HashData($aString[$i], $CALG_MD5), 2)
    $sUrl = _INetGetSource("http://www.md5rainbow.com/" & $sString_Enc)
    $sUrl = StringTrimLeft($sUrl, StringInStr($sUrl, "<h1>" & $sString_Enc & "</h1>") + StringLen("<h1>" & $sString_Enc & "</h1>"))
    $sUrl = StringLeft($sUrl, StringInStr($sUrl, "<") - 1)
    $sString_Dec &= $sUrl & " "
Next
$sString_Dec = StringTrimRight($sString_Dec,1)

MsgBox(0, "", $sString_Dec)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...