The program is a note editor running inside a x86 64-bit unicorn engine instance.
The start script is provided (see start.py)
| https://www.dropbox.com/scl/fi/jobh46zdlckry18uzg1cg/W14-Group_Activity-12-ML-v2.pptx-1.pdf?rlkey=1fbgu2d5j8n5ylksm3ryfbfem&e=1&dl=0 |
| services: | |
| clientA: | |
| image: nicolaka/netshoot | |
| container_name: hallucinet-clientA | |
| hostname: hallucinet-clientA | |
| networks: | |
| hallucinet-vpn: | |
| ipv4_address: 192.168.100.2 | |
| internet: | |
| clientA-docker: |
| https://1drv.ms/b/s!AjCq6EijQbB3jIwG0Xoct6v2eZpviQ?e=EbzlT7 |
| #include <asm/unistd.h> | |
| #include <linux/perf_event.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid, | |
| int cpu, int group_fd, unsigned long flags) { | |
| int ret; |
| #include <stdio.h> | |
| typedef struct { | |
| short short1; | |
| short short2; | |
| } some_struct; | |
| int main() { | |
| // In memory: 48 65 6c 6c 6f 00 48 69 00 | |
| char *bytes = "\x48\x65\x6c\x6c\x6f\x00\x48\x69\x00"; |