Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 709 Bytes

File metadata and controls

31 lines (23 loc) · 709 Bytes

PathRedirector

Usage example

  1. create C:\RedirectConfig.yaml like as follows:

    rules:
      - type: filepath
        last: true
        source: "%UserProfile%\\Documents"
        destination: ".\\Documents"
        exclude:
          - "desktop.ini"
      - type: filepath
        last: true
        source: "%UserProfile%\\Pictures"
        destination: ".\\Pictures"
  2. set C:\RedirectConfig.yaml to environment variable PATHREDIRECTOR_CONFIG_FILE

  3. run target process with PathRedirector dll injected.

with InjectExec:

set PATHREDIRECTOR_CONFIG_FILE=C:\RedirectConfig.yaml

InjectExec.exe notepad.exe PathRedirector64.dll