<s> from cowrie . core . honeypot import HoneyPotCommand <EOL> commands = { } <EOL> class command_uname ( HoneyPotCommand ) : <EOL> def call ( self ) : <EOL> if len ( self . args ) and self . args [ <NUM_LIT:0> ] . strip ( ) in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> self . write ( <EOL> '<STR_LIT>' % self . protocol . hostname ) <EOL> elif len ( self . args ) and self . args [ <NUM_LIT:0> ] . strip ( ) in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> self . write ( '<STR_LIT>' ) <EOL> elif len ( self . args ) and self . args [ <NUM_LIT:0> ] . strip ( ) in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> self . write ( '<STR_LIT>' ) <EOL> else : <EOL> self . write ( '<STR_LIT>' ) <EOL> commands [ '<STR_LIT>' ] = command_uname </s>
