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.

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

If you just want to read the code without downloading and unpacking the file...
http://www.anre.org/crap/detripper

3 Name: Anonymous 2004-11-15 09:50 ID:bBA8/LRA [Del]

thanks!

4 Name: !WAHa.06x36 2004-11-15 14:22 ID:lrsPgM4g [Del]

What you live or die by when doing this is the speed of your crypt() implementation. The default ones are often horribly slow. If you're only doing 4000 crypts per second, you'll have to wait a long time for those codes. Tripper+ uses the UFC crypt() implementation, and it pushes about 64000 crypts per second per gigahertz on an Athlon processor. I've used some assembly-optimized crypt() code from John the Ripper to get up to 110000 crypts per second per gigahertz.

I don't know how hard it is to interface those from Python, though. I see there's a Perl wrapper for the UFC code, so maybe somebody made one for Python, too.

5 Post deleted by moderator.

6 Post deleted by user.

7 Post deleted by user.

8 Post deleted by user.

9 Name: !WAHa.06x36 2004-11-15 20:35 ID:VCAzDJaA [Del]

The author of >>5 is DQN.

10 Name: Albright!LC/IWhc3yc 2004-11-15 21:04 ID:NCk61rhw [Del]

>>4: Hmm... Can't seem to find anything that ties Py and UFC together. I'll keep looking into it, although, to tell the truth, I don't care that much. :P Again, this was just coding practice.

>hunter.apana.org.au/~cjb/Code/4tripper.c

...gives a syntax error when I try to compile it, both on Darwin and Ubuntu (Debian). Don't know enough about C to try to fix it...

11 Post deleted by user.

12 Name: Anonymous 2004-11-15 22:20 ID:Heaven [Del]

13 Name: Anonymous 2004-11-15 22:21 ID:Heaven [Del]

14 Name: !WAHa.06x36 2004-11-16 00:51 ID:VCAzDJaA [Del]

Man, this thread got hit hard by 100webspace's strange hiccups today.

15 Name: hotaru!hoTarufiRE!!YMy/5ZNE 2004-11-18 08:20 ID:z6ktBO9Q [Del]

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

lol cygwin wins it
but i think i'll stick to using my perl script since it's much faster (my perl script found 4 tripcodes matching 'abc' in about 2 seconds, while your python script took about 11 seconds to find one and then about 26 seconds to find another one... and about 107 seconds for the third one...

16 Name: !WAHa.06x36 2004-11-18 14:17 ID:FDWJfqSg [Del]

Are you using the UFC wrapper for that?

17 Name: hotaru!hoTarufiRE!!YMy/5ZNE 2004-11-18 15:55 ID:aD28FbYw [Del]

>>16
i wasn't, but then i saw your post and decided to try it... now it works much faster...
http://hotaru.freelinuxhost.com/wu/src/trip.bz2 (with ufc wrapper)
http://hotaru.freelinuxhost.com/wu/src/trip.noufc.bz2 (without ufc wrapper)

18 Name: Albright!LC/IWhc3yc 2004-11-18 17:25 ID:wzZMPgsQ [Del]

Last login: Wed Nov 17 23:34:30 on ttyp1
Welcome to Darwin!
Twelve:~ Albright$ bunzip2 /Users/Albright/Desktop/trip.bz2
bunzip2: /Users/Albright/Desktop/trip.bz2 is not a bzip2 file.
Twelve:~ Albright$

19 Name: Albright!LC/IWhc3yc 2004-11-18 17:26 ID:wzZMPgsQ [Del]

By the way, again, I'm not trying to attest my script is anything near teh fast, but could you get faster results with it if you ran it with the Windows port of Python natively instead of using Cygwin?

20 Name: !WAHa.06x36 2004-11-18 17:40 ID:LiL7AG0A [Del]

Cygwin is just a POSIX implementation for Windows, so it doesn't really give any significant performance hit.

21 Name: hotaru!hoTarufiRE!!YMy/5ZNE 2004-11-18 18:23 ID:zKAUYgGg [Del]

>>18
looks like the server is giving incorrect content-length headers again...
these should work:
http://hotaru.freelinuxhost.com/wu/src/trip
http://hotaru.freelinuxhost.com/wu/src/trip.noufc

22 Name: hk0gcgdz 2004-11-19 08:06 ID:8278XI9g [Del]

Some ideas:

1) Allow '1337' substitution (o == O == 0, 5 == s == S, |=l=1 etc.)
2) Force unmatched characters to be alpha, alphanum, num, etc.
3) Match anywhere (not just beginning)

So you end up building a regex from the command line parameters, then compile it, then use it to pick out matches.

Or maybe you should just add a "user-supplied regex" command line option. XD

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