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

Custom tripcode?

Name: !!9rTKaZmuLora9eV 2009-12-30 17:59

I've tried. Honest to god I have tried.
Tripcode explorer, Tripbreaker or whatever, a few site-based...
So please, help me ;-;
I'd very much like a tripcode that says For Hire. Or relevant. Can anyone help me?

Name: Anonymous 2010-01-01 9:05

>>35
how did you brute secure-tripcode ???
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <signal.h>
#include <sys/time.h>

#include <openssl/sha.h>
#include <base64.h>

#define SALT_SIZE 448
#define KEY_SIZE 8
#define DATA_SIZE (KEY_SIZE + SALT_SIZE)
#define CHARSET_SIZE 89
#define SEARCH_SIZE 64

static const unsigned char charset[] =
    " !$%()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";

static uint64_t key;
static uint64_t prevkey;

static void
sigalrm_handler(int signum, siginfo_t* si, void* uctx)
{
    struct itimerval curtimer;
    double cps;

    getitimer(ITIMER_REAL, &curtimer);
    cps = (double)(key - prevkey) / (curtimer.it_value.tv_sec + ((double)curtimer.it_value.tv_usec / 1e6));
    printf("%.0f cps\n", cps);

    prevkey = key;
}

int
main(int argc, char* argv[])
{
    unsigned int inputlen;
    char inputdata[SEARCH_SIZE] = { '\0' };
    unsigned int searchlen;
    unsigned int searchbits;
    unsigned char searchmask;
    unsigned char searchpattern;
    unsigned char searchdata[SEARCH_SIZE] = { '\0' };
    int ret;

    unsigned int i;
    unsigned char data[DATA_SIZE];
    unsigned char md[SHA_DIGEST_LENGTH] = { '\0' };
    char* base64 = NULL;
    FILE* stream;
    struct sigaction act = { { 0 } };
    struct itimerval timer = { { 0 } };

    if (argc != 2) {
        fprintf(stderr, "one argument needed\n");
        return 1;
    }

    inputlen = strlen(argv[1]);
    searchlen = (inputlen * 6) / 8;
    searchbits = (inputlen * 6) % 8;

    memset(inputdata, 0, SEARCH_SIZE);
    if (inputlen % 4 != 0)
        memset(inputdata + inputlen, 'A', 4 - (inputlen % 4));
    memcpy(inputdata, argv[1], inputlen);
    ret = base64_decode(inputdata, searchdata);

    searchmask = 0xfc << (6 - searchbits);
    searchpattern = searchdata[searchlen] & searchmask;

    printf("inputlen: %d, searchlen: %d, searchbits: %d, searchmask: %02x [%d]\n",
        inputlen, searchlen, searchbits, searchmask, ret);

    stream = fopen("salt.cgi", "rb");
    fread(data + KEY_SIZE, SALT_SIZE, 1, stream);
    fclose(stream);

    act.sa_flags = SA_SIGINFO;
    act.sa_sigaction = sigalrm_handler;
    sigaction(SIGALRM, &act, NULL);

    timer.it_interval.tv_sec = 5;
    timer.it_interval.tv_usec = 0;
    timer.it_value.tv_sec = 5;
    timer.it_value.tv_usec = 0;
    setitimer(ITIMER_REAL, &timer, NULL);

    key = 3;
    prevkey = key;

    for (;;) {
        uint64_t tempkey = key;
        for (i = 0; i < KEY_SIZE; ++i) {
            data[i] = charset[tempkey % CHARSET_SIZE];
            tempkey >>= 7;
        }
        SHA1(data, DATA_SIZE, md);
        if (!searchlen || !memcmp(searchdata, md, searchlen)) {
            if (searchbits) {
                if ((md[searchlen] & searchmask) == searchpattern) {
                    break;
                }
            } else {
                break;
            }
        }
        ++key;
    }

    base64_encode(md, SHA_DIGEST_LENGTH, &base64);
    base64[15] = '\0';
    data[KEY_SIZE + 1] = '\0';
    printf("\nAnonymous##%s: Anonymous!!%s\n", data, base64);

    free(base64);
    return 0;
}

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