This commit is contained in:
Michel Oosterhof 2021-01-31 12:15:33 +08:00 committed by GitHub
parent caefdfa4d5
commit 2cba9ab605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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()