Coder Social home page Coder Social logo

wfrr's Introduction

Windows File/Registry Redirection

GitHub license MSVC Version Windows

This project is supposed to redirect all file/registry calls of process to seperated file system/registry location.

Snagit Works with WFRR

Requirements

  • WFRR.exe

    • EasyHook
    • Newtonsoft.Json
    • log4net

    To update dependencies, use nuget to download packages and copy binaries to 3rdparty folder.

    nuget install .\BuildCfg\Packages.config -OutputDirectory packages
    
  • Reg2JSON.py

    • python 2.x

Supported APIs

  • RegOpenKey(Ex)
  • RegCreateKey(Ex)
  • RegDeleteKey(Ex)
  • CreateFileW
  • DeleteFileW
  • CopyFileW

Build

  • .NET 4.5.2+/VS2015+
    # In MSBuild Command Prompt for VS2015/VS2017 #
    
    >.\Build.bat
    

V_REG.json Sample

  • Source: source registry path.
  • Destination: target registry path which you want to redirect to.
{
    "Mapping": [
        {
            "Source": "",
            "Destination": ""
        },
        {
            "Source": "",
            "Destination": ""
        }
    ],
    "VRegRedirected": ""
}

V_FS.json Sample

  • Source: source directory path.
  • Destination: target directory path which you want to redirect to.
{
    "Mapping": [
        {
            "Source": "",
            "Destination": ""
        },
        {
            "Source": "",
            "Destination": ""
        }
    ]
}

Usage

Please put V_REG.json and V_FS.json in the same location as WFRR.exe.

Usage: WFRR.exe [OPTIONS]

Options:
  -e, --exe=VALUE            the executable file to launch and inject.
  -a, --arg=VALUE            the arguments of executable file to launch and
                               inject.
  -n, --pname=VALUE          the name of process want to inject.
  -i, --pid=VALUE            the id of process want to inject.
      --all                  inject file hook and registry hook.
      --file                 inject file hook only.
      --reg                  inject registry hook only.
  -b, --bg                   runs in background.
      --no-console-log       disable console logging.
      --no-file-log          disable file logging.
  -h, --help                 show help messages.

Logs

Log file WFRR.log will be generated in same location of WFRR.exe and will be useful if you encounter issues.

How To Debug

Current supported Hooks may be not covered all File System/Registry operations. You probably need to implement additional hooks to cover them. To know which API calls haven't be hooked, process monitor is your good friend to monitor program operations.

Windows 7 Support

The pre-compiled binaries were built and tested on Windows 10. If you want to use this software on Windows 7, it would be better to sync code and build binaries on Windows 7 instead of using pre-compiled binaries. This will avoid some issues.

wfrr's People

Contributors

peitaosu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.