Currently this is what I have:
for (int a = number; a < 255; a++)
{
for (int b = 0; b < 255; b++)
{
for (int c = 0; c < 255; c++)
{
for (int d = 0; d < 255; d++)
{
string ip = String.Concat(a, '.', b, '.', c, '.', d);
string _id = TruncateLongString(Hash(ip), 20);
if (_id == "AE18D602C836D7EAD1F8")
{
Console.WriteLine(ip);
Thread.Sleep(3600000);
}
}
}
}
}
But this is very slow and take absolute ages. Is there any other way to do this, preferably in a much faster way? Also, the reason for this is cracking sha1 hash, me and another person are trying to figure out how a person managed to crack the hash (_id) for an ip in about three seconds. Fyi the hash also has a salt, which is known. Also, if your wondering, number
is the number I have given the thread to use, going up from 1 to about 40. Also we have no idea what coding language the person used, but we guessed c# for its speed and because we knew some of it, but there's probably something much faster.