diff options
author | Malfurious <m@lfurio.us> | 2022-12-24 15:25:26 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-01-15 10:12:48 -0500 |
commit | ad106276e2935085f9201ffa65423032f8fcff6b (patch) | |
tree | 6c8af8dc94e4d17b27782310a887e24cd55439fa /templates | |
parent | 806f9029d160c5f47f0b49db288f469718424f7b (diff) | |
download | lib-des-gnux-ad106276e2935085f9201ffa65423032f8fcff6b.tar.gz lib-des-gnux-ad106276e2935085f9201ffa65423032f8fcff6b.zip |
shellcode: Remove shelltool
shelltool is now deprecated, made redundant by the updated Makefile.
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/shellcode/shelltool.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/templates/shellcode/shelltool.py b/templates/shellcode/shelltool.py deleted file mode 100755 index b95a8cd..0000000 --- a/templates/shellcode/shelltool.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python - -# This script will convert shellcode disassembly into an escaped string literal -# and warn about problematic bytes in the payload. -# objdump -d elf | ./shelltool.py - -import sys - -name = None -bytecode = [] -badchars = [ 0x00, 0x0a ] - -for line in sys.stdin: - for tok in line.split(): - if name is None: - name = tok - if len(tok) == 2: - try: - bytecode.append(int(tok, base=16)) - except: - pass - -result = ''.join([ "\\x%02x"%(x) for x in bytecode ]) -result = f'{name}"{result}"' - -for x in badchars: - if x in bytecode: - result += f' **0x{"%02x"%(x)} detected**' - -print(result) |