GithubHelp home page GithubHelp logo

kimjongbing / dll_injector_uwp Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 64 KB

Simple DLL injector coded in Rust and C++, compatible with UWP processes

License: GNU General Public License v3.0

Rust 46.26% C++ 50.71% C 3.03%
dll dll-hijacking dll-hooking dll-injection dll-injector dll-injector-rust microsoft-store microsoft-store-services uwp uwp-applications

dll_injector_uwp's Introduction

dll_injector_uwp

This was originally a normal dll injector using the Windows API but it was not working on Microsoft Store applications (UWP) so I made this injector. This works on both UWP applications and normal applications.

Caution

Please make sure your DLL is on a hard drive with an NTFS file system. You will not be able to see the Security tab otherwise. Look at the DLL Setup Permissions section to see how to set up the security permissions of your DLL.

Release

You can get the pre-compiled "Release" here

Usage

  1. List all processes: Run the following command to list all process IDs (PIDs).

    dll_injector.exe list

    This will return a list of all PIDs currently running on your system.

  2. Get PID of a running executable: If you know the name of an executable and it's currently running, you can get its PID by running:

    dll_injector.exe pid <file.exe>

    Replace <file.exe> with the name of the running executable. This will return the PID of the specified executable.

    Example:

    dll_injector.exe pid notepad.exe
  3. Inject a DLL into a process: To inject a DLL into a process, you need the PID of the target process and the path to the DLL you want to inject. Use the following command:

    dll_injector.exe inject <pid> <payload.dll>

    Replace <pid> with the PID of the target process and <payload.dll> with the path to the DLL you want to inject.

    Example:

    dll_injector.exe inject 1234 C:/path/to/your/payload.dll

Compile Guide

  1. Clone the repository: Run the following command in the terminal to download the source code to your local machine.

    git clone https://github.com/kimjongbing/dll_injector_uwp
  2. Navigate to the project folder: Change the current directory to the project's root folder by running:

    cd dll_injector_uwp-main
  3. Compile the project: Build the project in release mode by running the following command in the root directory of the project.

    cargo build --release
  4. Navigate to the build output: Change directory to where the built executable is located by running:

    cd ./target/release
  5. Run the executable: Start the application by running dll_injector.exe. Upon execution, the console will display usage instructions. You can then provide the necessary arguments based on what you want to do.

This is a command-line application, so all inputs (arguments) should be passed in the command line. Run the command-line as administrator if you have any issues.

DLL Setup Permissions

For now you have to do this manually until I set this to be done automatically

  1. Right-click the .dll file you want to inject.
  2. Click the Security tab.
  3. Click Edit next to To change permissions, click Edit:
  4. Click Add and type All in the box called Enter the objects names to select (examples):
  5. Click OK
  6. Make sure it has Read & execute and Read enabled

You can read more here

dll_injector_uwp's People

Contributors

kimjongbing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dll_injector_uwp's Issues

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.