{"type": "session", "harness": "deepseek-harness", "id": "sec-0017", "name": "Heap exploitation techniques"} {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} {"type": "message", "message": {"role": "user", "content": "What are heap exploitation techniques?"}} {"type": "message", "message": {"role": "assistant", "content": "**House of Force:** Overwrite top chunk, calculate distance to target.\n**Fastbin Attack:** Overwrite fd pointer, malloc returns controlled addr.\n**tcache poisoning:** Fill tcache, overwrite fd, next malloc returns target.\n**Use-After-Free:** Free chunk, spray, access freed chunk for vtable hijack."}}