summaryrefslogtreecommitdiff
path: root/src/ptrace-address-rw.c
blob: 21736adedde563149ad3bdc33e8f3f1f2c552097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "cli/cli.h"
#include "mem/io.h"

// This address-rw uses ptrace
// This works with older kernels, but it also ensures non racy read/writes, as it stops the process.
// It's recommended to `setcap cap_sys_ptrace=eip ptrace-region-rw` to run this tool without sudo

int
main(int argc, const char *argv[])
{
   return proc_address_rw(argc, argv, mem_io_ptrace_init);
}