Transcribed

Course 25 - API Python Hacking | Episode 4: Structures, Process Spawning, and Undocumented Calls

Feb 25, 2026 · 21m 50s
Course 25 - API Python Hacking | Episode 4: Structures, Process Spawning, and Undocumented Calls
Description

In this lesson, you’ll learn about: - Defining Windows Internal Structures in Python - Representing structures like PROCESS_INFORMATION and STARTUPINFO using ctypes.Structure - Mapping Windows data types (HANDLE, DWORD, LPWSTR)...

show more
In this lesson, you’ll learn about:
  • Defining Windows Internal Structures in Python
    • Representing structures like PROCESS_INFORMATION and STARTUPINFO using ctypes.Structure
    • Mapping Windows data types (HANDLE, DWORD, LPWSTR) with the _fields_ attribute
    • Instantiating structures for API calls to configure or retrieve process information
  • Spawning System Processes
    • Using CreateProcessW from kernel32.dll
    • Setting application paths (e.g., cmd.exe) and command-line arguments
    • Managing creation flags like CREATE_NEW_CONSOLE (0x10)
    • Passing structures by reference with ctypes.byref to receive process and thread IDs
  • Accessing Undocumented APIs and Memory Casting
    • Leveraging DnsGetCacheDataTable from dnsapi.dll for reconnaissance
    • Navigating linked lists via pNext pointers in structures like DNS_CACHE_ENTRY
    • Using ctypes.cast to transform raw memory addresses into Python-readable structures
    • Extracting DNS cache information, such as record names and types, through loops and error handling
  • Key Outcome
    • Ability to build custom security tools that interact directly with Windows internals
    • Mastery of low-level API calls, memory traversal, and structure manipulation for forensic or security applications


You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cybercode_academy

Get the books of the CyberCode Academy podcast:
📚 The book series: 416 lessons, 12 books, hundreds of original diagrams: security, networking and programming.
https://cybercodeacademy.gumroad.com/
show less
Information
Author CyberCode Academy
Organization CyberCode Academy
Website -
Tags

Looks like you don't have any active episode

Browse Spreaker Catalogue to discover great new content

Current

Podcast Cover

Looks like you don't have any episodes in your queue

Browse Spreaker Catalogue to discover great new content

Next Up

Episode Cover Episode Cover

It's so quiet here...

Time to discover new episodes!

Discover
Your Library
Search