Gallopsled/pwntools
GitHub で見るshellcraft.mov does not support AH, BH, etc. registers
Open
#1,046 opened on 2017年10月8日
Hacktoberfestenhancementhelp-wantedshellcode
Repository metrics
- Stars
- (11,127 stars)
- PR merge metrics
- (平均マージ 18d 5h) (30d で 5 merged PRs)
説明
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.