-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
It seems counter-intuitive for 64bit applications to be considered native to a 32bit host. Is this a bug?
pwntools/pwnlib/context/__init__.py
Lines 687 to 699 in f046fdd
@property | |
def native(self): | |
if context.os in ('android', 'baremetal', 'cgc'): | |
return False | |
arch = context.arch | |
with context.local(arch = platform.machine()): | |
platform_arch = context.arch | |
if arch in ('i386', 'amd64') and platform_arch in ('i386', 'amd64'): | |
return True | |
return arch == platform_arch |