-
-
[me fuck]me fuck me fuck me fuck me fuck
-
发表于:
2007-8-24 13:46
6977
-
[me fuck]me fuck me fuck me fuck me fuck
/* me fuck */
#include <windows.h>
#include <stdio.h>
#define CIRCLES 9
void down(DWORD);
void up(DWORD);
BYTE buf[CIRCLES+1];
DWORD pos = 0;
DWORD hash;
void dump(DWORD n)
{
printf("%c", (n - (hash >> (pos % 31)) % 10 + 10) % 10 + '0');
pos++;
}
void down(DWORD n)
{
if (!buf[n] || n < 1)
return;
if (n > 1)
{
up(n-1);
for (DWORD i = n-2; i >= 1; i--)
down(i);
}
buf[n] = 0;
dump(n);
}
void up(DWORD n)
{
if (buf[n] || n < 1)
return;
if (n > 1)
{
up(n - 1);
for (int i = n - 2; i >= 1; i--)
down(i);
}
buf[n] = 1;
dump(n);
}
DWORD get_hash(PCHAR s)
{
int sum = 0x13572468;
int eax;
unsigned int i, length;
length = strlen(s);
for (i = 0; i < length; i++)
{
eax = (s[i] + sum) * 0x3721273 + 0x24681357;
sum = (eax << 25) | (eax >> 7);
}
return sum;
}
void main()
{
DWORD i;
hash = get_hash("forgot");
buf[9] = 1;
for (i = 1; i <= 8; i++)
buf[i] = (hash >> i) & 1;
for (i = 9; i >= 1; i--)
down(i);
getchar();
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!