mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
db223b583a
* For some reason the config file got lost in between version bumps, re-added it * Improved the logic in first_run.py, it will now autodetect missing files and will copy/generate them accordinglu * Code cleanup in cmedb.py and bug fixes in crackmapexec.py
17 lines
440 B
Python
17 lines
440 B
Python
import logging
|
|
import os
|
|
from ConfigParser import ConfigParser
|
|
|
|
class Context:
|
|
|
|
def __init__(self, db, logger, arg_namespace):
|
|
self.db = db
|
|
self.log = logger
|
|
self.log.debug = logging.debug
|
|
self.localip = None
|
|
|
|
self.conf = ConfigParser()
|
|
self.conf.read(os.path.expanduser('~/.cme/cme.conf'))
|
|
|
|
for key, value in vars(arg_namespace).iteritems():
|
|
setattr(self, key, value) |