| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A lightweight Python package for parsing syscalls from ntdll.dll on Windows systems.
pip install ntparsegit clone https://github.com/micREsoft/ntparse/ntparse.git
cd ntparse
pip install -e .Parse with specific output format:
ntparse --format json --output syscalls.json
ntparse --format csv --output syscalls.csv
ntparse --format asm --output syscalls.asm
ntparse --format python --output syscalls.pyParse from a custom ntdll.dll:
ntparse --input C:\path\to\ntdll.dll --format json
ntparse --input C:\path\to\ntdll.dll --format json --output done.jsonfrom ntparse import parse_ntdll, to_json, to_csv
# parse syscalls from default ntdll.dll
syscalls = parse_ntdll()
# parse from custom path
syscalls = parse_ntdll("C:\\Windows\\System32\\ntdll.dll")
# convert to different formats
json_output = to_json(syscalls)
csv_output = to_csv(syscalls)
print(f"Found {len(syscalls)} syscalls")Parse syscalls from ntdll.dll.
Parameters:
Returns:
Example:
syscalls = parse_ntdll()
# returns: {"NtClose": 0x0C, "NtOpenProcess": 0x26, ...}Extract syscall numbers from a specific DLL file.
Parameters:
Returns:
Convert syscalls to JSON format.
Convert syscalls to CSV format.
Convert syscalls to x64 assembly format.
Convert syscalls to Python dictionary format.
{
"syscalls": {
"NtClose": "0x0C",
"NtOpenProcess": "0x26",
"NtCreateFile": "0x55"
},
"count": 3,
"metadata": {
"format": "json",
"version": "1.0"
}
}Function Name, Syscall ID, Offset (hex)
NtClose, 12, 0x0C
NtOpenProcess, 38, 0x26
NtCreateFile, 85, 0x55.code
; Generated by ntparse
; Syscall stubs for x64
NtClose PROC
mov r10, rcx
mov eax. 0Fh
syscall
ret
NtClose ENDP
NtOpenProcess PROC
mov r10, rcx
mov eax, 026h
syscall
ret
NtOpenProcess ENDP
endusage: ntparse [-h] [--input INPUT] [--format {json,csv,asm,python}]
[--output OUTPUT] [--arch {x64,x86}] [--validate]
Parse syscalls from ntdll.dll
options:
-h, --help show this help message and exit
--input INPUT, -i INPUT
Path to ntdll.dll (default: C:\Windows\System32\ntdll.dll)
--format {json,csv,asm,python}, -f {json,csv,asm,python}
Output format (default: json)
--output OUTPUT, -o OUTPUT
Output file path (default: stdout)
--arch {x64,x86} Target architecture (default: x64)
--validate Validate ntdll.dll before parsing
MIT License - see LICENSE file for details.
| Back | FazBrowse Home | New Git URL |