Skip to content

Commit 714a3e5

Browse files
author
David Hunt
authored
adding new log (#177)
1 parent 9dcf49d commit 714a3e5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

app/service/utility_svc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from base64 import b64encode, b64decode
22
from random import randint
33

4+
from app.utility.logger import Logger
45
from app.utility.stealth import obfuscate_ps1, obfuscate_bash
56

67

@@ -23,3 +24,7 @@ def encode_string(s):
2324
def jitter(fraction):
2425
i = fraction.split('/')
2526
return randint(int(i[0]), int(i[1]))
27+
28+
@staticmethod
29+
def create_logger(name):
30+
return Logger(name)

plugins/sandcat

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def build_plugins(plugs):
116116
file_svc = FileSvc(cfg['stores'])
117117
services = dict(
118118
data_svc=data_svc, auth_svc=auth_svc, utility_svc=utility_svc, operation_svc=operation_svc,
119-
file_svc=file_svc, plugins=plugin_modules, logger=Logger('plugin')
119+
file_svc=file_svc, plugins=plugin_modules
120120
)
121121
terminal = CustomShell(services)
122122
welcome_msg(cfg['host'], cfg['port'])

0 commit comments

Comments
 (0)