问题
How to log CPU instructions executed by program with x64dbg?
I saw https://reverseengineering.stackexchange.com/questions/18634/x64dbg-see-the-current-position question, but I can't find the way to log instructions.
回答1:
As far as I understand - you want to log all the executed instructions. The easiest would be to log them in the file. To do this you need to:
- Pause the program, either via
Pause
option (F12) or using breakpoints - Select
Trace
menu and thenTrace into...
(Ctrl+Alt+F7) orTrace over...
(Ctrl+Alt+F8). If you want to log every instruction you probably want to useTrace into...
- Now in the newly created window
you can select the Log Text
format, you can use the proposed 0x{p:cip} {i:cip}
which will log the data to file like 0x006E8749 mov ebp, esp
. It is also good idea to set the Maximum trace count
and the Log File...
where the data will be stored. After you are done just press OK
and the x64dbg will start executing your program and log all the instructions. Keep in mind that the program won't work really fast during the trace procedure.
来源:https://stackoverflow.com/questions/62025029/how-to-log-cpu-instructions-executed-by-program-with-x64dbg