BlackWidow Macro Keys In Linux


This is a C program which sends the init code from Razer windows proprietary drivers to initialize the 'macro' keys on Razer BlackWidow keyboards on Linux.
Linux users can then use the keys for macros using tools like xmacro or even just bind the keys to functions, scripts or programs using the window manager.
If you really wanted you could also rebind keys to existing keyboard functions using xmodmap.

The init code was taken from the windows drivers using wireshark usb capture.

The source code is available on github under MIT license.

Razer BlackWidow Macro Keys v1
Razer BlackWidow Device Found
Sending data:
 00 00 00 00 00 02 00 04
 02 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00
Continue Reading

torjail - sandboxed torbrowser

I have decided to opensource this project & it is now available on github.

tl-dr: this script downloads & runs torbrowser in a sandbox within a seperate windowed X session using Xephyr


This started as a simple Xephyr script which sandboxed torbrowser to enable seccomp.
It then evolved to include ramdisk opreation.
I then found torbrowser used by some of my VMs were not kept up to date using the OS package managers so I extended it again to include installing of torbrowser into its own folder within the users home directory.
The final addition was checksum & GPG verification (ref: tor gpg verification)

The script sets up a working env within ~/.torjail
It then downloads torbrowser bundle from tor (also has a update function)
Downloads and verifies files are valid using GPG key and sha256 checksum.
Extracts torbrowser into ~/.torjail
Sets up the env for a WM (am using
Continue Reading

Extending Windows Firewall With Powershell

powershell banner

The GUI with Windows Firewall isn't the prettiest & adding multiple rules within the GUI is pretty tiresome ( so why not automate it? ).

A lot of people use custom software firewalls but Windows Firewall is actually pretty good when working on large corporate networks, automating things with Group Policies & Powershell can be fun.

Here are some simple scripts which should help both power users & systems administrators.
The main task I found tiresome is adding IP specific blocks, especially when there are multiple IPs involved.

I first made a script to simply block a single IP.

.\fw-block.ps1 add

I then expanded on this script, adding the ability to use blocklists.

Windows Firewall IP Blocklist Script

This script allows you to block based on a blocklist provided.
The blocklist should be a text file with IP addresses on each line.

The script syntax is pretty

Continue Reading

Fixing Windows Update on Windows 10 Pro


A lot of people have been complaining that Windows 10 has no option within settings to change the way Windows Update works.
This is true in the sense that the GUI only shows 2 options.

You can however use software policies to force these settings, this option is probably included for large companies who don't really want to have hundreds of systems downloading every update as it comes out & prompting the users to reboot.

The registry path we are interested in is:


There are various settings and options, the main one is AUOptions.

AUOptions      : 0 - Default (Uses Settings UI Which Is Limited In WIN10)
                 1 - Never Check
                 2 - Notify
                 3 - Download & Notify
                 4 - Auto Download & Schedule Install

I personally use option 2 as I like windows to notify me of updates so I can

Continue Reading
Javascript is turned off or your browser does not support it. The appearance of this site will be affected without javascript.