summaryrefslogtreecommitdiff
path: root/tools/shc/shellcode.c
diff options
context:
space:
mode:
authorspv <aquaticvegetable@gmail.com>2022-05-11 11:41:29 -0400
committerspv <aquaticvegetable@gmail.com>2022-05-11 11:41:29 -0400
commitfe765137cd79a671dc3e6932bb867ef333611e73 (patch)
treeb6374e11a8beb31508946f3056ad6437ee1bf8fa /tools/shc/shellcode.c
parent6181acb12524b30ddfb7eb75840d1de4ca2ca4b0 (diff)
add WIP c shellcode compilation
Diffstat (limited to 'tools/shc/shellcode.c')
-rw-r--r--tools/shc/shellcode.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/shc/shellcode.c b/tools/shc/shellcode.c
new file mode 100644
index 0000000..e48b51d
--- /dev/null
+++ b/tools/shc/shellcode.c
@@ -0,0 +1,10 @@
+/*
+ * native C shellcode
+ */
+
+typedef unsigned int uint32_t;
+
+void shellcode(void) {
+ *(uint32_t*)0x41414141 = 0x42424242;
+// __builtin_unreachable();
+} \ No newline at end of file