Using a Docker container to log into IRC via Tor17 October 2020
For those of you that use Docker, or would like to learn, you can immediately get started by running:
docker run -it cpp1/weechat_tor
It will pull a container containing Ubuntu 14.04, WeeChat (IRC client), and a Tor proxy. It opens up WeeChat and immediately connects to OFTC over Tor.
You’ll see something like this:
Nutshell: Docker is an open-source project that leverages isolation features in the Linux kernel to run applications in VM-like userspace environments (containers). A container is often a more lightweight and efficient option than running an application in a virtual machine.
I’ve recently got hooked on it because it’s great for reusing applications that have some complexity to the environment they run in. For example, using Weechat + Tor is a nice service I like to have running for myself, but it’s a bit of a pain to set up each time I move to a new computer or server.
The Virginia Tech Cyber Security Club is planning on hosting a collegiate CTF event next year and I’m vouching for challenges to be made in Docker. That way any student can make a challenge, and by putting it in a Docker container, makes it much easier to host and setup for the event.
WeeChat is a feature rich IRC client that’s nice because it uses ncurses and can easily be used in a terminal. I just leave it running on a server. It’s nice to leave your IRC client running continuously somewhere so you can drop in on your channels any time without having to reconnect or lose back logs.
Also seeing a lot of these can get annoying:
I personally like to use Digital Ocean and tmux. Really easy to set up.
# server: tmux new -s irc docker run -it cpp1/weechat_tor # close terminal # from laptop/desktop: ssh [email protected] -t tmux a -t irc
You can check out my Dockerfile here if you want to make changes.
I'm on Twitter if you'd like to follow my interests.