Files
Pennyw0rth-NetExec/core/context.py
T
byt3bl33d3r eb4f185118 Database now tracks which users have admin access to which hosts
Added a configuration file for specifying Empire's and Metasploits API and RPC creds
Added the empire_agent_exec module: connects to Empire, generates a launcher and executes it

Minor bug fixes
2016-04-08 00:25:06 -06:00

16 lines
403 B
Python

import logging
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('cme.conf')
for key, value in vars(arg_namespace).iteritems():
setattr(self, key, value)