This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| // yousif, namazso, can1357, defcon42 | |
| namespace packet | |
| { | |
| constexpr size_t be_xor_key = 0xd774f59d; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias nproc="sysctl -n hw.physicalcpu" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <libproc.h> | |
| // Uses proc_pidinfo from libproc.h to find the parent of given pid. | |
| // Call this repeatedly until ppid(pid) == pid to get ancestors. | |
| int ppid(pid_t pid) { | |
| struct proc_bsdinfo info; | |
| proc_pidinfo(pid, PROC_PIDTBSDINFO, 0, &info, sizeof(info)); | |
| return info.pbi_ppid; |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git