Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Tortoise SVN

h4wkst3r edited this page Jul 17, 2019 · 1 revision

Description

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.

Privileges Required

Non-admin privileges

Arguments/Options Required

  • -c - command to execute
  • -a - arguments to command to execute (if applicable)
  • -m - method (add, remove, check)

Changes Made to Target System/Caveats

Adding Tortoise SVN Persistence

  • Adds "hooks" registry value to the "HKCU\Software\TortoiseSVN" registry key.

Removing Tortoise SVN Persistence

  • Removes any data in the "hooks" registry value in "HKCU\Software\TortoiseSVN" registry key.

Usage/Examples

Adding Tortoise SVN Persistence Trigger

SharPersist -t tortoisesvn -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -m add

Removing Tortoise SVN Persistence Trigger

SharPersist -t tortoisesvn -m remove

Perform Dry Run of Tortoise SVN Persistence

SharPersist -t tortoisesvn -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -m check

References