Obfuscate or Deobfuscate Batch Scripts using Encoding

A set of Python scripts that uses a known method of batch script obfuscation by messing with the encoding. Simply pass in the encode/decode [-e/-d] parameter and file name ending in either .cmd or .bat as a parameter.

Usage: python -h

To encode: python -e myfile.cmd

To decode: python -d test_obfuscated.cmd

example image


Leave a Reply

Your email address will not be published. Required fields are marked *