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

Crack those tripcode!

Name: wootrshCIY !wootrshCIY 2007-05-12 6:53 ID:BTFLI2Nf

small code to find patterns in tripcodes


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <openssl/des.h>


int main(int argc, char **argv) {

        char charset[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
        char temp[14];
        char pwd[9];
        size_t charsize;
        unsigned int i;
        if(argc != 2) {
                printf("usage: %s [pattern]\n", argv[0]);
                return 1;
        }
        srand(time(NULL));
        charsize = sizeof(charset);
        pwd[8] = 0;
        while(1) {
        for(i=0;i<8;i++)
                pwd[i] = charset[rand()%charsize];
        des_fcrypt(pwd, pwd+1, temp);
        if(strstr(temp+3, argv[1]))
                printf("%s %s \n", pwd, temp+3);
        }
        return 0;


}


compile with
gcc -o prog code.c -O3 -lcrypto

Name: Anonymous 2007-06-17 17:26 ID:xDyIbFAC

v.3-1
STFU

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