Changed Monkey SSH file path to /tmp to not require root.

Tiny PEP8 changes
This commit is contained in:
acepace 2016-08-20 15:28:14 +03:00
parent 72fc0c3bba
commit 0eb655c44b
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class Configuration(object):
continue continue
if key in ["name", "id", "current_server"]: if key in ["name", "id", "current_server"]:
continue continue
if self._depth_from_commandline and key=="depth": if self._depth_from_commandline and key == "depth":
continue continue
try: try:
default_value = getattr(Configuration, key) default_value = getattr(Configuration, key)
@ -105,7 +105,7 @@ class Configuration(object):
dropper_set_date = True dropper_set_date = True
dropper_date_reference_path = r"\windows\system32\kernel32.dll" if sys.platform == "win32" else '/bin/sh' dropper_date_reference_path = r"\windows\system32\kernel32.dll" if sys.platform == "win32" else '/bin/sh'
dropper_target_path = r"C:\Windows\monkey.exe" dropper_target_path = r"C:\Windows\monkey.exe"
dropper_target_path_linux = '/bin/monkey' dropper_target_path_linux = '/tmp/monkey'
########################### ###########################
# Kill file # Kill file
@ -145,7 +145,7 @@ class Configuration(object):
depth = 2 depth = 2
current_server = "" current_server = ""
#Configuration servers to try to connect to, in this order. # Configuration servers to try to connect to, in this order.
command_servers = [ command_servers = [
"41.50.73.31:5000" "41.50.73.31:5000"
] ]

View File

@ -35,7 +35,7 @@
"dropper_log_path_linux": "/tmp/user-1562", "dropper_log_path_linux": "/tmp/user-1562",
"dropper_set_date": true, "dropper_set_date": true,
"dropper_target_path": "C:\\Windows\\monkey.exe", "dropper_target_path": "C:\\Windows\\monkey.exe",
"dropper_target_path_linux": "/bin/monkey", "dropper_target_path_linux": "/tmp/monkey",
"kill_file_path_linux": "/var/run/monkey.not", "kill_file_path_linux": "/var/run/monkey.not",