Skip to content

Posts tagged ‘C++’

8
Feb

Wordling Your Code Base With Vim

Visualizing your code base using wordle is a nice technique to get a quick overview and impression of your source code. The downside is that you need to concatenate all your source code into a single text file before you can paste it into Wordle. In Linux, this is most easy to accomplish using command line tools. In Windows environments, however, you may not have cygwin installed, and so Vim is probably the easiest solution. (Update: A total of 35 key presses are required for this example.) Read moreRead more

30
Dec

Overwriting new and delete

In C++, you can generally use your own stuff if you do not like what you get from the language and standard library: You can overload functions, inherit classes and specialize templates – you can change things into what you want. You do not want to overload &&, || and comma. And you almost never want to overload the global operator new and operator delete.

But I am special, so I do want to.

Read moreRead more

25
Sep

Using ARP Poisoning to Create an Ad-Hoc Firewall – Part 1: The Strategy

Some time ago I wrote a small C++ wrapper library around libnet and libpcap to ease the development of various networking applications. After spending some time trying to come up with an idea, I figured I would try and create a very simple ad-hoc firewall by utilizing ARP poisoning (this will be explained shortly) on hosts I wanted to firewall. I know very little about firewalls, so I thought it would be a cool project. Furthermore, it is also a legitimate use of ARP poisoning which is certainly not something you come across every day. In this post I will explain the basic idea behind ARP poisoning and how I intend to use it to create an ad-hoc firewall.

Read moreRead more

Switch to our mobile site