123456789
#include <sys/ptrace.h> #include <sstream> using namespace std; pid_t pgrep(string username, string processName); int main(int argc, const char * argv[]) { pid_t pid = pgrep("montana","Chrome"); int stuff = ptrace(PTRACE_ATTACH, pid, NULL, NULL); }