NullGate is a sophisticated project designed to leverage NTAPI functions using indirect syscalls, incorporating the FreshyCalls method with a novel approach to dynamic syscall number retrieval.
It also employs a unique technique to bypass Windows Defender’s memory scanning, making it a powerful tool for process injection.
msfvenom
.NullGate is designed to be easily integrated into projects using CMake’s FetchContent feature. Here’s a basic example of how to include it in a CMakeLists.txt file:
textcmake_minimum_required(VERSION 3.25)
include(FetchContent)
FetchContent_Declare(nullgate
GIT_REPOSITORY https://github.com/0xsch1zo/NullGate
GIT_TAG 1.0.0
)
FetchContent_MakeAvailable(nullgate)
project(test)
add_executable(test main.cpp)
target_link_libraries(test PRIVATE nullgate)
A significant feature of NullGate is its ability to bypass Windows Defender’s memory scanning. The traditional method involves setting page permissions to PAGE_NOACCESS
before creating a thread and then resuming it after the scan.
However, NullGate improves upon this by initially writing junk data to the process memory, creating a suspended thread, and then writing the actual shellcode before resuming the thread.
This approach ensures that the memory is not accessible during the scan, effectively evading detection.
To build NullGate, use the following commands:
bashgit clone https://github.com/0xsch1zo/NullGate
cd NullGate
cmake . -B build -DNULLGATE_BUILD_SAMPLE=ON
cmake --build build/
The sample executable will be available at <build_dir>/_deps/nullgate-build/sample.exe
, which can be used to inject shellcode into a process specified by its PID.
NullGate offers a modern and sophisticated approach to process injection and evasion techniques, making it a valuable tool for those interested in advanced Windows exploitation and evasion strategies.
Its ability to dynamically retrieve syscall numbers and bypass memory scanning makes it particularly effective against modern security solutions.
WebHunt is an innovative project that focuses on web application testing, particularly for bug bounty…
Process ghosting is a sophisticated technique used to evade detection by security tools on Windows…
The TruffleHog Burp Suite Extension is a powerful tool designed to scan HTTP traffic within…
The ps5Spoofer is a tool designed for the PlayStation 5 (PS5) that patches the PS4…
The eWPTX (eLearnSecurity Web Application Penetration Tester Extreme) certification is a challenging credential that validates…
REC2, short for Rusty External Command and Control, is a sophisticated Command and Control (C2)…