imalse / scenario / keylogger /

Full commit

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


import re

from core.real.node import PhysicalNode
from core.nodes.client import ClientCMD as CCMD
from scenario.keylogger.config import Client as ClientDescription

MAX_NUM = 100

class ClientCMD(CCMD):
    """This class is a subclass of ClientCMD."""
    def __init__(self, desc=None):
        if desc == None:
            desc = ClientDescription()
        CCMD.__init__(self, desc)
        self.ftp_info = None
        self.file_filter = None
    def keylog(self, sock, data):