Tripcode decoder (696)

1 Name: Albright!LC/IWhc3yc 2004-11-15 08:25 ID:UYlEBzaw [Del]

I've been tinkering with Python all day today... it's pretty slick. Just for practice, I tried to cobble together a tripcode decoder that would let you have "real" words in your tripcode as !WAHa and Sling and others do, and it actually came out better than I thought it would be. I'm aware there's already a program that does this, but if memory serves me, it's Windows-only and in Japanese besides. My script is kind of dumb in the way it goes about things -- it basically just tears through random strings until it finds one that fits -- but I've tested it repeatedly and it seems to work. If you'd like to check it out, nab it here:
http://www.anre.org/crap/detripper.bz2

Of course, you may need to modify the hashbang line depending on where Python is on your machine, and don't forget those execute bits, people... Use "-h" for help.

First person to ask how to get this to run on Windows gets pointed and laughed at.

601 Name: Anonymous : 2009-12-30 12:59 ID:8zIJ13fY [Del]

how2runonwindows?

602 Name: Anonymous : 2010-01-08 16:07 ID:IV/U9Dd7 [Del]

>>601
HAHAHAHAHAHAHAHAHAHAHAHAHhahahahahahahahahahahaHAHAHAHAHAHAHAHAHA!!!!!!!!!!!!!!¡!!!!!!!!!!!!!!!!!!1!!!!!!!!

603 Name: Anonymous : 2010-02-01 05:05 ID:P22jvxMC [Del]

>>541

Why exactly do you have that as a non-capturing group?

604 Name: Anonymous : 2010-02-03 10:01 ID:Heaven [Del]

>>603
Why, do you want to capture it?

605 Name: Anonymous : 2010-02-04 09:38 ID:mME9+6kJ [Del]

can someone tl;dr this thread for me?
I just want to make a secure tripcode with words in it, I've been attempting to use >>http://trip-table.com/
but it doesn't seem to be working.

Suggestions?

606 Name: Anonymous : 2010-02-06 02:00 ID:P22jvxMC [Del]

>>604

Just makes no difference in a die condition and adds to verbosity. KISS, lel.

607 Name: Anonymous : 2010-02-06 08:03 ID:Heaven [Del]

>>601
You need to install Cygwin first.

608 Name: HUHUH : 2010-02-07 02:43 ID:kCbOvcIy [Del]

gby

609 Name: jon : 2010-02-09 17:23 ID:JEEZEAvO [Del]

asdf

610 Name: Anonymous : 2010-02-10 20:56 ID:DO1PpYdJ [Del]

>>605

Check the definition of "secure" again.

611 Name: Anonymous : 2010-02-22 06:20 ID:Q4RDdMju [Del]

Reading this thread is like nostalgia to me. More than 5 years ago, commodity PCs could barely get 1 million trips per second. Now the average i7 can manage over 10M, and GPGPU solutions like MTY exceed 100MT/s. There's rumor of a CUDA version getting close to 1GT/s too. How far we've come...

612 Name: !0E8Vy7WVXY : 2010-03-09 04:57 ID:AsnO7m7d [Del]

.

613 Name: dudebro : 2010-03-28 11:24 ID:JuG16mGl [Del]

/* 4tripper -- brute-force searching for simple crypt() tripcodes,
* as used by the futallaby-based image boards (i.e: 4chan.org)
* --
* Compile:
* gcc -O3 -o tripper 4tripper.c -lssl # Most Linux
* gcc -O3 -o tripper 4tripper.c -ldes # NetBSD
* gcc -O3 -o tripper 4tripper.c ../mumble/libdes.a # Mine
* gcc -O3 -fast -mcpu=7450 -o 4tripper 4tripper.c -lcrypto -lssl # OSX on a G4
* --
* Usage:
* ./tripper | grep -i monkey
* --
* Copyright 2004 Chris Baird,, <[email protected]>
* Licenced as per the GNU Public Licence Version 2.
* Released: 2004/12/22. Your CPU heatsink /is/ working, right?
* --
* TODO:
* Accept arguments for the key to resume/finish searching from (for
* simple load distribution)
*/

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

/* Not quite the fastest DES library around, but still reasonable, and
* most free Unixen should have it available. (Works for at least NetBSD
* and Debian GNU/Linux (after "apt-get install libssl-dev")
*/
#include <openssl/des.h>

/* How I call a special DES library.. It has to supply a des_fcrypt() as
* declared below.
* #include "../libqwikdes/des.h"
*/

/* gotta ask for a robust way to tell the difference between the two..
*/
#if !NEW_OPENSSL
# define our_fcrypt des_fcrypt /* NetBSD, Linux... */
#else
# define our_fcrypt DES_fcrypt /* Gentoo, OSX... */
#endif

extern char *our_fcrypt(const char *buf,const char *salt, char *ret);

int main()
{
#define BUFSIZE 8192
int quit=0, i, counts[8], bp;
char c, buffer[BUFSIZE+32], result[14], salt[3], word[9];
/* I haven't throughly checked whether all these characters are valid
* in a tripcode as yet. */
char table[]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

  "0123456789 .!:#/`()_$[]+*{-";

bp = 0;
salt[2] = 0;
for (i=0; i<8; i++)

{
counts[i] = -1;
word[i] = 0;
}

counts[0] = 0;
word[0] = table[0];

while (!quit)

{
salt[0] = word[1];
salt[1] = word[2];
  our_fcrypt (word, salt, result);
  for (i = 0; (word[i] != 0) && (i < 8); i++)
buffer[bp++] = word[i];
buffer[bp++] = ' ';
  for (i = 3; i < 13; i++)
buffer[bp++] = result[i];
buffer[bp++] = '\n';
  if ((bp > BUFSIZE))
{
write (1, buffer, bp);
bp = 0;
}
  i = 0;
check:
counts[i]++;
c = table[counts[i]];
word[i] = c;
  if (c == 0)
{
counts[i] = 0;
word[i] = table[0];
i++;
if (i < 8)
goto check;
quit = 1;
}
}

return 0;
}

614 Name: Anonymous : 2010-03-28 11:25 ID:JuG16mGl [Del]

dudebro

615 Name: Anonymous : 2010-04-04 20:19 ID:DO1PpYdJ [Del]

>>613

This program is incorrect, it doesn't call htmlspecialchars.

616 Name: Anonymous : 2010-04-05 03:54 ID:Heaven [Del]

>>615
Of course not. Constantly tripping over a bunch of dumb string transforms is a great way to make a searcher much much slower. And notice that the character set it searches isn't even affected by that, so it's a moot point regardless.

Also, note that not every tripcode implementation does the same combination of dumb things.

617 Name: Anonymous : 2010-04-16 01:06 ID:DO1PpYdJ [Del]

>>616

> Constantly tripping over a bunch of dumb string transforms is a great way to make a searcher much much slower.

The amount of time spent generating the string vs hashing is completely insignificant no matter how much time is spent on it.

> Also, note that not every tripcode implementation does the same combination of dumb things.

Yes they do. Otherwise they're wrong. No point in a tripcode that doesn't match 2ch.

618 Name: Anonymous : 2010-04-16 09:44 ID:Heaven [Del]

>>617
No, sorry, you're wrong on both counts. Learn more.

619 Name: Anonymous : 2010-04-16 16:09 ID:Heaven [Del]

> Constantly tripping over a bunch of dumb string transforms is a great way to make a searcher much much slower.

Another great way: Print every single tripcode to stdout.

620 Post deleted by user.

621 Name: Anonymous : 2010-04-16 17:47 ID:Heaven [Del]

>>619
Hahahwhat the hell?

I didn't bother actually looking at that code, as I have seen more than enough tripcode searchers before.

Wow that's pretty idiotic.

622 Name: Anonymous : 2010-04-16 23:52 ID:Heaven [Del]

>>619
well, unless you use multiple threads or processes, that can be faster on a lot of systems than checking the tripcodes in the searcher.

623 Name: Anonymous : 2010-04-17 06:42 ID:Heaven [Del]

>>622
No it can't.

624 Name: Anonymous : 2010-04-18 20:29 ID:iJPSJb04 [Del]

Fyi, trip explorer is not the fastest anymore (though it does offer a gui)

MTY for ATI is multithreaded (like trip explorer) AND uses ATI stream compatible graphics cards.

Intel Core 2 Quad Q8200 @ 3Ghz is doing 13.8Mtrips/s, while the ATI 4850 is doing 63.75Mtrips/s

I'm currently trying a case sensitive seven character trip. I'll report back with the time it takes.

625 Name: Anonymous : 2010-04-19 06:04 ID:Heaven [Del]

>>623
if you just output all tripcodes, you can generate tripcodes on one core and grep on another, instead of doing both on one core.

626 Post deleted by user.

627 Name: Anonymous : 2010-04-19 13:37 ID:3wZpcjIW [Del]

>>625

It won't be faster. It's more expensive to fill the queue between threads with generated tripcodes than it is to just filter them in the first place.

628 Name: Anonymous : 2010-04-20 03:05 ID:Heaven [Del]

>>627
of course it's more expensive, but is it twice as expensive? you do get almost twice as much processing power that way...
but obviously the real solution is to filter them in the first place and do that in multiple threads or processes.

629 Name: Anonymous : 2010-04-20 10:42 ID:LSGJeuxM [Del]

> of course it's more expensive, but is it twice as expensive? you do get almost twice as much processing power that way...

You don't use all of it, because the tasks are unequal (one is faster)c

> but obviously the real solution is to filter them in the first place and do that in multiple threads or processes.

cwhich is why you can should that, yes. OpenCL looks pretty convenient for this, it seems like it can be made to run well even without having to write bitslice algorithms.

630 Name: Anonymous : 2010-04-24 14:44 ID:yHeNRLW7 [Del]

virus

631 Post deleted by moderator.

632 Post deleted by moderator.

633 Post deleted by moderator.

634 Post deleted by moderator.

635 Name: Anonymous : 2010-04-29 14:32 ID:SvcvWsyz [Del]

>>213
That doesn't work, as you need the des library that it's trying to include. It just gives you compile errors.

636 Post deleted by moderator.

637 Post deleted by moderator.

638 Name: Nigger : 2010-05-04 04:28 ID:ZWvHbZXI [Del]

He stole it.

639 Post deleted by moderator.

640 Post deleted by moderator.

641 Post deleted by moderator.

642 Post deleted by moderator.

643 Post deleted by moderator.

644 Post deleted by moderator.

645 Post deleted by moderator.

646 Post deleted by moderator.

647 Post deleted by user.

648 Name: Anonymous : 2010-06-11 11:13 ID:Heaven [Del]

> This board is not for testing your tripcodes.

649 Name: Kyon : 2010-06-27 08:30 ID:i9RK+Sa/ [Del]

Kyon

650 Name: name!3GqYIJ3Obs : 2010-07-01 22:55 ID:E+5JLPQt [Del]

testing

651 Name: mash!3GqYIJ3Obs : 2010-07-01 22:56 ID:E+5JLPQt [Del]

last testing@2

652 Name: 123 : 2010-07-15 18:32 ID:EzXyFj01 [Del]

1

653 Name: Anonymous : 2010-07-16 02:06 ID:E+n7nLpJ [Del]

jkj

654 Name: Anonymous : 2010-07-16 02:06 ID:E+n7nLpJ [Del]

831

655 Name: Anonymous : 2010-07-16 21:15 ID:Heaven [Del]

>>649,652-654
wtf is this shit? incompetent spammers?

656 Name: Anonymous : 2010-07-17 10:21 ID:Heaven [Del]

>>655
You missed >>630-634,636-646,650-651.

For some reason this thread's become a retard magnet.

657 Name: Anonymous : 2010-07-25 21:56 ID:Heaven [Del]

>>656
i think i just heard that someone wanted me to post ITT

658 Name: nigger : 2010-08-04 08:58 ID:qauB8Dlr [Del]

fdsagdasag

659 Name: Tinytrip : 2010-08-13 16:14 ID:CcEDFUrT [Del]

wad

660 Post deleted by moderator.

661 Name: Anonymous : 2010-09-06 23:29 ID:EsEH8t+y [Del]

http://github.com/astrange/tripper

Lots of minor cleanup changes just because I don't like my old code, no actual feature changes. forking (or rewriting it to be reentrant and threadingc) is the obvious next step, that and being able to search SJIS strings.

662 Name: ¡Duskul : 2010-09-28 01:01 ID:J4m2vH60 [Del]

fag

663 Post deleted by moderator.

664 Post deleted by moderator.

665 Post deleted by moderator.

666 Post deleted by moderator.

667 Post deleted by moderator.

668 Post deleted by moderator.

669 Post deleted by moderator.

670 Name: Anonymous : 2010-10-13 19:19 ID:qM0fEJOg [Del]

bump

671 Name: !v0wxbNxyx2 : 2010-12-19 02:48 ID:2F3BWXrW [Del]

test

672 Post deleted by user.

673 Name: dfgdf : 2011-02-06 21:42 ID:ilDDsGfl [Del]

gdfgdfg

674 Name: Anonymous : 2011-02-07 05:04 ID:Heaven [Del]

can we just get a permasage on this thread?

675 Name: Anonymous : 2011-02-09 14:42 ID:Heaven [Del]

>>674
I support this permasage request.

676 Name: boxxy : 2011-02-13 02:00 ID:YYdUx9lN [Del]

boxxy

677 Name: Anonymous : 2011-02-19 17:50 ID:LeuMukdt [Del]

sd

678 Name: LLLOLOLOLOL : 2011-02-22 11:41 ID:Heaven [Del]

,.....

679 Name: !!Fa0nReM3 : 2011-03-07 17:01 ID:2rNBPDx3 [Del]

'll even pretend to believe that you don't like furry for the ENTIRE thread

680 Post deleted by moderator.

681 Name: Poiriering : 2011-03-15 05:18 ID:GiRuzfcD [Del]

Hanstanding ?! Oh Yeahhh

682 Name: purjopore : 2011-03-17 06:53 ID:kWRXTaNn [Del]

test

683 Name: Anonymous : 2011-03-18 09:14 ID:Q9DaeSkA [Del]

Roni

684 Name: jew : 2011-04-09 04:06 ID:XP0IBcw5 [Del]

dfdf

685 Name: Anonymous : 2011-04-10 19:46 ID:Heaven [Del]

>>676-684
are people really that stupid, or is there some sort of broken spambot making posts like that everywhere there's any thread with "tripcode" in the title?

686 Name: 4n4iEK.V5A : 2011-04-27 08:31 ID:XpQmNQEC [Del]

asd

687 Post deleted by moderator.

688 Post deleted by moderator.

689 Post deleted by moderator.

690 Post deleted by moderator.

691 Post deleted by moderator.

692 Post deleted by moderator.

693 Post deleted by moderator.

694 Post deleted by moderator.

695 Post deleted by moderator.

696 Post deleted by moderator.

This thread has been closed. You cannot post in this thread any longer.