Base class for String Obfuscators used by the framework

class bashfuscator.core.mutators.string_obfuscator.StringObfuscator(name, description, sizeRating, timeRating, binariesUsed=[], fileWrite=False, notes=None, author=None, credits=None, evalWrap=True, unreadableOutput=False)[source]

Bases: bashfuscator.core.mutators.mutator.Mutator

Base class for all String Obfuscators. A String Obfuscator is a Mutator that builds the input string by executing a series of commands to build chunks of the original string, and reorganizing and concatenating those chunks to reassemble the original string.

  • name (str) – name of the StringObfuscator
  • description (str) – short description of what the StringObfuscator does
  • sizeRating (int) – rating from 1 to 5 of how much the StringObfuscator increases the size of the overall payload
  • timeRating (int) – rating from 1 to 5 of how much the StringObfuscator increases the execution time of the overall payload
  • binariesUsed (list of strs) – list of all the binaries the StringObfuscator uses
  • fileWrite (bool) – True if the Command Obfuscator requires creating/writing to files, False otherwise
  • notes (str) – see bashfuscator.common.objects.Mutator
  • author (str) – see bashfuscator.common.objects.Mutator
  • credits (str) – see bashfuscator.common.objects.Mutator