Source

imalse / scenario / keylogger / server_cmd.py

"""

This file contains the Server Command Meta Description for the file 
exfiltration scenario.

"""

import jsonpickle

from core.nodes.server import ServerCMD as SCMD
from scenario.keylogger.config import Server as ServerDescription

class ServerCMD(SCMD):
    
    """This class is a subclass of ServerCMD."""
    
    def __init__(self, desc=None):
        """Initialize"""
        if desc == None:
            desc = ServerDescription()
        
        SCMD.__init__(self, desc)
        self.sleep_duriation = desc.interval