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

RainbowCrack tripcode patch

Name: !hT7zRmFpyY 2008-02-15 7:15


diff -rubB rainbowcrack-1.2-src/src/HashAlgorithm.cpp rainbowcrack+tripcodes/src/HashAlgorithm.cpp
--- rainbowcrack-1.2-src/src/HashAlgorithm.cpp    2003-11-23 00:33:22.000000000 -0500
+++ rainbowcrack+tripcodes/src/HashAlgorithm.cpp    2008-01-14 16:48:59.000000000 -0500
@@ -57,3 +57,58 @@
 {
     SHA1(pPlain, nPlainLen, pHash);
 }
+
+char _s(char c)
+{
+    switch (c) {
+        case ':': return 'A';
+        case ';': return 'B';
+        case '=': return 'D';
+        case '?': return 'F';
+        case '@': return 'G';
+        case '[': return 'a';
+        case '\\':return 'b';
+        case ']': return 'c';
+        case '^': return 'd';
+        case '_': return 'e';
+        case '`': return 'f';
+        case ('/')...('9'):
+        case ('A')...('Z'):
+        case ('a')...('z'):
+            return c;
+        default:
+            return '.';
+    }
+}
+
+#include <string.h>
+void HashTrip(unsigned char* pPlain, int nPlainLen, unsigned char* pHash)
+{
+    // should be long enough for 6 chars overflow ("&quot;") plus 3 more
+    // in the salt for the H.. at the end.
+    char pw[16], salt[16];
+    // raw DES output
+    char output[16];
+    int n, p;
+
+    if (nPlainLen > 8)
+        nPlainLen = 8; // ignore the rest
+    for (n = 0, p = 0; n < nPlainLen && p <= 8; n++) {
+        char c = pPlain[n];
+        switch (c) {
+            case '"': strcat(pw, "&quot;"); p += 6; break;
+            case '\'':strcat(pw, "'" ); p += 5; break;
+            case '<': strcat(pw, "&lt;"  ); p += 4; break;
+            case '>': strcat(pw, "&gt;"  ); p += 4; break;
+            case ',': strcat(pw, "," ); p += 5; break;
+            default:  pw[p++] = c;
+        }
+    }
+    pw[p++] = 0;
+    strcpy(salt, pw);
+    strcat(salt, "H.");
+    salt[1] = _s(salt[1]);
+    salt[2] = _s(salt[2]);
+    DES_fcrypt(pw, salt + 1, output);
+    strcpy((char *) pHash, output + 3);
+}
diff -rubB rainbowcrack-1.2-src/src/HashAlgorithm.h rainbowcrack+tripcodes/src/HashAlgorithm.h
--- rainbowcrack-1.2-src/src/HashAlgorithm.h    2003-11-23 00:33:18.000000000 -0500
+++ rainbowcrack+tripcodes/src/HashAlgorithm.h    2008-01-14 15:48:55.000000000 -0500
@@ -10,5 +10,6 @@
 void HashLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
 void HashMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
 void HashSHA1(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
+void HashTrip(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
 
 #endif
diff -rubB rainbowcrack-1.2-src/src/HashRoutine.cpp rainbowcrack+tripcodes/src/HashRoutine.cpp
--- rainbowcrack-1.2-src/src/HashRoutine.cpp    2003-11-23 00:33:16.000000000 -0500
+++ rainbowcrack+tripcodes/src/HashRoutine.cpp    2008-01-14 15:48:28.000000000 -0500
@@ -20,6 +20,7 @@
     AddHashRoutine("lm",   HashLM,   8);
     AddHashRoutine("md5",  HashMD5,  16);
     AddHashRoutine("sha1", HashSHA1, 20);
+    AddHashRoutine("trip", HashTrip, 10);
 }
 
 CHashRoutine::~CHashRoutine()

Name: Anonymous 2008-02-15 7:17

Nobody gives a shit.

Name: Anonymous 2008-02-15 7:18

Faggot shit for faggots.

Name: !hT7zRmFpyY 2008-02-15 7:19

By the way, anyone who has to ask what to do with this is a fucking idiot.

Name: Anonymous 2008-02-15 7:21

>>2 Wrong.
>>3 You're a faggot. I'm not, and your mom would know because I fucked her.

Name: Anonymous 2008-02-15 7:36

>>5
sick burn

Name: Anonymous 2008-02-15 7:40

>>5
UR KOOL I BET U RIDE A MOTORCYCLE 2 UR CLASSES @ MIT

Name: Anonymous 2008-02-15 8:38

Interesting. And does it work?

Name: Anonymous 2008-02-15 9:32


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                         *
*   I AM CURRENTLY HAVING HOT GAY SEX WITH YOUR MOTHER    *
*                                                         *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Name: Anonymous 2008-02-15 9:38

>>8
I cracked Abelson's password with it instantly.

It takes an xbox hueg amount of disk space though. Considering the disk usage of a rainbow table and the small size of each key/value pair, I'm not sure if it's really a better approach than, say, a btree, but I don't have enough terabytes to test both methods with an equal keyspace. A btree is somewhat quicker to search, though.

Name: Anonymous 2008-02-15 9:43

By the way if you're only using alphanumeric characters, or if you can figure out how to manipulate the tripcodes, you can ditch the htmlspecialchars stuff and feed the input straight into crypt. It's noticeably faster.

Name: Abelson!NobodyCracksMyTrip 2008-02-15 10:01

Nobody crack my tripcode

Name: Anonymous 2008-02-15 10:52

>>10
You should put up a web frontend. Mainly because I'm a lazy cunt with 3Gbs free space and a Pentium M ;_;

Name: Anonymous 2008-02-15 11:44

>>12
what

>>13
I'd rather have people work for themselves. If every retard can crack a tripcode it sort of defeats any point to having them. Kinda like if a 'tripcode' field was added to the posting form.

Name: Anonymous 2008-02-15 12:17

>>14
This is why we have securetripcodes...

Name: Hi !qevh6toMPk 2008-02-15 12:18

Well, can you?

Name: Anonymous 2008-02-15 12:19

Only faggots use tripcodes anyway.

Name: Anonymous 2008-02-15 12:21

How long did it take to generate an usable amount of tables?

Name: anonymous !faggot0tBQ 2008-02-15 12:30

>>17
Sup?

Name: Anonymous 2008-02-15 14:12

>>18
Too long. I suspect using something like John the Ripper's DES code, or pretty much anything lower-level than fcrypt, would have helped tremendously.

It's not like my computer really does anything else most of the time, anyway. Kind of like seti@home, but with a usable output.

Name: Anonymous 2008-02-15 19:15

Couple of questions:

- what range of characters is valid in tripcode input?
- what range have you actually used in your rainbow table, and how much space does it take?

Name: Anonymous 2008-02-15 19:28

I hate myself and I want to die.

Name: Anonymous 2008-02-15 21:02

>>21
http://www.1chan.net/futallaby/

Tripcode code is probably the original Futaba one, still untouched (minus secure tripcodes).

Name: ReadSICP !xi8/JKFwzo 2008-02-15 21:04

My tripcode is uncrackable.

Name: Anonymous 2008-02-15 21:23

do a context switch

Name: Anonymous 2008-02-15 22:22

do a barrel roll

Name: My tripcode is uncrackable !3GqYIJ3Obs!2hQER45c9l0ZlZL 2008-02-15 22:28

Hi.

Name: !vXcroNVPPU!6IfniEJg87qhrf9 2008-02-15 22:29

Name: Anonymous 2008-02-15 22:30

Name: Anonymous 2008-02-15 22:30

Name: !XgzPoOaLlE 2008-02-15 22:31

Name: Anonymous 2008-02-16 0:54

>>31
The poo is a lie?

Name: !ecakenCbvs 2008-02-16 3:00

>>32
After you've eaten the cake.

Name: Anonymous 2008-02-16 5:37

- what range of characters is valid in tripcode input?
You can use all 128 different values, from 0 to 127 -- you will have to set the eighth bit for some of them though, or they will be replaced/ignored.

Name: Anonymous 2008-02-16 6:39

patching file HashAlgorithm.cpp
Hunk #1 FAILED at 57.
1 out of 1 hunk FAILED -- saving rejects to file HashAlgorithm.cpp.rej
patching file HashAlgorithm.h
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file HashAlgorithm.h.rej
patching file HashRoutine.cpp
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 20.
1 out of 1 hunk FAILED -- saving rejects to file HashRoutine.cpp.rej



I fail it.

Is rainbowcrack even able to take adjantage of several CPUs? If not, it's not worth more effort to get it to work to me.

Name: Anonymous 2008-02-16 7:24

>>35
The code is right there. Why would you even ask such a question?

Name: Anonymous 2008-02-16 7:26

>>36
Because I'm not going to put more than 10 minutes of effort in something I'll only play with for 5 minutes once it's done.

Name: Anonymous 2008-02-16 8:20

>>37
If it takes you more than ten minutes to find out if a small Sepples application is multi-threaded, maybe you shouldn't be posting on /prog/.

Name: Anonymous 2008-02-16 8:46

>>38
Yeah, I probably shouldn't.

Name: lol !!bs+RJAOyXTwZJRG 2008-02-16 8:51

lol wut?

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