MCPcopy Create free account
hub / github.com/Bashfuscator/Bashfuscator / StringObfuscator

Class StringObfuscator

bashfuscator/core/mutators/string_obfuscator.py:7–44  ·  view source on GitHub ↗

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. :param name: name of

Source from the content-addressed store, hash-verified

5
6
7class StringObfuscator(Mutator):
8 """
9 Base class for all String Obfuscators. A String Obfuscator is a
10 Mutator that builds the input string by executing a series of
11 commands to build chunks of the original string, and reorganizing
12 and concatenating those chunks to reassemble the original string.
13
14 :param name: name of the StringObfuscator
15 :type name: str
16 :param description: short description of what the StringObfuscator
17 does
18 :type description: str
19 :param sizeRating: rating from 1 to 5 of how much the
20 StringObfuscator increases the size of the overall payload
21 :type sizeRating: int
22 :param timeRating: rating from 1 to 5 of how much the
23 StringObfuscator increases the execution time of the overall
24 payload
25 :type timeRating: int
26 :param binariesUsed: list of all the binaries the StringObfuscator
27 uses
28 :type binariesUsed: list of strs
29 :param fileWrite: True if the Command Obfuscator requires
30 creating/writing to files, False otherwise
31 :type fileWrite: bool
32 :param notes: see :class:`bashfuscator.common.objects.Mutator`
33 :type notes: str
34 :param author: see :class:`bashfuscator.common.objects.Mutator`
35 :type author: str
36 :param credits: see :class:`bashfuscator.common.objects.Mutator`
37 :type credits: str
38 """
39
40 def __init__(self, name, description, sizeRating, timeRating, binariesUsed=[], fileWrite=False, notes=None, author=None, credits=None, evalWrap=True, unreadableOutput=False):
41 super().__init__(name, "string", description, sizeRating, timeRating, notes, author, credits, evalWrap, unreadableOutput)
42
43 self.fileWrite = fileWrite
44 self.binariesUsed = binariesUsed

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected