diff --git a/cowrie/commands/ftpget.py b/cowrie/commands/ftpget.py index 58c1f268..4371f9e6 100644 --- a/cowrie/commands/ftpget.py +++ b/cowrie/commands/ftpget.py @@ -27,11 +27,11 @@ Usage: ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE Download a file via FTP - -c Continue previous transfer - -v Verbose - -u USER Username - -p PASS Password - -P NUM Port\n\n""") + -c Continue previous transfer + -v Verbose + -u USER Username + -p PASS Password + -P NUM Port\n\n""") def start(self): try: @@ -132,6 +132,7 @@ Download a file via FTP self.safeoutfile = None # Update the honeyfs to point to downloaded file + self.fs.mkfile(fakeoutfile, 0, 0, os.path.getsize(hash_path), 33188) self.fs.update_realfile(self.fs.getfile(fakeoutfile), hash_path) self.fs.chown(fakeoutfile, self.protocol.user.uid, self.protocol.user.gid)