SkillAgentSearch skills...

PathRedirector

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

Install / Use

/learn @SegaraRai/PathRedirector
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars9
CategoryDevelopment
Updated2y ago
Forks8

Languages

C++

Security Score

55/100

Audited on Nov 16, 2023

No findings