BC-SECURITY / Empire

Empire is a post-exploitation and adversary emulation framework that is used to aid Red Teams and Penetration Testers.
https://bc-security.gitbook.io/empire-wiki/
BSD 3-Clause "New" or "Revised" License
4.06k stars 564 forks source link

FEATURE #716 - use decorators and remove deprecated features #717

Open git-tirthankar opened 5 months ago

git-tirthankar commented 5 months ago

Describe your changes

removed deprecated features and new decorators auto_get_source and auto_finalize as per: https://bc-security.gitbook.io/empire-wiki/module-development/powershell-modules#decorators

Issue ticket number and link (if there is one)

Checklist before requesting a review

vinnybod commented 5 months ago

Changes look good to me, thanks! Can you run the linting/formatting so the CI can run all the way through?

https://github.com/BC-SECURITY/Empire/blob/main/.github/CONTRIBUTING.md#code-formatting-and-linting

If you install pre-commit, you can run it on your previous commit with pre-commit run --from-ref HEAD~ --to-ref HEAD