forked from mitre/caldera
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructuring how we handle our obfuscators (mitre#980)
- Loading branch information
david
authored
Dec 30, 2019
1 parent
7cf31dc
commit 29d4da5
Showing
6 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from app.utility.base_world import BaseWorld | ||
|
||
|
||
class BaseObfuscator(BaseWorld): | ||
|
||
def run(self, link, **kwargs): | ||
agent = self.__getattribute__('agent') | ||
supported_platforms = self.__getattribute__('supported_platforms') | ||
if agent.platform in supported_platforms and link.ability.executor in agent.executors: | ||
o = self.__getattribute__(link.ability.executor) | ||
return o(link, **kwargs) |
Submodule stockpile
updated
6 files
+1 −1 | .travis.yml | |
+15 −10 | app/obfuscators/base64_basic.py | |
+23 −8 | app/obfuscators/base64_jumble.py | |
+2 −2 | app/obfuscators/plain_text.py | |
+6 −2 | hook.py | |
+9 −4 | tests/test_obfuscators.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters