id int64 0 190k | prompt stringlengths 21 13.4M | docstring stringlengths 1 12k ⌀ |
|---|---|---|
177,272 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
LPPROC_THREAD_ATTRIBUTE_LIST = PPROC_THREAD_ATTRIBUTE_LIST
def UpdateProcThreadAttribute(lpAttributeList, Attribute, Value, cbSize = None):
... | null |
177,273 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def DeleteProcThreadAttributeList(lpAttributeList):
_DeleteProcThreadAttributeList = windll.kernel32.DeleteProcThreadAttributeList
_Dele... | null |
177,274 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class ProcessHandle (Handle):
"""
Win32 process handle.
This is the same value passed to L{OpenProcess}.
Can only... | null |
177,275 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class ThreadHandle (Handle):
"""
Win32 thread handle.
This is the same value passed to L{OpenThread}.
Can only be... | null |
177,276 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def SuspendThread(hThread):
_SuspendThread = windll.kernel32.SuspendThread
_SuspendThread.argtypes = [HANDLE]
_SuspendThread.restype... | null |
177,277 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def ResumeThread(hThread):
_ResumeThread = windll.kernel32.ResumeThread
_ResumeThread.argtypes = [HANDLE]
_ResumeThread.restype = D... | null |
177,278 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def TerminateThread(hThread, dwExitCode = 0):
_TerminateThread = windll.kernel32.TerminateThread
_TerminateThread.argtypes = [HANDLE, DW... | null |
177,279 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def TerminateProcess(hProcess, dwExitCode = 0):
_TerminateProcess = windll.kernel32.TerminateProcess
_TerminateProcess.argtypes = [HANDL... | null |
177,280 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetCurrentProcessId():
_GetCurrentProcessId = windll.kernel32.GetCurrentProcessId
_GetCurrentProcessId.argtypes = []
_GetCurrent... | null |
177,281 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetCurrentThreadId():
_GetCurrentThreadId = windll.kernel32.GetCurrentThreadId
_GetCurrentThreadId.argtypes = []
_GetCurrentThre... | null |
177,282 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetProcessId(hProcess):
_GetProcessId = windll.kernel32.GetProcessId
_GetProcessId.argtypes = [HANDLE]
_GetProcessId.restype = ... | null |
177,283 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetThreadId(hThread):
_GetThreadId = windll.kernel32._GetThreadId
_GetThreadId.argtypes = [HANDLE]
_GetThreadId.restype = DWORD... | null |
177,284 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetProcessIdOfThread(hThread):
_GetProcessIdOfThread = windll.kernel32.GetProcessIdOfThread
_GetProcessIdOfThread.argtypes = [HANDLE... | null |
177,285 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetExitCodeProcess(hProcess):
_GetExitCodeProcess = windll.kernel32.GetExitCodeProcess
_GetExitCodeProcess.argtypes = [HANDLE]
_... | null |
177,286 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetExitCodeThread(hThread):
_GetExitCodeThread = windll.kernel32.GetExitCodeThread
_GetExitCodeThread.argtypes = [HANDLE]
_GetEx... | null |
177,287 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetProcessVersion(ProcessId):
_GetProcessVersion = windll.kernel32.GetProcessVersion
_GetProcessVersion.argtypes = [DWORD]
_GetP... | null |
177,288 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetPriorityClass(hProcess):
_GetPriorityClass = windll.kernel32.GetPriorityClass
_GetPriorityClass.argtypes = [HANDLE]
_GetPrior... | null |
177,289 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
NORMAL_PRIORITY_CLASS = 0x00000020
NORMAL_PRIORITY_CLASS = 0x00000020
def SetPriorityClass(hProcess, dwPriorityClass = NORMAL_... | null |
177,290 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetProcessPriorityBoost(hProcess):
_GetProcessPriorityBoost = windll.kernel32.GetProcessPriorityBoost
_GetProcessPriorityBoost.argty... | null |
177,291 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def SetProcessPriorityBoost(hProcess, DisablePriorityBoost):
_SetProcessPriorityBoost = windll.kernel32.SetProcessPriorityBoost
_SetProc... | null |
177,292 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetProcessAffinityMask(hProcess):
_GetProcessAffinityMask = windll.kernel32.GetProcessAffinityMask
_GetProcessAffinityMask.argtypes ... | null |
177,293 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def SetProcessAffinityMask(hProcess, dwProcessAffinityMask):
_SetProcessAffinityMask = windll.kernel32.SetProcessAffinityMask
_SetProces... | null |
177,294 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class SnapshotHandle (Handle):
"""
Toolhelp32 snapshot handle.
"""
pass
TH32CS_SNAPALL = (TH32CS_SNAPHEAPLIST | TH32CS_SNAPP... | null |
177,295 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class PROCESSENTRY32(Structure):
_fields_ = [
('dwSize', DWORD),
('cntUsage', DWORD),
('th32P... | null |
177,296 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class PROCESSENTRY32(Structure):
LPPROCESSENTRY32 = POINTER(PROCESSENTRY32)
def GetLastError():
def Process32Next(hSnapshot, pe = None):
_Pr... | null |
177,297 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class THREADENTRY32(Structure):
_fields_ = [
('dwSize', DWORD),
('cntUsage', DWORD),
('th32Thre... | null |
177,298 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class THREADENTRY32(Structure):
_fields_ = [
('dwSize', DWORD),
('cntUsage', DWORD),
('th32Thre... | null |
177,299 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class MODULEENTRY32(Structure):
_fields_ = [
("dwSize", DWORD),
("th32ModuleID", DWORD),
("th32ProcessID", DW... | null |
177,300 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class MODULEENTRY32(Structure):
_fields_ = [
("dwSize", DWORD),
("th32ModuleID", DWORD),
("th32ProcessID", DW... | null |
177,301 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class HEAPENTRY32(Structure):
LPHEAPENTRY32 = POINTER(HEAPENTRY32)
def GetLastError():
def Heap32First(th32ProcessID, th32HeapID):
_Heap32Fi... | null |
177,302 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class HEAPENTRY32(Structure):
_fields_ = [
("dwSize", SIZE_T),
("hHandle", HANDLE),
("dwAddress", ... | null |
177,303 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class HEAPLIST32(Structure):
_fields_ = [
("dwSize", SIZE_T),
("th32ProcessID", DWORD),
("th32HeapID", ... | null |
177,304 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class HEAPLIST32(Structure):
_fields_ = [
("dwSize", SIZE_T),
("th32ProcessID", DWORD),
("th32HeapID", ... | null |
177,305 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetLastError():
def Toolhelp32ReadProcessMemory(th32ProcessID, lpBaseAddress, cbRead):
_Toolhelp32ReadProcessMemory = windll.kernel32.To... | null |
177,306 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetProcessDEPPolicy(hProcess):
_GetProcessDEPPolicy = windll.kernel32.GetProcessDEPPolicy
_GetProcessDEPPolicy.argtypes = [HANDLE, L... | null |
177,307 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetCurrentProcessorNumber():
_GetCurrentProcessorNumber = windll.kernel32.GetCurrentProcessorNumber
_GetCurrentProcessorNumber.argty... | null |
177,308 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def FlushProcessWriteBuffers():
_FlushProcessWriteBuffers = windll.kernel32.FlushProcessWriteBuffers
_FlushProcessWriteBuffers.argtypes ... | null |
177,309 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
GR_GDIOBJECTS = 0
def GetLastError():
_GetLastError = windll.kernel32.GetLastError
_GetLastError.argtypes = []
_GetLastError.restype... | null |
177,310 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetProcessHandleCount(hProcess):
_GetProcessHandleCount = windll.kernel32.GetProcessHandleCount
_GetProcessHandleCount.argtypes = [H... | null |
177,311 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class FILETIME(Structure):
_fields_ = [
('dwLowDateTime', DWORD),
('dwHighDateTime', DWORD),
]
LPFILETIME = PO... | null |
177,312 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class FILETIME(Structure):
_fields_ = [
('dwLowDateTime', DWORD),
('dwHighDateTime', DWORD),
]
LPFILETIME = PO... | null |
177,313 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
class FILETIME(Structure):
LPFILETIME = POINTER(FILETIME)
def GetSystemTimeAsFileTime():
_GetSystemTimeAsFileTime = windll.kernel32.GetSyste... | null |
177,314 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GlobalAddAtomA(lpString):
_GlobalAddAtomA = windll.kernel32.GlobalAddAtomA
_GlobalAddAtomA.argtypes = [LPSTR]
_GlobalAddAtomA.re... | null |
177,315 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GlobalAddAtomW(lpString):
_GlobalAddAtomW = windll.kernel32.GlobalAddAtomW
_GlobalAddAtomW.argtypes = [LPWSTR]
_GlobalAddAtomW.r... | null |
177,316 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GlobalFindAtomA(lpString):
_GlobalFindAtomA = windll.kernel32.GlobalFindAtomA
_GlobalFindAtomA.argtypes = [LPSTR]
_GlobalFindAto... | null |
177,317 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GlobalFindAtomW(lpString):
_GlobalFindAtomW = windll.kernel32.GlobalFindAtomW
_GlobalFindAtomW.argtypes = [LPWSTR]
_GlobalFindAt... | null |
177,318 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GlobalGetAtomNameA(nAtom):
_GlobalGetAtomNameA = windll.kernel32.GlobalGetAtomNameA
_GlobalGetAtomNameA.argtypes = [ATOM, LPSTR, cty... | null |
177,319 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GlobalGetAtomNameW(nAtom):
_GlobalGetAtomNameW = windll.kernel32.GlobalGetAtomNameW
_GlobalGetAtomNameW.argtypes = [ATOM, LPWSTR, ct... | null |
177,320 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def GetLastError():
_GetLastError = windll.kernel32.GetLastError
_GetLastError.argtypes = []
_GetLastError.restype = DWORD
retur... | null |
177,321 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def Wow64SuspendThread(hThread):
_Wow64SuspendThread = windll.kernel32.Wow64SuspendThread
_Wow64SuspendThread.argtypes = [HANDLE]
_W... | null |
177,322 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
The provided code snippet includes necessary dependencies for implementing the `Wow64EnableWow64FsRedirection` function. Write a Python function... | This function may not work reliably when there are nested calls. Therefore, this function has been replaced by the L{Wow64DisableWow64FsRedirection} and L{Wow64RevertWow64FsRedirection} functions. @see: U{http://msdn.microsoft.com/en-us/library/windows/desktop/aa365744(v=vs.85).aspx} |
177,323 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def Wow64DisableWow64FsRedirection():
_Wow64DisableWow64FsRedirection = windll.kernel32.Wow64DisableWow64FsRedirection
_Wow64DisableWow6... | null |
177,324 | import warnings
from winappdbg.win32.defines import *
from winappdbg.win32 import context_i386
from winappdbg.win32 import context_amd64
from winappdbg.win32.version import *
def Wow64RevertWow64FsRedirection(OldValue):
_Wow64RevertWow64FsRedirection = windll.kernel32.Wow64RevertWow64FsRedirection
_Wow64Revert... | null |
177,325 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def GetUserNameA():
_GetUserNameA = windll.advapi32.GetUserNameA
_GetUserNameA.argtypes = [LPSTR, LPDWORD]
_GetUserNameA.restype = bool
nSize = DWORD(0)
_GetUserNameA(None, byref(nSize))
error = GetLastError()
if... | null |
177,326 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def GetUserNameW():
_GetUserNameW = windll.advapi32.GetUserNameW
_GetUserNameW.argtypes = [LPWSTR, LPDWORD]
_GetUserNameW.restype = bool
nSize = DWORD(0)
_GetUserNameW(None, byref(nSize))
error = GetLastError()
i... | null |
177,327 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def LookupAccountSidA(lpSystemName, lpSid):
_LookupAccountSidA = windll.advapi32.LookupAccountSidA
_LookupAccountSidA.argtypes = [LPSTR, PSID, LPSTR, LPDWORD, LPSTR, LPDWORD, LPDWORD]
_LookupAccountSidA.restype = bool
cchName ... | null |
177,328 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def ConvertSidToStringSidA(Sid):
_ConvertSidToStringSidA = windll.advapi32.ConvertSidToStringSidA
_ConvertSidToStringSidA.argtypes = [PSID, LPSTR]
_ConvertSidToStringSidA.restype = bool
_ConvertSidToStringSidA.errcheck = Rais... | null |
177,329 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def ConvertSidToStringSidW(Sid):
_ConvertSidToStringSidW = windll.advapi32.ConvertSidToStringSidW
_ConvertSidToStringSidW.argtypes = [PSID, LPWSTR]
_ConvertSidToStringSidW.restype = bool
_ConvertSidToStringSidW.errcheck = Rai... | null |
177,330 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def ConvertStringSidToSidA(StringSid):
_ConvertStringSidToSidA = windll.advapi32.ConvertStringSidToSidA
_ConvertStringSidToSidA.argtypes = [LPSTR, PVOID]
_ConvertStringSidToSidA.restype = bool
_ConvertStringSidToSidA.errcheck... | null |
177,331 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def ConvertStringSidToSidW(StringSid):
_ConvertStringSidToSidW = windll.advapi32.ConvertStringSidToSidW
_ConvertStringSidToSidW.argtypes = [LPWSTR, PVOID]
_ConvertStringSidToSidW.restype = bool
_ConvertStringSidToSidW.errchec... | null |
177,332 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def IsValidSid(pSid):
_IsValidSid = windll.advapi32.IsValidSid
_IsValidSid.argtypes = [PSID]
_IsValidSid.restype = bool
return _IsValidSid(pSid) | null |
177,333 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def EqualSid(pSid1, pSid2):
_EqualSid = windll.advapi32.EqualSid
_EqualSid.argtypes = [PSID, PSID]
_EqualSid.restype = bool
return _EqualSid(pSid1, pSid2) | null |
177,334 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def GetLengthSid(pSid):
_GetLengthSid = windll.advapi32.GetLengthSid
_GetLengthSid.argtypes = [PSID]
_GetLengthSid.restype = DWORD
return _GetLengthSid(pSid)
def CopySid(pSourceSid):
_CopySid = windll.advapi32.CopySid
... | null |
177,335 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def FreeSid(pSid):
_FreeSid = windll.advapi32.FreeSid
_FreeSid.argtypes = [PSID]
_FreeSid.restype = PSID
_FreeSid.errcheck = RaiseIfNotZero
_FreeSid(pSid) | null |
177,336 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
TOKEN_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | TOKEN_ASSIGN_PRIMARY |
TOKEN_DUPLICATE | TOKEN_IMPERSONATE | TOKEN_QUERY | TOKEN_QUERY_SOURCE |
TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_GROUPS | TOKEN_ADJUST_DEFAULT |
TOKEN... | null |
177,337 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
class TokenHandle (Handle):
"""
Access token handle.
"""
pass
def OpenThreadToken(ThreadHandle, DesiredAccess, OpenAsSelf = True):
_OpenThreadToken = windll.advapi32.OpenThreadToken
_OpenThreadToken.argtypes = [HANDLE,... | null |
177,338 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
SecurityImpersonation = 2
SECURITY_IMPERSONATION_LEVEL = ctypes.c_int
class TokenHandle (Handle):
"""
Access token handle.
"""
pass
def DuplicateToken(ExistingTokenHandle, ImpersonationLevel = SecurityImpersonation):
_Du... | null |
177,339 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
TOKEN_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | TOKEN_ASSIGN_PRIMARY |
TOKEN_DUPLICATE | TOKEN_IMPERSONATE | TOKEN_QUERY | TOKEN_QUERY_SOURCE |
TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_GROUPS | TOKEN_ADJUST_DEFAULT |
TOKEN... | null |
177,340 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def IsTokenRestricted(hTokenHandle):
_IsTokenRestricted = windll.advapi32.IsTokenRestricted
_IsTokenRestricted.argtypes = [HANDLE]
_IsTokenRestricted.restype = bool
_IsTokenRestricted.errcheck = RaiseIfNotErrorSuccess
Se... | null |
177,341 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
class LUID(Structure):
_fields_ = [
("LowPart", DWORD),
("HighPart", LONG),
]
PLUID = POINTER(LUID)
def LookupPrivilegeValueA(lpSystemName, lpName):
_LookupPrivilegeValueA = windll.advapi32.LookupPrivilegeVa... | null |
177,342 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
class LUID(Structure):
_fields_ = [
("LowPart", DWORD),
("HighPart", LONG),
]
PLUID = POINTER(LUID)
def LookupPrivilegeValueW(lpSystemName, lpName):
_LookupPrivilegeValueW = windll.advapi32.LookupPrivilegeVa... | null |
177,343 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
PLUID = POINTER(LUID)
def LookupPrivilegeNameA(lpSystemName, lpLuid):
_LookupPrivilegeNameA = windll.advapi32.LookupPrivilegeNameA
_LookupPrivilegeNameA.argtypes = [LPSTR, PLUID, LPSTR, LPDWORD]
_LookupPrivilegeNameA.restype = bo... | null |
177,344 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
PLUID = POINTER(LUID)
def LookupPrivilegeNameW(lpSystemName, lpLuid):
_LookupPrivilegeNameW = windll.advapi32.LookupPrivilegeNameW
_LookupPrivilegeNameW.argtypes = [LPWSTR, PLUID, LPWSTR, LPDWORD]
_LookupPrivilegeNameW.restype = ... | null |
177,345 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
SE_PRIVILEGE_ENABLED = 0x00000002
SE_PRIVILEGE_REMOVED = 0x00000004
class LUID(Structure):
_fields_ = [
("LowPart", DWORD),
("HighPart", LONG),
]
class LUID_AND_ATTRIBUTES(Structure):
_f... | null |
177,346 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def CreateProcessWithLogonW(lpUsername = None, lpDomain = None, lpPassword = None, dwLogonFlags = 0, lpApplicationName = None, lpCommandLine = None, dwCreationFlags = 0, lpEnvironment = None, lpCurrentDirectory = None, lpStartupInfo = None):
... | null |
177,347 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def CreateProcessWithTokenW(hToken = None, dwLogonFlags = 0, lpApplicationName = None, lpCommandLine = None, dwCreationFlags = 0, lpEnvironment = None, lpCurrentDirectory = None, lpStartupInfo = None):
_CreateProcessWithTokenW = windll.ad... | null |
177,348 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def CreateProcessAsUserA(hToken = None, lpApplicationName = None, lpCommandLine=None, lpProcessAttributes=None, lpThreadAttributes=None, bInheritHandles=False, dwCreationFlags=0, lpEnvironment=None, lpCurrentDirectory=None, lpStartupInfo=None... | null |
177,349 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def CreateProcessAsUserW(hToken = None, lpApplicationName = None, lpCommandLine=None, lpProcessAttributes=None, lpThreadAttributes=None, bInheritHandles=False, dwCreationFlags=0, lpEnvironment=None, lpCurrentDirectory=None, lpStartupInfo=None... | null |
177,350 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HWCT = LPVOID
class ThreadWaitChainSessionHandle (Handle):
"""
Thread wait chain session handle.
Returned by L{OpenThreadWaitChainSession}.
"""
def __init__(self, aHandle = None):
"""
"""
super(Threa... | null |
177,351 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
WCT_MAX_NODE_COUNT = 16
WCTP_GETINFO_ALL_FLAGS = WCT_OUT_OF_PROC_FLAG | WCT_OUT_OF_PROC_COM_FLAG | WCT_OUT_OF_PROC_CS_FLAG
HWCT = LPVOID
class WAITCHAIN_NODE_INFO(Structure):
_fields_ = [
("ObjectType", WCT_OBJECT_TYPE... | null |
177,352 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HWCT = LPVOID
def CloseThreadWaitChainSession(WctHandle):
_CloseThreadWaitChainSession = windll.advapi32.CloseThreadWaitChainSession
_CloseThreadWaitChainSession.argtypes = [HWCT]
_CloseThreadWaitChainSession(WctHandle) | null |
177,353 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
SAFER_LEVEL_HANDLE = HANDLE
SAFER_SCOPEID_USER = 2
SAFER_LEVELID_NORMALUSER = 0x20000
class SaferLevelHandle (UserModeHandle):
"""
Safer level handle.
"""
_TYPE = SAFER_LEVEL_HANDLE
def _close(self):
SaferClose... | null |
177,354 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
SAFER_LEVEL_HANDLE = HANDLE
class TokenHandle (Handle):
"""
Access token handle.
"""
pass
def SaferComputeTokenFromLevel(LevelHandle, InAccessToken=None, dwFlags=0):
_SaferComputeTokenFromLevel = windll.advapi32.SaferCompu... | null |
177,355 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
SAFER_LEVEL_HANDLE = HANDLE
def SaferCloseLevel(hLevelHandle):
_SaferCloseLevel = windll.advapi32.SaferCloseLevel
_SaferCloseLevel.argtypes = [SAFER_LEVEL_HANDLE]
_SaferCloseLevel.restype = BOOL
_SaferCloseLevel.errcheck = Ra... | null |
177,356 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def SaferiIsExecutableFileType(szFullPath, bFromShellExecute = False):
_SaferiIsExecutableFileType = windll.advapi32.SaferiIsExecutableFileType
_SaferiIsExecutableFileType.argtypes = [LPWSTR, BOOLEAN]
_SaferiIsExecutableFileType.r... | null |
177,357 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_CLASSES_ROOT = 0x80000000
HKEY_CURRENT_USER = 0x80000001
HKEY_LOCAL_MACHINE = 0x80000002
HKEY_USERS = 0x80000003
HKEY_PERFORMANCE_DATA = 0x80000004
HKEY_CURRENT_CONFIG = 0x80000005
def RegCloseKey(hKey... | null |
177,358 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegConnectRegistryA(lpMachineName = None, hKey ... | null |
177,359 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
class RegistryKeyHandle (UserModeHandle):
def _close(self):
def RegConnectRegistryW(lpMachineName = None, hKey = HKEY_LOCAL_MACHINE):
_RegConnectRegistryW = windll.advapi32.RegConnectRegistryW
... | null |
177,360 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegCreateKeyA(hKey = HKEY_LOCAL_MACHINE, lpSubK... | null |
177,361 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegCreateKeyW(hKey = HKEY_LOCAL_MACHINE, lpSubK... | null |
177,362 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegOpenKeyA(hKey = HKEY_LOCAL_MACHINE, lpSubKey... | null |
177,363 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegOpenKeyW(hKey = HKEY_LOCAL_MACHINE, lpSubKey... | null |
177,364 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
KEY_ALL_ACCESS = 0xF003F
class RegistryKeyHandle (UserModeHandle):
def _close(self):
def RegOpenKeyExA(hKey = HKEY_LOCAL_MACHINE, lpSubKey = None, samDesired = KEY_ALL_ACCESS):
_RegOpenKe... | null |
177,365 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
HKEY_LOCAL_MACHINE = 0x80000002
KEY_ALL_ACCESS = 0xF003F
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegOpenKeyExW... | null |
177,366 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
KEY_ALL_ACCESS = 0xF003F
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegOpenCurrentUser(samDesired = KEY_ALL_ACCESS):
... | null |
177,367 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
KEY_ALL_ACCESS = 0xF003F
class RegistryKeyHandle (UserModeHandle):
"""
Registry key handle.
"""
_TYPE = HKEY
def _close(self):
RegCloseKey(self.value)
def RegOpenUserClassesRoot(hToken, samDesired = KEY_AL... | null |
177,368 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def RegQueryValueA(hKey, lpSubKey = None):
_RegQueryValueA = windll.advapi32.RegQueryValueA
_RegQueryValueA.argtypes = [HKEY, LPSTR, LPVOID, PLONG]
_RegQueryValueA.restype = LONG
_RegQueryValueA.errcheck = RaiseIfNotErrorSucc... | null |
177,369 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def RegQueryValueW(hKey, lpSubKey = None):
_RegQueryValueW = windll.advapi32.RegQueryValueW
_RegQueryValueW.argtypes = [HKEY, LPWSTR, LPVOID, PLONG]
_RegQueryValueW.restype = LONG
_RegQueryValueW.errcheck = RaiseIfNotErrorSuc... | null |
177,370 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
REG_NONE = 0
REG_SZ = 1
REG_EXPAND_SZ = 2
REG_BINARY = 3
REG_DWORD = 4
REG_DWORD_BIG_ENDIAN = 5
REG_LINK ... | null |
177,371 | from winappdbg.win32.defines import *
from winappdbg.win32.kernel32 import *
def RegEnumKeyA(hKey, dwIndex):
_RegEnumKeyA = windll.advapi32.RegEnumKeyA
_RegEnumKeyA.argtypes = [HKEY, DWORD, LPSTR, DWORD]
_RegEnumKeyA.restype = LONG
cchName = 1024
while True:
lpName = ctypes.create_string_... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.