forked from Skiller9090/Lucifer
-
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.
New Error System, Better API, Vars, auto_set_vars
- Loading branch information
1 parent
c9c7f2a
commit 2d90660
Showing
13 changed files
with
173 additions
and
23 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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,9 +1,29 @@ | ||
from libs.LuciferErrors import NoShellError | ||
|
||
|
||
class BaseModule: | ||
def __init__(self, luciferManager, ShellRun=False): | ||
self.luciferManager = luciferManager | ||
self.actions = [] | ||
self.isShellRun = ShellRun | ||
self.shell = self.luciferManager.main_shell if self.luciferManager.current_shell_id == 0 else None | ||
if self.shell is None: | ||
for shell in self.luciferManager.alternative_shells: | ||
if shell.id == self.luciferManager.current_shell_id: | ||
self.shell = shell | ||
break | ||
else: | ||
raise NoShellError("Couldn't Find Shell With ID: "+str(self.luciferManager.current_shell_id)) | ||
|
||
def run(self): | ||
for action in self.actions: | ||
action() | ||
|
||
def set_vars(self): | ||
new_vars = { | ||
} | ||
return new_vars | ||
|
||
def get_description(self): | ||
desc = """This Module Has No Description!""" | ||
return desc |
Binary file not shown.
Binary file modified
BIN
+501 Bytes
(160%)
modules/auxiliary/gather/linux/__pycache__/uname.cpython-38.pyc
Binary file not shown.
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