Gallopsled/pwntools
View on GitHubshellcraft.mov does not support AH, BH, etc. registers
Open
#1,046 opened on Oct 8, 2017
Hacktoberfestenhancementhelp-wantedshellcode
Repository metrics
- Stars
- (11,127 stars)
- PR merge metrics
- (Avg merge 18d 5h) (5 merged PRs in 30d)
Description
from pwn import *
# context.arch = 'i386'
print shellcraft.mov('eax', 'ah')
Expected:
movzx eax, ah
Result:
NameError: name 'ah' is not defined
The error is raised when trying to eval ah as a system-constant value
But the real reason is ah is not defined in shellcraft/registers.py as a register in i386.
Issue occurs in amd64 as well.