Qnote

Public notes

Common-knowledge notes available without an account.

Latest public notes

18 notes are visible in the public index.

publicc++ hello world反汇编linux/aarch64/hello_world.md

这是一段ARM64架构上的函数汇编代码。以下是逐行解释:

publicExpert-Level GDB Mastery Guidelinux/advanced_gdb.md

I'll guide you through mastering GDB, building from core concepts to advanced techniques that distinguish expert-level debugging.

publichttps://developer.android.com/reference/android/view/KeyEvent#KEYCODE0linux/android/adb_key_mapping.mdpublicAdblinux/android/adb.md

通过 ADB(Android Debug Bridge) 连接上设备后,你可以执行许多操作,主要包括以下几大类:

publicArch Prctllinux/arch_prctl.md

archprctl 是一个用于在 x86-64 架构上设置和获取线程特定寄存器 (FS 和 GS 寄存器) 值的系统调用。它通常在实现线程本地存储(TLS)或在操作系统内部进行某些低级别任务时使用。

publicReplace 12345 with actual decimal offset from grep -abolinux/binary_patch.md

Patching the binary so the default interface is Ethernet28 without recompiling: the default comes from the string "Ethernet1" (from KBRDDEFAULTIFNAME). Replace that string in the binary.

publicBPF CO-RE reference guidelinux/bpf/bpf_core_reference_guide.md

Oct 24, 2021

publicBuilding BPF applications with libbpf-bootstraplinux/bpf/building_bpf_app_with_libbpf_bootstrap.md

Nov 29, 2020

publicBPF CO-RE (Compile Once – Run Everywhere)linux/bpf/compile_once_run_everywhere.md

Feb 19, 2020

publicConceptlinux/concept.md

One of the most important structures in the kernel is the struct taskstruct, yet not the simplest one.

publicBreakpointslinux/debug/breakpoints.md

To determine whether an address is in user space or kernel space, let's look at the address:

publicCrash Sample1linux/debug/crash_sample1.md

Hi,

publicWhite Paper: Crash Utilitylinux/debug/crash.md

by David Anderson

publicDbg And Dbgsymlinux/debug/dbg_and_dbgsym.md

-dbg 和 -dbgsym 都是用于提供 调试符号(debug symbols) 的,但它们的机制和用途有所不同:

publicDebugging kernel and modules via gdblinux/debug/debug_kernel_module_with_gdb.md

The kernel debugger kgdb, hypervisors like QEMU or JTAG-based hardware interfaces allow to debug the Linux kernel and its modules during runtime using gdb. Gdb comes with a powerful scripting interface for python. The kernel provides a coll

public[Linux Kernel Exploitation 0x0] Debugging the Kernel with QEMUlinux/debug/debug_linux_kernel_with_qemu.md

> Posted by Keith Makan November 10, 2020

publicDynamic debuglinux/debug/dynamic_debug.md

Dynamic debug allows you to dynamically enable/disable kernel debug-print code to obtain additional kernel information.

publicDemo1linux/debug/ftrace/demo1.md

The commands you provided are used to trace kernel events using the ftrace framework in the Linux kernel. Here is an explanation of what each command does and how to use them effectively.