mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
check if user is still connected. (#2229)
This commit is contained in:
@ -291,7 +291,7 @@ class Command_wget(HoneyPotCommand):
|
||||
)
|
||||
|
||||
# Update the honeyfs to point to artifact file if output is to file
|
||||
if self.outfile:
|
||||
if self.outfile and self.protocol.user:
|
||||
self.fs.mkfile(self.outfile, 0, 0, self.currentlength, 33188)
|
||||
self.fs.chown(self.outfile, self.protocol.user.uid, self.protocol.user.gid)
|
||||
self.fs.update_realfile(
|
||||
|
Reference in New Issue
Block a user