Git Product home page Git Product logo

rs-shellcode-runners's Introduction

Rust Windows Shellcode Runner

Overview

This repository contains a collection of Rust modules designed to execute shellcode using various methods of the native Windows API. Each module demonstrates a unique approach to loading and running shellcode, offering flexibility and adaptability for different use cases.

Features

  • Multiple Execution Methods: Includes various techniques for executing shellcode using Windows API calls.
  • Rust Implementation: Leveraging Rust's safety features and performance.
    • Makes use of native Windows API by calling kernel32.dll functions.
  • Detailed Documentation: Each method is thoroughly documented for ease of understanding and use.

Getting Started

Prerequisites

  • Rust (latest stable version): See Rust Installation.
  • Git: To clone the repository.
  • Windows environment for compatibility with Windows API.

Installation

Clone the repository:

git clone https://github.com/affix/rs-shellcode-runners.git
cd rust-windows-shellcode-runner

Usage

Each method in the repository can be used as follows:

Basic Runner with CreateThread

CreateThread: The CreateThread function is a part of the Windows API, primarily used for creating a thread to execute within the virtual address space of the calling process. When applied to running shellcode in memory, it offers a method to dynamically execute arbitrary code, often used in legitimate software as well as in various security research and exploitation scenarios.

Navigate to create-thread directory.

cd create-thread
cargo build
.\target\debug\create-thread.exe

Process Injection

CreateRemoteThread: CreateRemoteThread is a function in the Windows API used to create a thread in the virtual address space of another process. Unlike CreateThread, which creates a thread in the same process, CreateRemoteThread allows for cross-process thread creation. This makes it particularly significant in various programming scenarios, including system monitoring, debugging, and certain types of malware activity.

cd create-remote-thread
cargo build
.\target\debug\create-remote-thread.exe

License

This project is licensed under the MIT License.

rs-shellcode-runners's People

Contributors

affix avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.