Skip to content

Instantly share code, notes, and snippets.

@Little-Ki
Little-Ki / EnumModule
Created October 23, 2020 14:51
[Code] [Kernel] Enum module which in current process
/* Enum module which in current process */
struct Module_t {
ULONG64 base;
ULONG64 size;
std::string name;
}
void EnumModule( std::vector<Module_t> & list )
{
@Little-Ki
Little-Ki / EnumProcessThread
Last active October 23, 2020 15:03
[Code] [Kernel] Enum thread which in process
// Enum thread which in process
struct Thread_t {
ULONG64 tid;
ULONG64 base;
}
NTSTATUS EnumProcessThread( HANDLE pid, std::vector<Thread_t> & list )
{
PSYSTEM_PROCESS_INFORMATION pProcess;