mirror of https://github.com/cowrie/cowrie.git
use find, not index
This commit is contained in:
parent
bb450d7ff9
commit
058a5fb7c2
|
@ -26,7 +26,7 @@ class command_dd(HoneyPotCommand):
|
|||
return
|
||||
|
||||
for arg in self.args:
|
||||
if not arg.index('='):
|
||||
if arg.find('=') == -1:
|
||||
self.write('unknown operand: {}'.format(arg))
|
||||
HoneyPotCommand.exit(self)
|
||||
operand, value = arg.split('=')
|
||||
|
|
Loading…
Reference in New Issue