# import all of Sulley's functionality from sulley import * s_initialize("user") s_static("USER") s_delim(" ") s_string("test") s_static("\r\n") s_initialize("pass") s_static("PASS") s_delim(" ") s_string("test") s_static("\r\n") s_initialize("type") s_static("TYPE") s_delim(" ") s_string("ascii") s_static("\r\n") s_initialize("BasicCommands") s_group("commands", values=["DELE", "APPE", "LS","DIR","LIST"]) if s_block_start("command",group="commands"): s_delim(" ") s_string("test.txt") s_static("\r\n") s_block_end() s_initialize("FileCommands") s_group("commands", values=["RNTO","RNFR","MDTM","SIZE","STOR"]) if s_block_start("command",group="commands"): s_delim(" ") s_string("test") s_static("\r\n") s_block_end() s_initialize("FolderCommands") s_group("commands", values=["CD","RMD","MKD","MKDIR","NLST","PWD"]) if s_block_start("command",group="commands"): s_delim(" ") s_string("test") s_static("\r\n") s_block_end() s_initialize("TransferCommands") s_group("commands", values=["RETR","GET","PUT"]) if s_block_start("command",group="commands"): s_delim(" ") s_string("test.txt") s_static("\r\n") s_block_end() s_initialize("OtherCommands") s_group("commands", values=["HELP","ACCT","CDUP","NOOP","STAT","STRU","SYST","PORT","BIN"]) if s_block_start("command",group="commands"): s_delim(" ") s_string("test") s_static("\r\n") s_block_end()