Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Imageboard poster IDs

Name: Anonymous 2012-03-12 23:58

I've noticed that /soc/ now has forced anon and IDs.
I assume they're generated from the poster's IP and the thread id, but what's the ENTERPRISE GOLD STANDARD for generating IDs on textboards? Something involving a crypt function, I imagine.
I also recall there being some threads here about someone cracking FV's user id to reveal that he's from Israel; if someone could point me to those threads and the code the cracker used, I'd be grateful.

Name: Anonymous 2012-03-13 2:34

// IP blocks
        for (a = 26; a < sizeof(ablocks); ++a) {
            SHA_CTX ctx;
            char prefix[16] = { '\0' };
            unsigned char md[SHA_DIGEST_LENGTH] = { '\0' };
            unsigned int b, c, d;
            char* bpos;
            char* cpos;
            char* dpos;
            bpos = prefix + sprintf(prefix, "%u.", ablocks[a]);
            for (b = 0; b < 256; ++b) {
                cpos = bpos + sprintf(bpos, "%u.", b);
                for (c = 0; c < 256; ++c) {
                    dpos = cpos + sprintf(cpos, "%u.", c);
                    for (d = 0; d < 256; ++d) {
                        sprintf(dpos, "%u", d);
                        SHA1_Init(&ctx);
                        SHA1_Update(&ctx, prefix, strlen(prefix));
// this might be reply # + thread #
                        SHA1_Update(&ctx, "291177427627", 12);
// from salt.cgi
                        SHA1_Update(&ctx, salt, 448);
                        SHA1_Final(md, &ctx);
// search is derived from the ID somehow, I cannot remember how an example here:
//  _+sP   42Ns   t___ (ID being +sP42Nst)
//5feb0f e3636c b575d7
                        if (memcmp(search, md + 1, 5) == 0) {
                            char* base64 = NULL;
                            base64_encode(md, SHA_DIGEST_LENGTH, &base64);
                            base64[9] = '\0';
                            printf("%u.%u.%u.%u: %s\n", ablocks[a], b, c, d, base64 + 1);
                            free(base64);
                            exit(0);
                        }
                    }
                }
            }
        }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List