From 5eb6b5d3eaf2060482dcb08702b4c8c2e39e6234 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sat, 6 Jul 2024 16:19:14 +0800 Subject: [PATCH] check if user is still connected. (#2229) --- src/cowrie/commands/wget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cowrie/commands/wget.py b/src/cowrie/commands/wget.py index 406708a7..fb8c1e05 100644 --- a/src/cowrie/commands/wget.py +++ b/src/cowrie/commands/wget.py @@ -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(