Merge pull request from massar/initiallogfix

Fix initial non-existent/empty log issue
This commit is contained in:
evilsocket 2019-10-02 18:19:11 +02:00 committed by GitHub
commit 68c9e19775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -160,6 +160,9 @@ class SessionParser(object):
break
lines.reverse()
if len(lines) == 0:
lines.append("Initial Session");
self.last_session = lines
self.last_session_id = hashlib.md5(lines[0].encode()).hexdigest()
self.last_saved_session_id = self._get_last_saved_session_id()