mirror of https://github.com/cowrie/cowrie.git
cleanup (#1492)
This commit is contained in:
parent
caefdfa4d5
commit
2cba9ab605
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue