summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Weiland <techcrazybsw@gmail.com>2020-10-27 09:32:33 -0500
committerBrett Weiland <techcrazybsw@gmail.com>2020-10-27 09:32:33 -0500
commit5c726a8b0fb6e35edfa50120b9a76fe236bae558 (patch)
tree0d522887dd83d21db6331176071e7a496cb55496
new file: makefile
new file: shellcode_gen
-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