示例#1
0
 def __init__(self):
     IMAPLayerOperator.__init__(
         self, "IMAP-Cmd2ParamSeparator", "Change the separator char between the command and the first parameter"
     )
     param = StringParam("CHAR", "\r", "Separator char", True)
     param.set_multiple_values(["\r", "   ", "\t"])
     self.add_param(param)
示例#2
0
	def __init__(self):
		IMAPLayerOperator.__init__(self,'IMAPReplaceCommand', 'Substitute a commmand with another')	
		self.add_param(StringParam('From','LSUB','Command to be replaced', True))
		param = StringParam('To','RENAME','Command alternatives', True)
		param.set_multiple_values(['RENAME', 'COPY', 'FIND', 'LIST'])

	        self.add_param(param)
示例#3
0
 def __init__(self):
     HTTPLayerOperator.__init__(
         self, "Command2Url", "Chenge the separator character between the HTTP method and the URL"
     )
     param = StringParam("CHAR", " \t", "Character to be used as separator", isMultiValues=True)
     param.set_multiple_values(["    ", "\t", "  \t", "\r", " \r"])
     self.add_param(param)
示例#4
0
	def __init__(self):
		IMAPLayerOperator.__init__(self,'IMAP-CmdSeparator', 'Change the separator char between the TAG and the command')	
		param = StringParam('CHAR','\r','Separator char',True)
		param.set_multiple_values(['\r', '   ', '\t'])
		self.add_param(param)
示例#5
0
	def __init__(self):
		HTTPLayerOperator.__init__(self,'Url2Version','Change the separator character between the URL and the HTTP version')	
		param = StringParam('CHAR',' \t','Character to be used as separator', isMultiValues=True)
		param.set_multiple_values(['	','\t','  \t'])
		self.add_param(param)
示例#6
0
	def __init__(self):
		FTPLayerOperator.__init__(self,'Telnet-Control-Sequences', desc)	
		temp = StringParam('TCS','\xffa','Control sequence to be inserted', isMultiValues=True)
		#temp.set_multiple_values(["\xffa","\xff\xf0","\xff\xf1","\xff\xfb\xff"])
		temp.set_multiple_values(complete_list)
		self.add_param(temp)
示例#7
0
	def test_string_param(self):
		temp = StringParam("param0", 5, "desc0", True)
		if temp.get_value()!="5": raise Fail("constuctor error")
		temp.set_multiple_values(["ciao",2,[]])
		if temp.get_multiple_values()!=["ciao","2","[]"]: raise Fail("get_multiple_values failed")
示例#8
0
	def __init__(self):
		HTTPLayerOperator.__init__(self,'BeginCharacters', 'Insert a character before the HTTP method')
		param = StringParam('CHAR',' ','Character to be inserted', isMultiValues=True)
		param.set_multiple_values(['       ','\r','\t'])
		self.add_param(param)
示例#9
0
	def __init__(self):
		IMAPLayerOperator.__init__(self,'WeirdTag', 'Change the case of the imap command')	
		param = StringParam('CHAR','	NOOP','Char to be added at the end of the Tag',True)
		param.set_multiple_values(['	NOOP',',.','"a"','{12}','\t'])
		self.add_param(param)