It is a bot that visits trollthetroll.net, log in automatically, waits for the cookie, if cookie is available, it solves math captcha ex. "twenty-five minus negative nine" and steals the cookie. Bot is quite benign, giving a human chance to steal it before him, waiting some extra time ~60sec before bot eats a cookie.
To run we need to setup environment variables, login and password for
the website, respectively TROLLTHETROLL_LOGIN
and TROLLTHETROLL_PASSWORD
We are using ruby and gems:
- watir
- webdrivers
- number_in_words
troll.rb
- super simple browser automation, using watirdecipher.rb
- library for solving math captcha, based on number_in_words gem