summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile3
-rwxr-xr-xshellcode_gen2
2 files changed, 5 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..5f792d2
--- /dev/null
+++ b/makefile
@@ -0,0 +1,3 @@
+make:
+install: shellcode_gen
+ ln $(shell pwd)/shellcode_gen /usr/bin/bash
diff --git a/shellcode_gen b/shellcode_gen
new file mode 100755
index 0000000..f7ba048
--- /dev/null
+++ b/shellcode_gen
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo -n 'printf '0x$(objdump -D "$1" | cut -f 2 -s | sed -r 's/[^a-f,0-9]|\s//g' | tr -d "\n") '| xxd -r -p' | xsel -ib