Addresses https://github.com/calebstewart/pwncat/issues/260. The Linux implant module for authorized keys now checks for the existence of the .ssh directory and the key file. Any file or directory created in the process as well as permission changes will be reverted on calling remove on the implant.
The implant now keeps track of all the tampers it has committed and the remove function rolls back all the changes.
Please note any noqa: comments needed to appease flake8.
Description of Changes
Addresses https://github.com/calebstewart/pwncat/issues/260. The Linux implant module for authorized keys now checks for the existence of the .ssh directory and the key file. Any file or directory created in the process as well as permission changes will be reverted on calling remove on the implant.
The implant now keeps track of all the tampers it has committed and the remove function rolls back all the changes.
Please note any
noqa:
comments needed to appease flake8.Major Changes Implemented:
ModifiedPermissions
,ModifiedOwnership
remove
on the implant rolls back any changes madePre-Merge Tasks
python-black
isort
flake8
on repo, and fixed any new problems w/ modified filespytest
test cases[Unreleased]
)pytest
results4 failed, 26 passed
For issues with pre-merge tasks, see CONTRIBUTING.md