def __init__(self, pid=0, h_process=0, thread_id=0, h_thread=0, suspended=False):
     """@param pid: PID.
     @param h_process: process handle.
     @param thread_id: thread id.
     @param h_thread: thread handle.
     """
     self.pid = pid
     self.h_process = h_process
     self.thread_id = thread_id
     self.h_thread = h_thread
     self.suspended = suspended
     self.system_info = SYSTEM_INFO()
示例#2
0
 def __init__(self, pid=0, h_process=0, thread_id=0, h_thread=0, suspended=False):
     """@param pid: PID.
     @param h_process: process handle.
     @param thread_id: thread id.
     @param h_thread: thread handle.
     """
     self.pid = pid
     self.h_process = h_process
     self.thread_id = thread_id
     self.h_thread = h_thread
     self.suspended = suspended
     self.system_info = SYSTEM_INFO()
     self.logserver_path = "\\\\.\\PIPE\\" + random_string(8, 12)
     self.logserver = None
示例#3
0
 def __init__(self, options={}, config=None, pid=0, h_process=0, thread_id=0, h_thread=0, suspended=False):
     """@param pid: PID.
     @param h_process: process handle.
     @param thread_id: thread id.
     @param h_thread: thread handle.
     """
     self.config = config
     self.options = options
     self.pid = pid
     self.h_process = h_process
     self.thread_id = thread_id
     self.h_thread = h_thread
     self.suspended = suspended
     self.system_info = SYSTEM_INFO()
     self.critical = False
示例#4
0
 def get_system_info(self):
     """Get system information."""
     self.system_info = SYSTEM_INFO()
     KERNEL32.GetSystemInfo(byref(self.system_info))