Haka is an open source security oriented language which allows to apply security policies on (live) captured traffic. The important here, is that with Haka you can easily alter live traffic.
The first thing to come in mind here is lolcat.
Obviously, we have already played with lol cat at Haka and we have even made a blog post about it.
Among the important list of all the funny things you can do by altering some http traffic, the one I have choosen to use is to blur entire web pages.
Setting up Haka
In order to easily alter http traffic we need to use the upcomming version of
Haka. As there is currently no official build we just have to checkout the
develop
version of it.
Ensure that you have all the required dependencies: README.md
Then you can create a workspace and build Haka.
Now you should have an compiled version of Haka in your workspace.
Blurring the web
The fastest way to blur a web page is to use css to add shadow on all text.
Altering http responses
So we want to add this css snippet on every html pages. To do so we have to trick server to make sure they will response with a clear text html page.
Then we can add our magic powder to http response.
Bluuuuuur !
The full script is available at blurring-the-web.lua.
Just run it with your previously build haka. Don’t forget that you need to be root to do so.
You should have a brand new internet now ! Go get your glasses !