Tortoise SVN - h4wkst3r/SharPersist GitHub Wiki
This persistence technique uses a feature in Tortoise SVN called "hook scripts" as a persistence trigger. Upon a target user connecting to an SVN repo to perform an action (e.g., SVN Update), it will execute a system command that you provided. In this module you just need to provide a system command to execute.
Non-admin privileges
- -c - command to execute
- -a - arguments to command to execute (if applicable)
- -m - method (add, remove, check)
- Adds "hooks" registry value to the "HKCU\Software\TortoiseSVN" registry key.
- Removes any data in the "hooks" registry value in "HKCU\Software\TortoiseSVN" registry key.
SharPersist -t tortoisesvn -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -m add
SharPersist -t tortoisesvn -m remove
SharPersist -t tortoisesvn -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -m check