Skip to content

Instantly share code, notes, and snippets.

@zamiur
Last active November 23, 2022 03:52
Show Gist options
  • Save zamiur/2df1aa8de514ff2e0fafa211752c8bcf to your computer and use it in GitHub Desktop.
Save zamiur/2df1aa8de514ff2e0fafa211752c8bcf to your computer and use it in GitHub Desktop.
Python Tripcode Generator
#!/usr/bin/env python
import sys, re, string, crypt
def mktripcode(pw):
pw = pw.decode('utf_8', 'ignore') \
.encode('shift_jis', 'ignore') \
.replace('"', '"') \
.replace("'", '') \
.replace('<', '&lt;') \
.replace('>', '&gt;') \
.replace(',', ',')
salt = (pw + '...')[1:3]
salt = re.compile('[^\.-z]').sub('.', salt)
salt = salt.translate(string.maketrans(':;<=>?@[\\]^_`', 'ABCDEFGabcdef'))
trip = crypt.crypt(pw, salt)[-10:]
return trip
x=0
y=0
#mackie done: 34732252
#4chan 38759849 48531118
#ethoxy 6885633
#sakaki 155400000
while 1==1:
if re.search('moot',string.lower(mktripcode(str(x))))>-1:
print x
print '###########FOUND###########\n'+mktripcode(str(x))+'\n###########FOUND###########\n'
elif x==y:
print x
y=y+100000
x=x+1
# Mirror of https://www.mm-rs.org/forums/lofiversion/index.php/t19070.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment