mirror of
https://github.com/SpecterOps/Nemesis
synced 2026-06-08 12:36:42 +00:00
for stage1 connector, auto task pwd if one doesn't exist
-for stage1 connector, auto task pwd if one doesn't exist
This commit is contained in:
@@ -19,6 +19,7 @@ from outflank_stage1.bot import BaseBot
|
||||
from outflank_stage1.implant import Implant
|
||||
from outflank_stage1.services.implant_service import ImplantService
|
||||
from outflank_stage1.task import BaseTask
|
||||
from outflank_stage1.task.tasks import PwdTask
|
||||
from outflank_stage1.services.task_service import TaskService
|
||||
# 3rd Party Libraries
|
||||
from pip._internal import main as pipmain
|
||||
@@ -563,6 +564,10 @@ class NemesisConnector(BaseBot):
|
||||
except httpx.HTTPStatusError as e:
|
||||
self._logger.exception(f"Error sending file data message. Response body: {e.response.text} Exception: {e}")
|
||||
|
||||
# if we get to this point and there hasn't been a PWD, task one up
|
||||
if not self._current_working_directories[implant_uid]:
|
||||
self._task_service.schedule_task(implant_uid=implant.get_uid(), task=PwdTask())
|
||||
|
||||
self._logger.info("Nemesis Connector is running")
|
||||
|
||||
def get_download_disk_filepath(self, path: str, timestamp: datetime) -> Optional[str]:
|
||||
|
||||
Reference in New Issue
Block a user