
educationFeb 25, 202621:51pending
Course 25 - API Python Hacking | Episode 4: Structures, Process Spawning, and Undocumented Calls
About this episode
In this lesson, you’ll learn about:
You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cybercode_academy
- 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 every episode summarized
Each time CyberCode Academy publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
Hosts & guests
No transcript yet
This episode has not been transcribed. Request it and it moves to the front of the queue.
More episodes
More from CyberCode Academy

Course 42 - Mobile Malware Analysis Fundamentals | Episode 12: Dynamic Analysis...
CyberCode Academy
Sep 8, 202628:08completed

Course 42 - Mobile Malware Analysis Fundamentals | Episode 11: Dynamic Analysis...
CyberCode Academy
Sep 7, 202624:15queued

Course 42 - Mobile Malware Analysis Fundamentals | Episode 10: The Essentials of...
CyberCode Academy
Sep 6, 202623:12pending

Course 42 - Mobile Malware Analysis Fundamentals | Episode 9: Mastering Basic St...
CyberCode Academy
Sep 5, 202621:16completed