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

Class Encoder

bashfuscator/core/mutators/encoder.py:7–41  ·  view source on GitHub ↗

Base class for all Encoders. An Encoder is a Mutator that mutates the entire input given, so none of the input is visible after encoding. :param name: name of the Encoder :type name: str :param description: short description of what the Encoder does :type description: s

Source from the content-addressed store, hash-verified

5
6
7class Encoder(Mutator):
8 """
9 Base class for all Encoders. An Encoder is a Mutator that mutates
10 the entire input given, so none of the input is visible after
11 encoding.
12
13 :param name: name of the Encoder
14 :type name: str
15 :param description: short description of what the Encoder does
16 :type description: str
17 :param sizeRating: rating from 1 to 5 of how effectively the
18 Encoder increases the size of the overall payload
19 :type sizeRating: int
20 :param timeRating: rating from 1 to 5 of how much the
21 Encoder increases the execution time of the overall
22 payload
23 :type timeRating: int
24 :param binariesUsed: list of all the binaries the Encoder uses
25 :type binariesUsed: list of strs
26 :param fileWrite: True if the Encoder requires
27 creating/writing to files, False otherwise
28 :type fileWrite: bool
29 :param notes: see :class:`bashfuscator.common.objects.Mutator`
30 :type notes: str
31 :param author: see :class:`bashfuscator.common.objects.Mutator`
32 :type author: str
33 :param credits: see :class:`bashfuscator.common.objects.Mutator`
34 :type credits: str
35 """
36
37 def __init__(self, name, description, sizeRating, timeRating, binariesUsed=[], fileWrite=False, notes=None, author=None, credits=None, evalWrap=True, unreadableOutput=False):
38 super().__init__(name, "encode", description, sizeRating, timeRating, notes, author, credits, evalWrap, unreadableOutput)
39
40 self.binariesUsed = binariesUsed
41 self.fileWrite = fileWrite

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected