MagmaGate
Hell's/Halo's Gate inspired Syscall and SSN retrieval
Install / Use
/learn @CaptMag/MagmaGateREADME
MagmaGate (inspired by Hell's/Halo's Gate)
MagmaGate is my version of Hell's/Halo's Gate, following similar principles of both
MagmaGate does the following:
Walk the PEB (used to grab Ntdll Base Address)
Grab a function pointer to the Export Address Table (EAT)
Get Base Hash --> API Hashing function using the export directory as a seed
GrabSSN --> Used to grab both the SSN and Syscall Instruction Address of an Unhooked Function
SSNUnhook --> Same as GrabSSN but for Hooked Functions
relative_jmp --> used to detect any jmp instructions (hooks)
absolute_jmp --> used to detect any inline hooking
MagmaGate --> Ties everything together and grab all the necessary information
Example of NtWriteVirtualMemory
<p align="center"> <img height="400" alt="OffensiveRust" src="syscall.png"> </p>Credits
Obviously I did not create this myself, nor am I claiming to be.
That being said, credit where credit is due, these are all the sources I used to create MagmaGate
https://github.com/am0nsec/HellsGate/blob/master/HellsGate/main.c
https://github.com/Maldev-Academy/HellHall/blob/main/Hell'sHall/Hell'sHall/HellsHall.c
https://github.com/VirtualAlllocEx/DEFCON-31-Syscalls-Workshop/blob/main/05_Bonus_Chapter_2_POC/IDSC_PEB_EAT/IDSC_PEB_EAT/IDSC_PEB_EAT.c
https://tuttlem.github.io/2024/10/26/simple-hashing-algorithms.html
https://blog.sektor7.net/#!res/2021/halosgate.md
https://stackoverflow.com/questions/1546141/jmp-to-absolute-address-op-codes#2049606
https://www.cnblogs.com/VxerLee/p/15184023.html
https://asm-docs.microagi.org/x86/syscall.html
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
