From 058a5fb7c20fe5c84fd8b5e2533be6dae76300ae Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Wed, 11 Jul 2018 23:45:41 +0400 Subject: [PATCH] use find, not index --- cowrie/commands/dd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowrie/commands/dd.py b/cowrie/commands/dd.py index 3a11c317..47eeae8b 100644 --- a/cowrie/commands/dd.py +++ b/cowrie/commands/dd.py @@ -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('=')