PathRedirector
Rewrites filepath on file i/o by hooking NtCreateFile, NtOpenFile and NtSetInformationFile.
Install / Use
/learn @SegaraRai/PathRedirectorREADME
PathRedirector
Usage example
-
create
C:\RedirectConfig.yamllike as follows:rules: - type: filepath last: true source: "%UserProfile%\\Documents" destination: ".\\Documents" exclude: - "desktop.ini" - type: filepath last: true source: "%UserProfile%\\Pictures" destination: ".\\Pictures" -
set
C:\RedirectConfig.yamlto environment variablePATHREDIRECTOR_CONFIG_FILE -
run target process with PathRedirector dll injected.
with InjectExec:
set PATHREDIRECTOR_CONFIG_FILE=C:\RedirectConfig.yaml
InjectExec.exe notepad.exe PathRedirector64.dll
