From 689307ef9e52391080fc1e26c987290029b8ca08 Mon Sep 17 00:00:00 2001 From: bx Date: Thu, 15 Sep 2022 19:25:51 +0100 Subject: [PATCH] added test.c --- test.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test.c diff --git a/test.c b/test.c new file mode 100644 index 0000000..45bf217 --- /dev/null +++ b/test.c @@ -0,0 +1,19 @@ +#include + +void puts2() { + asm("pop %rbp"); + goto *(&puts); + //return 0; +} + +void printf2() { + asm("pop %rbp"); + goto *(&printf); +} + +int main (int argc, char **argv) { + //puts2(argv[1]); + puts2(argv[0]); + printf2("%i hello %s %s\n", argc, argv[0], "yeetcreeper"); + return 0; +}