Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xthirteen/StayKit
Cobalt Strike kit for Persistence
https://github.com/0xthirteen/StayKit
Last synced: 3 months ago
JSON representation
Cobalt Strike kit for Persistence
- Host: GitHub
- URL: https://github.com/0xthirteen/StayKit
- Owner: 0xthirteen
- License: gpl-3.0
- Created: 2020-01-24T22:20:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T14:53:31.000Z (almost 5 years ago)
- Last Synced: 2024-04-12T22:56:21.944Z (7 months ago)
- Size: 21.5 KB
- Stars: 455
- Watchers: 16
- Forks: 81
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - 0xthirteen/StayKit - Cobalt Strike kit for Persistence (Others)
README
## StayKit - Cobalt Strike persistence kit
StayKit is an extension for Cobalt Strike persistence by leveraging the execute_assembly function with the SharpStay .NET assembly. The aggressor script handles payload creation by reading the template files for a specific execution type.
IMPORTANT: To use the script a user will only need to load the `StayKit.cna` aggressor script. Additionally, the [SharpStay](https://github.com/0xthirteen/SharpStay) assembly will need to be compiled and placed into the directory where `StayKit.cna` is located. Finally, if selecting a template for the payload some may require dynamic compiling which will uses Mono.
The persistence menu will be added to the beacon. Due to the nature of how each technique is different there is only a GUI menu and no beacon commands.
Available options:
* ElevatedRegistryKey
* UserRegistryKey
* UserInitMprLogonScriptKey
* ElevatedUserInitKey
* ScheduledTask
* ListScheduledTasks
* ScheduledTaskAction
* SchTaskCOMHijack
* CreateService
* ListRunningServices
* WMIEventSub
* GetScheduledTaskCOMHandler
* JunctionFolder
* StartupDirectory
* NewLNK
* BackdoorLNK
* ListTaskNames#### Dependencies
* Mono (MCS) for compiling .NET assemblies (Used with dynamic payload creation)#### Credits
* WMI Event Subscription - WQL Query from [Empire Project](https://github.com/EmpireProject/Empire) and [Matt Graeber's](https://twitter.com/mattifestation) research
* Scheduled Task COM Handler Hijack - idea from [enigma0x3's](https://twitter.com/enigma0x3) research
* Junction Folder - code and idea comes from [matterpreter's](https://twitter.com/matterpreter) OffensiveCSharp project
* Backdoor LNK - comes from [harmj0y's](https://twitter.com/harmj0y) LNKBackdoor script