View bot.js
var telegram = require('telegram-bot-api'); | |
var util = require('util'); | |
function Bot(token) { | |
this.id = null; | |
this.name = null; | |
this.username = null; | |
var self = this; |
View CTFBot.js
var telegram = require('telegram-bot-api'); | |
var util = require('util'); | |
var _ = require('lodash'); | |
function CTFBot(token, ctf) { | |
this.id = null; | |
this.name = null; | |
this.username = null; | |
this.ctf = ctf; |
View Makefile
compile: parser.cc | |
g++-4.9 -std=c++14 -I. -O3 -o parser parser.cc |
View pwn_rabbits.sh
#!/bin/bash | |
for word in $(cat passwordlist.lst) | |
do | |
tokens=$(curl -c cookie.txt -b cookie.txt http://challenge.followthewhiterabbit.es:1234/ 2>/dev/null | grep value= | head -n2 | sed -E "s/.*value=(.*)>/\1/") | |
token1=$(echo $tokens | cut -d' ' -f1) | |
token2=$(echo $tokens | cut -d' ' -f2) | |
echo "attempting word $word" |