This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compile: parser.cc | |
g++-4.9 -std=c++14 -I. -O3 -o parser parser.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |