Skip to content

Machinegun is an advanced version of Metasploit's railgun, capable of reliably running arbitrary Windows API functions on a remote computer and getting the results to the attacker's machine.

License

Notifications You must be signed in to change notification settings

RobinFassinaMoschiniForks/Machinegun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machinegun

c++ assembly windows

This project was co-authored by

idov31 trickster0

Machinegun is an advanced version of Metasploit's railgun.

Machinegun is capable of reliably running arbitrary Windows API functions on a remote computer and getting the results to the attacker's machine.

Setup

For now, you will need Visual Studio 2022 but in the future, it will be with CMake and cross-compiled with Mingw.

Basic Usage

#include "Machinegun.hpp"

MachineGunResult result;
PVOID allocatedAddress = NULL;
PVOID args[MAX_ARGS];

result = SetArgs(4, args, NULL, 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);

if (result == SUCCESS) {
    result = MachineGun(4, &allocatedAddress, L"kernel32.dll", "VirtualAlloc", args);

    if (result == SUCCESS) {
        std::cout << "Allocated address: " << std::hex << allocatedAddress << std::endl;
    }
}

About

Machinegun is an advanced version of Metasploit's railgun, capable of reliably running arbitrary Windows API functions on a remote computer and getting the results to the attacker's machine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published