The context module tries to be helpful in setting sane default values for some settings based on other settings. Unfortunately these are incomplete, and have potentially unwanted side-effects.
Side-Effects
>>> from pwn import *
>>> context.word_size = 1337
>>> context.arch = 'i386'
>>> assert 1337 == context.word_size
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError
Incomplete
There's no way to set a default endianness. For example, PowerPC is generally big-endian, but setting arch="powerpc" does not set this.
The
contextmodule tries to be helpful in setting sane default values for some settings based on other settings. Unfortunately these are incomplete, and have potentially unwanted side-effects.Side-Effects
Incomplete
There's no way to set a default
endianness. For example, PowerPC is generally big-endian, but settingarch="powerpc"does not set this.