0x01PING
no paramsHealth check. Returns 0x01 if Daba is connected to the game.
0101Build third-party tools that read and write game memory, send input, and capture packets through Daba. All communication goes through a local named pipe. Your app never touches the game process directly.
Daba sits between your application and the game. It handles all the low-level work needed to access game memory safely and keep your tools running smoothly. Your app simply connects to a named pipe, sends commands, and reads responses.
\\.\pipe\daba_<pid>Replace <pid> with the game's process ID. Daba creates the pipe when it attaches to a game and tears it down when the game exits. Use CreateFile with GENERIC_READ | GENERIC_WRITE to open it.
The pipe operates in byte mode (not message mode). All integers are little-endian. Addresses and sizes are 4 bytes for 32-bit games and described per command below.
CreateFile.DWORD pid = /* game PID */;
char pipeName[64];
sprintf(pipeName, "\\\\.\\pipe\\daba_%u", pid);
HANDLE h = CreateFileA(pipeName, GENERIC_READ | GENERIC_WRITE,
0, NULL, OPEN_EXISTING, 0, NULL);
// Ping
BYTE cmd = 0x01;
DWORD n;
WriteFile(h, &cmd, 1, &n, NULL);
BYTE resp;
ReadFile(h, &resp, 1, &n, NULL);
// resp == 0x01 -> OK
CloseHandle(h);using var pipe = new NamedPipeClientStream(".", $"daba_{pid}",
PipeDirection.InOut);
pipe.Connect(3000);
// Ping
pipe.WriteByte(0x01);
int resp = pipe.ReadByte(); // 0x01 = OKimport struct, win32file
h = win32file.CreateFile(
rf"\\.\pipe\daba_{pid}",
win32file.GENERIC_READ | win32file.GENERIC_WRITE,
0, None, win32file.OPEN_EXISTING, 0, None)
# Ping
win32file.WriteFile(h, b"\x01")
_, resp = win32file.ReadFile(h, 1) # b"\x01" = OK
h.Close()Every command starts with a single byte identifying the operation. Parameters follow immediately. Responses are synchronous: read after each write.
0x01Health check. Returns 0x01 if Daba is connected to the game.
01010x02Returns the game's PID, architecture, and executable path.
02[4:pid] [1:is32] [2:pathLen] [pathLen bytes: path]pidis321 = 32-bit, 0 = 64-bitpathLenpath0x10Read raw bytes from the game's virtual address space.
10 [4:address] [4:length][4:actualLen] [actualLen bytes: data]addresslengthactualLen0 on failure.0x11Write raw bytes into the game's memory.
11 [4:address] [4:length] [length bytes: data][1:ok]addresslengthok1 = success, 0 = failed0x12Query memory region info (base, size, state, protection).
12 [4:address][4:base] [4:size] [4:state] [4:prot]basesizestateprot0x20Enumerate all loaded modules (DLLs) in the game process.
20[2:count] then per entry: [4:base] [4:size] [1:nameLen] [name]0x30Initialize in-game packet capture. Must be called before other PKT commands.
30[1:ok]0x31Inject a packet into the game's network stream.
31 [2:length] [length bytes: data][1:ok]0x32Read all captured packets since last clear.
32[4:count] then per packet: [1:type] [2:len] [len bytes: data]type0 = received, 1 = sent0x33Clear the captured packet buffer.
33[1:ok]0x34Stop packet capture and clean up hooks.
34[1:ok]0x40Allocate virtual memory inside the game process (MEM_COMMIT | MEM_RESERVE).
40 [4:size] [4:protect][4:address]sizeprotect0x04 = PAGE_READWRITE, 0x40 = PAGE_EXECUTE_READWRITE)address0 on failure.0x41Free memory previously allocated with VALLOC (MEM_RELEASE).
41 [4:address][1:ok]0x42Create a thread inside the game process and wait for it to complete (10 second timeout). Equivalent to CreateRemoteThread + WaitForSingleObject.
42 [4:startAddress] [4:parameter][1:ok] [4:exitCode]startAddressLoadLibraryA)parameterok1 = thread created and completed, 0 = failedexitCodeLoadLibraryA, this is the loaded module handle.0x43Hide a loaded module from the game's module list. Removes it from all PEB linked lists and erases its PE header, making it invisible to external module scans. Typically used after injecting a DLL with CTHREAD + LoadLibraryA.
43 [4:baseAddress][1:ok]baseAddressLoadLibraryA via CTHREAD.ok1 = success, 0 = failedSend keyboard input to the game window without needing direct access to User32. Daba handles the input calls internally, so your app never touches the game process. When the game is focused, use SENDINPUT for realistic hardware-level input. When the game is unfocused (background), use KEYDOWN / KEYUP or KEYPRESS which work via PostMessage.
0x50Find the game's main window by class name. Only returns windows belonging to the attached game process. Use this to get an HWND for the other input commands.
50 [2:classLen] [classLen bytes: className][4:hwnd] [1:found]classLenclassNamehwnd0 if not found.found1 = found, 0 = not found0x51Post any window message to the game. Works even when the game is not focused. Use for WM_KEYDOWN (0x0100), WM_KEYUP (0x0101), or any other window message. For simpler key input, use KEYDOWN / KEYUP / KEYPRESS instead.
51 [4:hwnd] [4:msg] [4:wParam][1:ok]hwndmsg0x0100 = WM_KEYDOWN)wParamok1 = posted, 0 = failed0x52Simulate keyboard input via SendInput. This produces hardware-level events that are indistinguishable from real keystrokes. Only works when the game window is focused (foreground). For background input, use KEYDOWN / KEYUP instead.
52 [2:vk] [2:flags][1:ok]vk0x41 = A)flags0 = key down, 0x0002 = key up (KEYEVENTF_KEYUP)ok1 = success, 0 = failed0x53Send a WM_KEYDOWN message to the game window. Works in the background (unfocused). Automatically computes the correct scan code and lParam.
53 [4:hwnd] [1:vk][1:ok]hwndvk0x54Send a WM_KEYUP message to the game window. Works in the background (unfocused). Automatically sets the transition and previous-state bits in lParam.
54 [4:hwnd] [1:vk][1:ok]hwndvk0x55Send a complete key press: WM_KEYDOWN, wait, then WM_KEYUP. Works in the background. The delay between down and up defaults to 50ms if set to 0, capped at 2000ms.
55 [4:hwnd] [1:vk] [2:delayMs][1:ok]hwndvkdelayMsSend a key press to the game window even when it is not focused. This replaces direct calls to PostMessageW via ctypes — Daba handles the User32 calls internally.
import struct, win32file
h = win32file.CreateFile(
rf"\\.\pipe\daba_{pid}",
win32file.GENERIC_READ | win32file.GENERIC_WRITE,
0, None, win32file.OPEN_EXISTING, 0, None)
# 1. Find the game window by class name
class_name = b"GxWindowClass" # WoW's main window class
win32file.WriteFile(h, b"\x50" + struct.pack("<H", len(class_name)) + class_name)
_, resp = win32file.ReadFile(h, 5)
hwnd = struct.unpack("<I", resp[:4])[0]
found = resp[4]
if found:
# 2. Send a full key press (background, works unfocused)
VK_1 = 0x31 # "1" key
delay_ms = 80
win32file.WriteFile(h, b"\x55" + struct.pack("<IBH", hwnd, VK_1, delay_ms))
_, resp = win32file.ReadFile(h, 1)
# resp == b"\x01" -> key press sent
# 3. Or send individual key-down / key-up for held keys
VK_W = 0x57 # "W" key (move forward)
win32file.WriteFile(h, b"\x53" + struct.pack("<IB", hwnd, VK_W))
win32file.ReadFile(h, 1) # key down
# ... hold for desired duration ...
win32file.WriteFile(h, b"\x54" + struct.pack("<IB", hwnd, VK_W))
win32file.ReadFile(h, 1) # key up
h.Close()When the game window is focused, use SENDINPUT for hardware-level keyboard events that are indistinguishable from real keystrokes.
# SendInput key down (game must be focused)
VK_1 = 0x31
win32file.WriteFile(h, b"\x52" + struct.pack("<HH", VK_1, 0x0000))
win32file.ReadFile(h, 1)
# SendInput key up
win32file.WriteFile(h, b"\x52" + struct.pack("<HH", VK_1, 0x0002))
win32file.ReadFile(h, 1)Inject a DLL into the game process and protect it from external scans using VALLOC + WRITE + CTHREAD + HIDE_MODULE:
// 1. Get LoadLibraryA address (same across processes)
DWORD loadLib = (DWORD)GetProcAddress(
GetModuleHandleA("kernel32.dll"), "LoadLibraryA");
// 2. Allocate memory for DLL path
BYTE req[9] = {0x40};
DWORD pathLen = strlen(dllPath) + 1;
*(DWORD*)(req+1) = pathLen;
*(DWORD*)(req+5) = 0x04; // PAGE_READWRITE
WriteFile(pipe, req, 9, &n, NULL);
DWORD remoteAddr;
ReadFile(pipe, &remoteAddr, 4, &n, NULL);
// 3. Write DLL path into allocated memory
BYTE writeReq[9 + MAX_PATH] = {0x11};
*(DWORD*)(writeReq+1) = remoteAddr;
*(DWORD*)(writeReq+5) = pathLen;
memcpy(writeReq+9, dllPath, pathLen);
WriteFile(pipe, writeReq, 9 + pathLen, &n, NULL);
BYTE ok; ReadFile(pipe, &ok, 1, &n, NULL);
// 4. Create thread at LoadLibraryA(remoteAddr)
BYTE threadReq[9] = {0x42};
*(DWORD*)(threadReq+1) = loadLib;
*(DWORD*)(threadReq+5) = remoteAddr;
WriteFile(pipe, threadReq, 9, &n, NULL);
BYTE tOk; DWORD hModule;
ReadFile(pipe, &tOk, 1, &n, NULL);
ReadFile(pipe, &hModule, 4, &n, NULL);
// hModule = loaded DLL base address
// 5. Free the path buffer
BYTE freeReq[5] = {0x41};
*(DWORD*)(freeReq+1) = remoteAddr;
WriteFile(pipe, freeReq, 5, &n, NULL);
ReadFile(pipe, &ok, 1, &n, NULL);
// 6. Hide the injected DLL from module scans
BYTE hideReq[5] = {0x43};
*(DWORD*)(hideReq+1) = hModule;
WriteFile(pipe, hideReq, 5, &n, NULL);
ReadFile(pipe, &ok, 1, &n, NULL);
// ok == 1 -> module is now hiddenCreateFile will fail with ERROR_FILE_NOT_FOUND (error 2). Retry after Daba attaches.CreateFile may return ERROR_PIPE_BUSY (error 231). Call WaitNamedPipe with a timeout, then retry.0 bytes. Reconnect after Daba attaches to a new instance.actualLen = 0 if the address is unreadable (unmapped, guarded, or no-access).ok = 0 if the address is not writable.Daba handles all communication with the game process internally. Your application connects to Daba's pipe and never interacts with the game directly. This means: