Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise Unhandled CPU exception when i use uc->reg_write() to set segment: FS GS #1

Open
LakerMoon opened this issue Dec 1, 2021 · 0 comments

Comments

@LakerMoon
Copy link

In runpe.py,Func: runpe
uc.reg_write(UC_X86_REG_FS, GDT_FS_IDX << 3)
uc.reg_write(UC_X86_REG_GS, GDT_GS_IDX << 3)

File "C:/Users/yue_hu/Downloads/x86-64-pe-emu-master/x86-64-pe-emu-master/runpe.py", line 483, in main
runpe(args.file, length)
File "C:/Users/yue_hu/Downloads/x86-64-pe-emu-master/x86-64-pe-emu-master/runpe.py", line 334, in runpe
uc.reg_write(UC_X86_REG_FS, GDT_FS_IDX << 3)
File "C:\Python27\lib\site-packages\unicorn\unicorn.py", line 448, in reg_write
raise UcError(status)
unicorn.unicorn.UcError: Unhandled CPU exception (UC_ERR_EXCEPTION)

Process finished with exit code 1

please how can i solve this issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant