-
10 April 2020
Get a list of upcoming CTFs directly from your command line
I just created a small endpoint to query the next 10 upcoming CTFs from. Just open a terminal and runcurl ctf.watch
That’s right, it even has ansi-art logos! (Well, at least a resemblance…)
You can find the source available here
Enjoy!
-
19 March 2020
I made this to solve a challenge while interviewing for a security IT company, here is a short writeup:
Introduction
The task of the project was about finding an obfuscated app on the play store, modifying it such that it would notify another app whenever it was opened.
I did not really have a quick way to check wheter an app on the play store was obfuscated or not, so I decided to choose an app that I knew for sure had at least some kind of obfuscation, and that app is Whatsapp Messenger.
T...
-
03 November 2019
Automatic vim folds for config files
Vim folds are neat. You can toggle them open/closed quickly with
za
(which I remapped to space), but creating/deleting them is kind of awkward withzf
/zd
and most of all making vim remember where your folds were is a bit of a pain.But luckily there is a way to define folds through comments in the source code, which is really as cool as it sounds.
It is particularly comfortable to use in config files, that sometimes get a bit too long, and organising stuf...
-
07 September 2019
Rotate vim colorscheme between day and night automatically
It happens quite often that I work on my laptop outside during the day. My all-time favourite colorcheme, alduin, gets absolutely killed by sunlight. For this reason, I have to sometimes switch to a light colorscheme.
Left for the night, right for the day. Switching manually colorscheme gets tedious after the third time. But it turns out that making it automatic is really simple, just add those lines to your
.vimrc
:if s...
-
14 July 2019
Get notified on Telegram on every ssh login
Step 1: Create a telegram bot
- Open up telegram, search
@botfather
and start a conversation with it - Type
/newbot
and follow the instructions to choose a username for your bot (with which you can search for your bot with @username) and a screen name (just the name that will appear at the top of the conversation with your bot. - Save the token generated by
@botfather
somewhere - Look up your bot in the Telegram search (@username) and start a c...
- Open up telegram, search
-
08 December 2018
Cool bash stuff with ANSI escape codes
Let’s see a few fun stuff you can do with a bit of bash and ANSI escape codes
Example #1: ASCII Progress bar
You know a script is cool when it shows a progress bar. And you write only cool scripts, right?
For this, we don’t need fancy stuff, just the
\r
char will do the magic for us. Let’s also assume you have apercentage
variable lying around with display the progress of whatever unoptimized thing you’re doing as an integer from 0 to 100.Python is...