injecting & self-replicating

This commit is contained in:
Jeremy Janella
2026-11-17 16:11:17 -05:00
commit b9332ade8e
19 changed files with 9377 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# evilcc: An evil, small C Compiler based on chibicc
THIS IS MALWARE
Evilcc is chibicc plus two features: it injects a payload into code it compiles, and self replicates into chibicc when compiled.
The payload is `printf("pwned");` initially into main.
Functions added are all in `tokenize.c`:
`insert_payload_main()`: inserts a payload at the beginning of main
`insert_quine()` self replicates when compiling chibicc
Check out [chibicc](https://github.com/rui314/chibicc)