mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
20 lines
442 B
Python
Executable File
20 lines
442 B
Python
Executable File
import configparser
|
|
import os
|
|
|
|
from nxc.paths import NXC_PATH, CONFIG_PATH
|
|
|
|
|
|
class Context:
|
|
def __init__(self, db, logger, args):
|
|
for key, value in vars(args).items():
|
|
setattr(self, key, value)
|
|
|
|
self.db = db
|
|
self.log_folder_path = os.path.join(NXC_PATH, "logs")
|
|
self.localip = None
|
|
|
|
self.conf = configparser.ConfigParser()
|
|
self.conf.read(CONFIG_PATH)
|
|
|
|
self.log = logger
|