Exemple #1
0
	def __init__(self):
		"""Init base class; install required software; setup initial configuration."""
		DispatchAgent.__init__(self)
		self.pids = []

		# 'Attack Source'
		self.nodes = []		# nodelist 
		self.src = None		# CIDR

		# 'Basics'
		self.dst = None			# CIDR
		self.proto = None		# Valid values are these strings: ['tcp', 'udp']
		self.length = None		# minmax() dist or int (fixed minmax)

		# 'Rate Info'
		self.ratetype = None	# One of string: one of: ['flat', 'rampup', 'pulse'] 
		self.highrate = None	# int
		self.lowrate = None		# int
		self.hightime = None	# int
		self.lowtime = None		# int
		self.risetime = 0		# int 
		self.falltime = 0		# int 

		# 'UDP/TCP' config
		self.sport = 'minmax(0,65535)'	# minmax() dist or int (fixed minmax)
		self.dport = 'minmax(0,65535)'  # minmax() dist or int (fixed minmax)
		self.tcpflags = ['SYN']    # one or more of string set: 'SYN', 'FIN', 'RST', 'ACK', 'PSH', 'URG'		

		self.log = logging.getLogger(__name__)
Exemple #2
0
 def __init__(self):
     DispatchAgent.__init__(self)
     
     #Default arguments for server and clientId:
     self.server = 'server'
     self.port = 55343
     self.clientId = None
     
     # set the time (in minutes): 0 to 1440 (1339 inclusive)
     self.LT = 0
	def __init__(self):
		"""Init base class; install required software; setup initial configuration."""
		self.log = logging.getLogger(__name__)
		DispatchAgent.__init__(self)

		#requireSoftware('libpcap-dev')
		#requireSoftware('tcpreplay')  

		self.pids = []

		# 'Basics'
		self.interface = 'eth0' 			# CIDR
		self.pcapfile = None 
Exemple #4
0
    def __init__(self):
        """Init base class; install required software; setup initial configuration."""
        self.log = logging.getLogger(__name__)
        DispatchAgent.__init__(self)

        #requireSoftware('libpcap-dev')
        #requireSoftware('tcpreplay')

        self.pids = []

        # 'Basics'
        self.interface = 'eth0'  # CIDR
        self.pcapfile = None
Exemple #5
0
	def __init__(self):
		DispatchAgent.__init__(self)
		self.clientFile = '/tmp/iperfClientOutput.txt'
		self.serverFile = '/tmp/iperfServerOutput.txt'
		self.pid = None
Exemple #6
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.cmdstring = " " 
     self.pid = None
Exemple #7
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.cmdstring = " "
     self.pid = None
Exemple #8
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.path = ''
 def __init__(self):
     DispatchAgent.__init__(self)
     self.server = None # configured by MAGI
     self.configPath = None # configured by MAGI
     self.clientID = None
 def __init__(self):
     DispatchAgent.__init__(self)
     self.server = None # configured by MAGI
     self.configFileName = None # configured by MAGI
Exemple #11
0
 def __init__(self):
     DispatchAgent.__init__(self)
     return
Exemple #12
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.process = None
Exemple #13
0
 def __init__(self):
     DispatchAgent.__init__(self)
     # usually replaced by an "arg" from the agent
     self.report_dir = "/tmp"
 def __init__(self):
     DispatchAgent.__init__(self)
     self.filename = 'tmp-scenario.json'
Exemple #15
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.sourceFile = ''
     self.destinationFile = ''
Exemple #16
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.clientFile = '/tmp/iperfClientOutput.txt'
     self.serverFile = '/tmp/iperfServerOutput.txt'
     self.pid = None
Exemple #17
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.dumpfile = "/tmp/tcpdump.cap"
     self.dest = None
     self.pid = None
Exemple #18
0
	def __init__(self):
		DispatchAgent.__init__(self)
		self.clientFile = '/tmp/iperfClientOutput.txt'
		self.serverFile = '/tmp/iperfServerOutput.txt'
		self.port = 28888
		self.serverProcess = None
Exemple #19
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.filename = '/users/arapapor/magi-modules/FileCreator/calc.aal'
Exemple #20
0
 def __init__(self):
     # The default arguments for server and clientId go in here
     DispatchAgent.__init__(self)
     self.server = 'localhost'
     self.port = 55343
     self.clientId = None
 def __init__(self):
     DispatchAgent.__init__(self)
     self.server = None  # configured by MAGI
     self.configPath = None  # configured by MAGI
     self.clientID = None
Exemple #22
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.simRunning = False
     self.configFileName = None # must be configured by MAGI
Exemple #23
0
	def __init__(self):
		DispatchAgent.__init__(self)
		self.process = None
Exemple #24
0
    def __init__(self):
        # The default arguments for server and clientId go in here 
        DispatchAgent.__init__(self)
        self.server = 'localhost' 
	self.port = 55343 
        self.clientId = None 
Exemple #25
0
 def __init__(self):
     DispatchAgent.__init__(self)
Exemple #26
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.clientFile = '/tmp/iperfClientOutput.txt'
     self.serverFile = '/tmp/iperfServerOutput.txt'
     self.port = 28888
     self.serverProcess = None
Exemple #27
0
 def __init__(self):
     DispatchAgent.__init__(self)
     self.path = ''
Exemple #28
0
 def __init__(self):
     DispatchAgent.__init__(self)
     # usually replaced by an "arg" from the agent
     self.report_dir = "/tmp"