diff options
Diffstat (limited to 'example/asm')
| -rwxr-xr-x | example/asm/shellcode.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/asm/shellcode.py b/example/asm/shellcode.py index bacb65fb..0c08a8a3 100755 --- a/example/asm/shellcode.py +++ b/example/asm/shellcode.py @@ -64,7 +64,10 @@ else: with open(args.source) as fstream: source = fstream.read() -blocks, symbol_pool = parse_asm.parse_txt(machine.mn, attrib, source) + +symbol_pool = asmblock.AsmSymbolPool() + +blocks, symbol_pool = parse_asm.parse_txt(machine.mn, attrib, source, symbol_pool) # Fix shellcode addrs symbol_pool.set_offset(symbol_pool.getby_name("main"), addr_main) |