Process Enumeration-1
In this article, I will explain how to gather information about processes or threads using the CreateToolhelp32Snapshot function. If we want to interact with a target process in the tools we develop or the malware we write, we first need to pinpoint exactly where that process resides in the system. We will divide our operation into two main stages. First, starting with plain text (such as a process name like notepad.exe), we will scan all the processes on the system and extract our target’s unique identification number, namely its PID. In the second stage, using this PID we obtained, we will dive into the target process and capture a valid thread that we can manipulate or hijack. ...