1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-27 19:04:15 +01:00

Merge the changes made through the Web Editor, fixed some comments

This commit is contained in:
Mitul16 2021-06-17 01:29:22 +05:30
commit 226724f8d4

View File

@ -630,12 +630,9 @@ class Manager:
session = Session(self, platform, channel, **kwargs)
# increment the ``session_id`` variable upon adding a new session
# this may cause issues when a session is not properly configured
# for example when the victim machine disconnects or terminates the parent process
# in that case, we have already incremented the ``session_id``
# thus the ``session_id`` for the bad session is no longer in use
# check other modules to prevent this from happening
# Increment the ``session_id`` variable upon adding a new session
# Session constructor will automatically grab the current
# ``session_id`` from the ``manager`` object passed as the first argument
self.session_id += 1