Skip to content

Commit f52b308

Browse files
committed
fix build fail
1 parent 79f8bb9 commit f52b308

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pwnlib/tubes/process.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ def __on_enoexec(self, exception):
476476
binfmt helpers installed for QEMU.
477477
"""
478478
# Get the ELF binary for the target executable
479-
binary = pwnlib.elf.ELF(self.executable)
479+
from pwnlib.elf import ELF
480+
binary = ELF(self.executable)
480481

481482
# If we're on macOS, this will never work. Bail now.
482483
# if platform.mac_ver()[0]:
@@ -1385,7 +1386,8 @@ def elf(self):
13851386
13861387
Returns an ELF file for the executable that launched the process.
13871388
"""
1388-
return pwnlib.elf.ELF(self.executable)
1389+
from pwn.elf import ELF
1390+
return ELF(self.executable)
13891391

13901392
@property
13911393
def corefile(self):

0 commit comments

Comments
 (0)