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.

201 Name: Anonymous : 2006-03-07 16:56 ID:F/Zusv+8 [Del]

>>188

> this should work... http://wilson.merseine.nu/download/fasttrip.tar.bz2

Error! Could not locate remote server

202 Name: hotaru : 2006-03-07 23:49 ID:Heaven [Del]

>>201
yeah... my "dynamic" ip never changes, so the dynamic dns never gets updated, so it expired...
i'm working on setting up a new server, i'll post a link here when i'm done.

203 Name: Potato : 2006-04-13 09:40 ID:2uF14587 [Del]

I like potatoes.

204 Name: Anonymous : 2006-05-17 08:07 ID:KDKASRee [Del]

>>200
the best thing to do is look at the actual 0ch/futaba code to see what they do...

>>201
http://firefly.tor/files/fasttrip.tar.bz2

205 Name: Anonymous : 2006-05-17 14:14 ID:Heaven [Del]

206 Name: !evHPL0.Jzg : 2006-05-18 01:25 ID:G8pNJ2bo [Del]

nnnnnnnnnnnn

207 Name: !XO4pLzfguw : 2006-05-20 22:40 ID:Heaven [Del]

dd

208 Name: Anonymous : 2006-05-22 15:32 ID:q5nsewOw [Del]

>>205 tor routing system, looks like.

209 Name: !WAHa.06x36 : 2006-05-22 16:01 ID:Heaven [Del]

>>206-207

This is not a tripcode testing thread. Use the testing thread over at /sup/ if you really need to.

210 Name: Mr VacBob!JqK7T7zan. : 2006-06-27 00:23 ID:JFHvDw9e [Del]

A friend has been running tripper2ch on his Macbook looking for "MUSASHI" tripcodes for so long it's reached eight character inputs.

All the hoorj bitslice sse stuff up there is way past my ability to care about this, but maybe I should multithread it or look into OpenMP.

(and, man, the Darwin crypt.c I'm using is awful. I still won't change it to something that's wrong, but maybe at least I'll use Free/OpenBSD'sc)

211 Name: Mr VacBob!JqK7T7zan. : 2006-06-27 00:24 ID:JFHvDw9e [Del]

Hey, why can't I use an ellipsis if I post from inside the thread!

………...……

212 Name: Anonymous : 2006-06-27 06:43 ID:KDKASRee [Del]

4brute-johnbs-p5 (that's the prefix-matching one) + john 1.7.2 (Bitslice DES assembly code for x86-64 making use of the 64-bit mode extended SSE2 with 16 XMM registers has been added for better performance at DES-based crypt(3) hashes with x86-64 builds on AMD processors.) = 1211kcps on my 1.6GHz machine :)

213 Name: Mr VacBob!JqK7T7zan. : 2006-06-27 21:40 ID:JFHvDw9e [Del]

I'm sorry to say that no human being can follow all those prepositions.

214 Name: Anonymous : 2006-06-28 18:23 ID:Heaven [Del]

>>212 Was that even english?

215 Name: EleoChan!EhVtXXdTd6 : 2006-06-28 19:38 ID:Heaven [Del]

I feel inadequate and want to take a computer science class.

216 Name: dmpk2k!hinhT6kz2E : 2006-06-28 21:30 ID:Heaven [Del]

Don't worry. People who take computer science classes feel inadequate in the grand scheme of things too.

217 Name: !tCjnBrMXJQ!!CBusuONe : 2006-07-28 20:04 ID:bub3rlhP [Del]

i use tripmona

218 Name: Mr VacBob!JqK7T7zan. : 2006-08-16 20:15 ID:O3Zsn0FH [Del]

I think I'm going to rewrite mine so it uses OpenMP, because OpenMP is pretty cool.

Also I guess it should support modern wakaba and be endian-safe on shiichan. Even though I'm the only one that uses shiichan's.

219 Name: Anonymous : 2006-08-21 11:12 ID:6+cz6mUx [Del]

>>204
I am running Tor, but how do I make it (or Privoxy?) aware of .tor domains?

220 Name: Anonymous : 2006-08-21 20:43 ID:KDKASRee [Del]

221 Name: anon!caRDAn9Ewg : 2006-09-15 22:30 ID:rdjvWTyc [Del]

Someone explain the process for generating tripcodes anyway.

I'm goofing around teaching myself php and want to make a tripcode test script for the hell of it.

222 Name: Albright!LC/IWhc3yc : 2006-09-16 09:59 ID:a2om6aN1 [Del]

That'd be re-inventing the wheel. Here's the (slightly poorly-written) snippet of code from Thorn that generates 2ch-style trips:

    $pos=strrpos($name,"#");
if ($pos!==false) {
$nombre=substr($name,0,$pos);
$trip=substr($name,$pos+1);
//echo($trip);
//2ch-style tripcodes...
//More or less stolen from Futallaby
$salt=substr($trip."H.",1,2);
$salt=ereg_replace("[^\.-z]",".",$salt);
$salt=strtr($salt,":;<=>?@[\\]^_`","ABCDEFGabcdef");
$trip=substr(crypt($trip,$salt),-10)."";
}
else {
$nombre=$name;
$trip="";
}

http://thorn.pichan.org

223 Name: anon!21anon4H3U : 2006-09-16 12:56 ID:Heaven [Del]

The point of re-inventing the wheel is that you understand it better and aren't just copying stuff you saw other people do. As it is I can't make heads or tails of your code.

224 Name: Albright!LC/IWhc3yc : 2006-09-18 01:34 ID:a2om6aN1 [Del]

To tell the truth, I have a hard time following it too. Why? Because (as the comments say) it was lifted with few modifications from another (open-source) PHP image board script. And the guy who wrote that probably transcribed it from another image/message board script written in Perl. So I didn't reinvent the wheel either. But you know what? It works.

I'll write it out a bit

    $salt=substr($trip."H.",1,2);

Take the second and third characters of the trip key with "H." appended to the end of it. This is the "salt."

    $salt=ereg_replace("[^\.-z]",".",$salt);

Replace characters that don't match the regular expression [^\.-z] (basically, non-ASCII characters) with a period.

    $salt=strtr($salt,":;<=>?@[\\]^_`","ABCDEFGabcdef"); 

Replace a bunch of characters that are ASCII but not letters with letters. Remember that "\\" in this case is an escaped "\".

    $trip=substr(crypt($trip,$salt),-10)."";

The trip code is the last ten characters of the result of a standard UNIX encryption function, with the trip key and the salt as input. http://us3.php.net/crypt

Wanna rewrite that in your own code? Have fun.

225 Name: !WAHa.06x36 : 2006-09-18 04:53 ID:Heaven [Del]

To get it entirely right, you should probably apped "H.." instead of "H.". Also, you should convert from whatever charset you are using to Shift_JIS before doing anything else.

226 Name: Albright!LC/IWhc3yc : 2006-09-18 10:12 ID:Heaven [Del]

Would conversion to Shift-JIS really make a difference, seeing as it's only working with ASCII characters anyway?

227 Name: WAHa.06x36!H2DERX1Q7c : 2006-09-18 12:57 ID:Heaven [Del]

It's not only working with ASCII characters. It's working with the full 8-bit bytes.

For instance, #kï½ÂÂÂÂÂ�ƒÂƒÃ‚ƒÃ‚ƒÃ‚¯Ã‚½ÂÃ¯Â½ÂÂÂÂÂ� doesn't work if you don't convert to Shift_JIS, and furthermore, tripcodes will change depending on the charset of the board.

228 Name: !WAHa.06x36 : 2006-09-18 12:58 ID:Heaven [Del]

...and now, it's not working here. Seems I've got some fresh new bugs to sort out.

229 Post deleted by user.

230 Name: Albright!AOhZ6OjO7w : 2006-09-20 19:26 ID:a2om6aN1 [Del]

Righteous.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>whee</title>
</head>
<body>
<?php
@header('Content-type: text/html; charset=utf-8');
if (function_exists("mb_internal_encoding")) {
//This server will support multi-byte strings. Unicodey goodness!
mb_internal_encoding("UTF-8");
mb_language("uni");
mb_http_output("UTF-8");
}
error_reporting(E_ALL^E_NOTICE);
if(isset($_POST['nombre'])==true){
$name=explode("#",$_POST['nombre']);
$trip=array_pop($name);
$name=array_pop($name);
$trip=mb_convert_encoding($trip,"SJIS");
$salt=substr($trip."H.",1,2);
$salt=ereg_replace("[^\.-z]",".",$salt);
$salt=strtr($salt,":;<=>?@[\\]^_`","ABCDEFGabcdef");
$trip=substr(crypt($trip,$salt),-10)."";
$trip=mb_convert_encoding($trip,"UTF-8");
?>
<p><?php echo("<strong>".$name."</strong>!".$trip); ?></p>
<?php
}
?>
<form method="post" enctype="multipart/form-data" action="index.php">
<input type="text" size="20" name="nombre" /><input type="submit" />
</form></body></html>

This'll go into Thorn 2.

231 Post deleted by moderator.

233 Post deleted by moderator.

234 Post deleted by moderator.

235 Post deleted by moderator.

236 Post deleted by moderator.

237 Name: Mr VacBob!JqK7T7zan. : 2006-12-27 20:43 ID:pdYGsqpr [Del]

http://astrange.ithinksw.net/tools/trippersrc.zip

Now endian-safe, slightly slower on icc, much faster on gcc.

Switched to FreeBSD crypt() because it's much shorter. Unfortunately also much more bottlenecked in one random-access array lookup that goes to main memory. Didn't switch to the JTR code WAHa sent me because it would ruin my beautifully short program.

Also I forgot to add modern wakaba trips but I'll do it sometime.

This crypt isn't reentrant :(

238 Post deleted by moderator.

239 Post deleted by moderator.

240 Post deleted by moderator.

241 Name: Anonymous : 2007-01-08 20:36 ID:Heaven [Del]

>>237
freebsd crypt() is faster than openssl crypt on my laptop (turion, 64-bit freebsd), but it's slower on the machine i'm using now (pentium 3, 32-bit freebsd)... i wonder why?

242 Name: !SpoyguowHY : 2007-01-30 15:14 ID:bDIsisqc [Del]

This thread has blown my mind.

243 Name: Anonymous : 2007-03-10 22:58 ID:xUjE//AS [Del]

>>237

I'm an internet dumbass and a computer illiterate; how do I even run that program?

244 Name: Anonymous : 2007-03-11 10:14 ID:Heaven [Del]

245 Name: Anonymous : 2007-03-12 10:29 ID:Heaven [Del]

>>243
I am by no means a linux/unix expert, but I assume that you compile it by running "build.sh" script and run the executable from the command line?

246 Name: Anonymous : 2007-03-27 14:14 ID:FJyWesxi [Del]

>>245
yeah no problem if it would even build on my end

tripper.c:23:28: error: mach/mach_time.h: No such file or directory
tripper.c:23:28: error: mach/mach_time.h: No such file or directory
In file included from tripper.c:28:
sha1.c: In function earray_swapf:
sha1.c:96: warning: implicit declaration of function ehtonlf
tripper.c:23:28: error: mach/mach_time.h: No such file or directory
tdict.c: In function emainf:
tdict.c:108: warning: implicit declaration of function efgetlnf
tdict.c:108: warning: assignment makes pointer from integer without a cast
/tmp/ccQVniCX.o: In function `main':
tdict.c:(.text+0xcce): undefined reference to `fgetln'
collect2: ld returned 1 exit status

247 Name: Anonymous : 2007-03-28 07:29 ID:S0jb7OoQ [Del]

>>246

redownload

I'm not going to bother rewriting tdict to use getline() just because glibc is crazy though :(

248 Name: Anonymous : 2007-03-31 08:16 ID:tuBmA1gg [Del]

'

249 Name: Ilsambärd!YEAH.5Mbyc : 2007-04-05 12:56 ID:eUQeiaBZ [Del]

hay guyz, wuts goin on in dis tread?

I'd kill or die for a windows version of a decent tripcode decoder. Failing that, instructions for an idiot. I like YEAH but I'd like to make more. This was a pain in the ass to get.

<3

250 Name: !oTLVIPr/s. : 2007-04-06 07:28 ID:7o1GNZZJ [Del]

251 Name: Anonymous : 2007-04-06 15:05 ID:qJHsHfeE [Del]

FBI has deleted all links... how sad

252 Name: whack!m1DHNJT5H. : 2007-04-06 18:58 ID:qJHsHfeE [Del]

>>250
aww man, got a linux version?

254 Name: whack!m1DHNJT5H. : 2007-04-08 08:17 ID:qJHsHfeE [Del]

>>253
why, thank you kind sir

255 Name: Anonymous : 2007-04-28 21:51 ID:JmAOTejb [Del]

>>250

So.. how does this work? All I get is a command prompt spamming with tripcodes and what they convert into, but doesn't seem to dump anywhere that I can see.

256 Name: Anonymous : 2007-04-29 09:53 ID:Heaven [Del]

>>255
trip <string> to find tripcodes containing <string> (case insensitive)
trip -c <string> to find tripcodes containing <string> (case sensitive)

there's also http://hotaru.thinkindifferent.net/fasttrip-regex.tar.bz2, which supports regexes.

257 Name: Anonymous : 2007-05-09 02:07 ID:cJf0cKNN [Del]

>>256
What? Where do I put that?
In a txt file or something?

258 Name: Anonymous : 2007-05-09 05:14 ID:Heaven [Del]

lol, wow

259 Name: Anonymous : 2007-05-09 05:30 ID:Heaven [Del]

>>257

  1. press windows key+r
  2. type cmd
  3. press enter
  4. ???
  5. profit!!!

260 Name: Anonymous : 2007-05-10 15:49 ID:338suRr9 [Del]

This shit's useful ~desu

261 Post deleted by user.

262 Name: Anonymous : 2007-05-20 12:23 ID:aEvVXGs6 [Del]

trip -c <ROFLCOPTER>

263 Name: Ted!c0RBin.rN. : 2007-05-20 18:03 ID:G8Du7Gan [Del]

XD

Thanks, dude!

264 Name: Anonymous : 2007-06-04 02:04 ID:Ha6vCBxW [Del]

I found a tripcode that I've been looking for with Tripper+. However, it uses a non-standard character, "¼". Is there something that will convert that character into either kanji or a standard numeral or letter?

Thanks in advance.

265 Name: Anonymous : 2007-06-04 06:11 ID:IqpFg6Cr [Del]

>>264
¼ = U+00BC
0xBC in Shift-JIS = U+FF7C (http://wakaba-web.hp.infoseek.co.jp/table/sjis-0208-1997-std.txt)
U+FF7C = ¼

266 Name: !SEXwNEvaDA : 2007-06-04 06:16 ID:Heaven [Del]

>>265
oh, and now i know how to make this tripcode work ^^

267 Name: Anonymous : 2007-06-04 11:54 ID:Ha6vCBxW [Del]

>>265
Thanks a lot. Unfortunately, my trip's still not working, though.

268 Name: !SEXwNEvaDA : 2007-06-04 20:39 ID:Heaven [Del]

>>267
it might have other characters you need to convert...
or if it has any of the characters that are converted to html entities (i think just ,<>"'&) it might not work at all... i'm not sure if tripper+ handles those correctly...

269 Name: Anonymous : 2007-06-05 09:35 ID:Ha6vCBxW [Del]

>>268
There's a ~ and / in it, but I don't think those would pertain to HTML entities.

270 Name: Anonymous : 2007-06-05 11:37 ID:Heaven [Del]

>>269
where are you trying to use it? if it doesn't contain any of the characters mentioned in >>268 and you've converted any characters that aren't the same in unicode and shift-jis it should work on wakaba and kareha boards.
futallaby and shiichan (at least the versions used on 4chan) are apparently horribly broken wrt tripcodes.

271 Name: Anonymous : 2007-06-05 12:07 ID:Ha6vCBxW [Del]

>>270
I've tried at 4chan. Haven't here, yet.

272 Name: !SEXwNEvaDA : 2007-06-05 12:36 ID:Heaven [Del]

ok, apparently such tripcodes can be made to work on 4chan.
you just have to set the character encoding to shift-jis before you post.

273 Name: Anonymous : 2007-06-05 16:43 ID:wPcVChyI [Del]

> futallaby and shiichan (at least the versions used on 4chan) are apparently horribly broken wrt tripcodes.

they're interpreted as utf-8, except on /sjis/ where they aren't. official policy is to not fix this because we hate people who use tripcodes.

274 Name: test!!LURmbEuJ : 2007-06-07 14:52 ID:7vWVVPZ3 [Del]

sage lol

275 Name: Anonymous : 2007-06-08 03:56 ID:Heaven [Del]

> This board is not for testing your tripcodes.

276 Name: Anonymous : 2007-06-08 05:43 ID:Heaven [Del]

>>275
perhaps a link to the test thread should be added

277 Name: Anonymous : 2007-06-08 13:21 ID:+gCVmaWL [Del]

>>276 Or even the Sandbox.

278 Name: Anonymous : 2007-06-08 22:18 ID:KPBDP2dN [Del]

Trip works alright, but do any other generators that run under Windows do strings that aren't 8 characters long? Seems like it's pretty limited by that, and it repeats them pretty often.

279 Name: Anonymous : 2007-06-09 03:55 ID:Heaven [Del]

280 Name: f : 2007-06-14 14:06 ID:wNoBU66K [Del]

281 Name: Anonymous : 2007-06-14 20:36 ID:Heaven [Del]

282 Post deleted by user.

283 Name: !MoE/BDanU2 : 2007-06-17 21:37 ID:Heaven [Del]

well, this one has no html entities...

284 Name: YOUSUCK!3GqYIJ3Obs!!wdmn48Oq : 2007-07-18 10:12 ID:9JGyosan [Del]

LOL FAIL

285 Name: !P00O0Z0YiU : 2007-07-23 13:28 ID:zG3MLb23 [Del]

seeking 4brute-johnbs.... or some better glue for x86-sse.S (etc)

I've had some luck using OpenSSL's crypt, but I'm struggling to get the right bits in and out of john's bitslicing DES code.

286 Name: Anonymous : 2007-07-23 19:24 ID:Heaven [Del]

Have a look at vectripper. It's written for OS X but it uses john.

287 Name: Anonymous : 2007-07-24 08:22 ID:Heaven [Del]

> seeking 4brute-johnbs

you won't get it on this board.

288 Name: !P00O0Z0YiU : 2007-07-24 08:51 ID:zG3MLb23 [Del]

... indeed. After reading through the entire thread, and seeing this place's visibility on google, I can understand why nobody is just going to hand over the code to me...oh well. I'm making progress hacking something together. VecTripper's source hurts my eyes so I'm just sticking to peekin' through John. Reinventing the wheel sucks by the way...

289 Name: Anonymous : 2007-07-26 05:41 ID:Heaven [Del]

>>288
you could try asking on some other board...

290 Name: Anonymous : 2007-08-14 07:29 ID:3giPZ9Bi [Del]

I noticed an odd property of tripcodes (well, crypt actually): the last character will always be one of [.26AEIMQUYcgkosw] -- one of every fourth character in the overall character set.

291 Name: !WAHa.06x36 : 2007-08-14 09:18 ID:Heaven [Del]

>>290

DES output is 64 bits. It is encoded into a string consisting of characters from a set of 64, meaning each character encodes 6 bits. The output is 11 characters long, which adds up to 66 bits, the two last of which thus go unused. A loss of two bits means every fourth character is used.

292 Name: Anonymous : 2007-08-18 19:31 ID:Heaven [Del]

Hmm. Maybe it'd've been better to substr($crypted, 2, 10) to get more useful bits? Oh well, too late now.

293 Name: Anonymous : 2007-08-24 15:36 ID:FzFoCV2o [Del]

Anybody have a link to hotaru's tripcode program? I've tried tripper+, but it can't find the same ones his did.

294 Name: Anonymous : 2007-08-25 04:16 ID:Heaven [Del]

295 Post deleted by moderator.

296 Post deleted by moderator.

297 Post deleted by moderator.

298 Post deleted by moderator.

299 Post deleted by moderator.

300 Name: Anonymous : 2007-10-18 17:09 ID:s2ocIXbt [Del]

>>265
So I've found one I liked, but it uses a "ÂÂÂÂÂ�ƒÂƒÃ‚ƒÃ‚‚ÂÂÂÂ�". However I'm too dumb to actually understand how to find it in that list. /r/ help

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