Rating:

# Break In 2016 - Bots are Awesome!

**Category:** golang, irc, git
**Points:** 100
**Solves:** 38
**Description:**

> Aren't they awesome !

## Write-up

by [ParthKolekar](https://github.com/ParthKolekar)

The bot in question was on the IRC channel. The bot was an instance
of goircbot named teehee bot. The bot would respond to all queries of
the form

!teeheeBreakIn query

For getting the flag, a recon had to be made on the bot. The bot replied
to `!teeheeBreakin about` and `!teeheeBreakin help` among other commands
which would show the github page for goircbot.

The source code had a `breakin` branch with the following lines in the source
code

bot.WriteMessage("This is where all the magic happens ;)", name[0])
} else if flags[1] == "breakInEnter" {
} else {
bot.WriteMessage("I didn't get that, try '!teehee help' ??", name[0])
}

This leads to the final solution

!teeheeBreakIn breakInEnter

On giving the bot this command the bot replies with

sugarHowDoYouGetSoFlyyy

Which is the flag.

## Other write-ups and resources

* <https://github.com/objEEdump/breakin/tree/master/bots_are_awesome>

Original writeup (https://github.com/ctfs/write-ups-2016/tree/master/breakin-ctf-2016/misc/bot-are-awesome-100).