root@tr0p:~#Home

MANW-NG

Windows API docs and execution, straight from your terminal.

MANW-NG scrapes structured Microsoft Learn documentation and calls live Windows APIs via ctypes. One CLI built for reverse engineers and security researchers.

  • python3.11+
  • licenseMIT
  • apisWin32 · NTAPI · driver
  • mappings61,000+

InstallSource on GitHub

tr0p@kali: ~/apps/manw-ng
$ manw-ng VirtualAlloc -o json
"function": "VirtualAlloc",
"dll":      "kernel32.dll",
"return":   "LPVOID",
"params":   [ lpAddress, dwSize, flAllocationType, ... ]

# call a live Windows API through ctypes
$ manw-ng exec k:Beep 750 300
[+] kernel32!Beep(750, 300) → 1 (BOOL TRUE)
$ 

Features

From offline lookups to live execution: a single tool that removes the browser round-trips from your reversing workflow.

Structured documentation
Signature, parameters, return values and remarks scraped from Microsoft Learn into clean, parseable output.
Live WinAPI execution
Call any exported function via ctypes with typed returns, buffer allocation, hexdumps and GetLastError reporting.
61k+ mapping database
A massive function→header index with heuristic classification resolves APIs even when search comes up empty.
Multiple output formats
Rich terminal, JSON and Markdown output, all localized, so results drop straight into scripts and notes.
English and Portuguese
Full bilingual docs with -l br: signatures, parameter tables and remarks all translate together.
Fast and cached
Async HTTP with ETag conditional caching and a self-learning URL cache keep repeat lookups near-instant.

Usage

Look it up, then run it. Documentation mode is cross-platform. Execution mode runs the real API on Windows.

Documentation mode cross-platform

Resolve any Win32, NTAPI or driver function to its full signature and reference. No browser required.

$ manw-ng CreateProcessW
$ manw-ng -l br NtCreateFile --tabs
$ manw-ng RegOpenKeyExW -o markdown

Execution mode windows-only

Invoke live APIs with module shortcuts, typed returns, writable buffers and error inspection.

$ manw-ng exec u:MessageBoxW 0 "Hi" "MANW-NG" 0
$ manw-ng exec u:GetCursorPos '$b:8'
$ manw-ng exec k:OpenProcess 0x0400 0 4242 --show-error

Lookup pipeline

Each request cascades through five fallbacks until an authoritative match is found.

  1. Learn Search Queries the official Microsoft Learn Search API first.
  2. Smart URLs Generates and validates candidate doc URLs from patterns.
  3. Classifier Heuristic header classification maps the function name.
  4. Catalog Falls back to the bundled internal API catalog.
  5. Offline map Resolves from the 61k+ offline JSON mapping as last resort.

Numbers

MetricValue
Function→header mappings61k+
Fallback lookup stages5
LanguagesEN / PT-BR
Output formats3

Install

Clone, install, and you get the manw-ng console command.

$ git clone https://github.com/marcostolosa/manw-ng.git && cd manw-ng && pip install -e .
  • Requires Python 3.11+ and pip.
  • Documentation mode runs anywhere: Linux, macOS, Windows.
  • Execution mode needs a native Windows Python interpreter.