<s> """<STR_LIT>""" <EOL> from twisted . manhole import telnet <EOL> from twisted . python import usage <EOL> from twisted . application import strports <EOL> class Options ( usage . Options ) : <EOL> synopsis = "<STR_LIT>" <EOL> longdesc = "<STR_LIT>" <EOL> optParameters = [ <EOL> [ "<STR_LIT:username>" , "<STR_LIT:u>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> [ "<STR_LIT:password>" , "<STR_LIT:w>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> [ "<STR_LIT:port>" , "<STR_LIT:p>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> ] <EOL> zsh_actions = { "<STR_LIT:username>" : "<STR_LIT>" } <EOL> def makeService ( config ) : <EOL> t = telnet . ShellFactory ( ) <EOL> t . username , t . password = config [ '<STR_LIT:username>' ] , config [ '<STR_LIT:password>' ] <EOL> s = strports . service ( config [ '<STR_LIT:port>' ] , t ) <EOL> t . setService ( s ) <EOL> return s </s>
