Skip to content

Commit e608a46

Browse files
committed
Merge branch 'beta' into dev
2 parents 340b0bf + fa2d477 commit e608a46

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

pwnlib/elf/plt.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,6 @@ def prepare_unicorn_and_context(elf, got, address, data):
122122

123123
uc.mem_write(got, p_magic)
124124

125-
# Separately, Unicorn is apparently unable to hook unmapped memory
126-
# accesses on MIPS. So we also have to map the page that contains
127-
# the magic address.
128-
start = magic_addr & (~0xfff)
129-
try:
130-
uc.mem_map(start, 0x1000)
131-
except Exception:
132-
# Ignore double-mapping
133-
pass
134-
trap = packing.p32(0x34000000, endian=elf.endian)
135-
uc.mem_write(magic_addr, trap)
136-
137125
return uc, uc.context_save()
138126

139127

pwnlib/libcdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def unstrip_libc(filename):
221221
>>> libc = ELF(filename)
222222
>>> hex(libc.symbols.main_arena)
223223
'0x219c80'
224-
>>> unstrip_libc(which('python3'))
224+
>>> unstrip_libc(pwnlib.data.elf.get('test-x86'))
225225
False
226226
>>> filename = search_by_build_id('d1704d25fbbb72fa95d517b883131828c0883fe9', unstrip=True)
227227
>>> 'main_arena' in ELF(filename).symbols

0 commit comments

Comments
 (0)