<s> from cowrie . core . honeypot import HoneyPotCommand <EOL> commands = { } <EOL> class command_ethtool ( HoneyPotCommand ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def call ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> func = self . do_ethtool_help <EOL> for x in self . args : <EOL> if x . startswith ( '<STR_LIT>' ) : <EOL> func = self . do_ethtool_lo <EOL> if x . startswith ( '<STR_LIT>' ) : <EOL> func = self . do_ethtool_eth0 <EOL> if x . startswith ( '<STR_LIT>' ) : <EOL> func = self . do_ethtool_eth1 <EOL> func ( ) <EOL> def do_ethtool_help ( self ) : <EOL> """<STR_LIT>""" <EOL> self . write ( """<STR_LIT>""" ) <EOL> def do_ethtool_lo ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . write ( """<STR_LIT>""" ) <EOL> def do_ethtool_eth0 ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . write ( """<STR_LIT>""" ) <EOL> def do_ethtool_eth1 ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . write ( """<STR_LIT>""" ) <EOL> commands [ '<STR_LIT>' ] = command_ethtool </s>
