A simple utility to convert/obfuscate base64. Using a silly and impractical method.
There are people and things that look for base64 to be transmitted by email, or just about any other text based delivery system. Digital Loss Prevention (DLP) will often detect blocks of Base64, and flag it to be either stopped or investigated. This tool simply changes the text so that it no longer will be recognized by any normal Base64 detection suite.
The only real set up is moving the scripts into place, and making sure that bash, base64, and python are on the system. (It is a Linux system)
How this Works:
The wrapper script, lolfiltration.sh, will take the binary, and transform it into Base64 text using the system utility base64. Once the binary file has been converted into Base64, The core_lol.py script takes over, and converts the Base64 into LolFiltration text. Example below:
Once the <file_name>.lol is generated, it is ready to be sent offsite. This can be done on a USB drive, via email, or any other method that will work for your use case.
Once you have the text at your desired location, it is time to convert it back into Base64, and then back into the binary. To accomplish this, you can use the wrapper script with the -d option. The de-lolfiltration process will begin.
lolfiltration.sh -d example.lol
The output will be lolfiltrated.file, that is your original binary.
Nothing all that mystical or hard to follow here. Take binary, and convert it to Base64. Then convert the Base64 into mildly amusing gibberish. The transmit said gibberish. The un-gibberish it. Then convert Base64 back into binary. Then… Profit.
The ‘work horse’ of the whole exchange is the core-lol.py file. It does it for the lol’s. That python script can be used interdependently of the wrapper script. Doing so might enable it to be integrated into your workflow easier.
At the end of the day, this is just a silly script that I am using to test this new publishing platform. It is useful, in a weird sort of way, and I would be rather surprised if DLP picked up on it. Unless they start to account for things like this, and of course – I am certain they will…