Skip to content

Instantly share code, notes, and snippets.

@onionltd
onionltd / BetterThanBartards.py
Created June 5, 2020 07:17
The EndGame v2 captcha solved in 104 lines of code. Dread post: http://vworp2mspe566cws.onion/to/dread/37336b902d Original link: http://hastebin.net/exobecucof.py
# BetterThanBartards.py
# EndGame v2 captcha solved in 104 lines of code
# m = train_model(13, 12,125,15)
# This model takes about 10 minutes to train on a decent GPU or 30 on a standard CPU.
# This model will solve the EndGame v2 captcha with approximately 54.3% accuracy - better scores than a bartard!
# Increasing the batch size, model scale, or number of epochs will all result in a model that takes longer to train, but can achieve up to ~85% accuracy.
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import random
func buildIndexMapping() mapping.IndexMapping {
indexMapping := bleve.NewIndexMapping()
indexMapping.TypeField = "type"
indexMapping.DefaultAnalyzer = en.AnalyzerName
if err := indexMapping.AddCustomAnalyzer("custom_alt", map[string]interface{}{
"type": custom.Name,
"tokenizer": unicode.Name,
"token_filters": []string{
detectlang.FilterName,
en.PossessiveName,

Keybase proof

I hereby claim:

  • I am onionltd on github.
  • I am onionltd (https://keybase.io/onionltd) on keybase.
  • I have a public key whose fingerprint is F01F ED47 9795 54C9 2D9F 56B2 E4B6 CAC4 9B24 2A44

To claim this, I am signing this object: