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
| 5 | |
| 6 | |
| 7 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected