Skip to content

Rewrites filepath on file i/o by hooking NtCreateFile, NtOpenFile and NtSetInformationFile.

Notifications You must be signed in to change notification settings

SegaraRai/PathRedirector

Repository files navigation

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

About

Rewrites filepath on file i/o by hooking NtCreateFile, NtOpenFile and NtSetInformationFile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages