diff --git a/src/cowrie/commands/base.py b/src/cowrie/commands/base.py index 22cbc9ba..748fe732 100644 --- a/src/cowrie/commands/base.py +++ b/src/cowrie/commands/base.py @@ -198,7 +198,6 @@ class command_exit(HoneyPotCommand): def call(self): stat = failure.Failure(error.ProcessDone(status="")) self.protocol.terminal.transport.processEnded(stat) - return def exit(self): pass @@ -756,7 +755,6 @@ class command_chattr(HoneyPotCommand): return if not self.fs.exists(self.args[1]): self.write('chattr: No such file or directory while trying to stat ' + self.args[1] + '\n') - return commands['/usr/bin/chattr'] = command_chattr diff --git a/src/cowrie/commands/which.py b/src/cowrie/commands/which.py index 13774bf8..2ebcd5b6 100644 --- a/src/cowrie/commands/which.py +++ b/src/cowrie/commands/which.py @@ -27,7 +27,6 @@ class command_which(HoneyPotCommand): if self.fs.exists(resolved): self.write("%s/%s\n" % (path, f)) - continue commands['which'] = command_which diff --git a/src/cowrie/output/virustotal.py b/src/cowrie/output/virustotal.py index 80a2a81b..f7e977fd 100644 --- a/src/cowrie/output/virustotal.py +++ b/src/cowrie/output/virustotal.py @@ -289,7 +289,6 @@ class Output(cowrie.core.output.Output): return d else: log.msg("VT Request failed: {} {}".format(response.code, response.phrase)) - return def cbBody(body): """ @@ -389,7 +388,6 @@ class Output(cowrie.core.output.Output): return d else: log.msg("VT Request failed: {} {}".format(response.code, response.phrase)) - return def cbError(failure): failure.printTraceback()