i am currently working on a crackme. RDTSC
is used in x86 assemblies to get time stamp to match if it is slowed by a debugger or something.The crackme itself is elf32 stripped binary.
I am currently working on Macos + VirtualBox Debian32.
My strategy was to keep first RDTSC
call and store it's eax
and edx
. Keep it somewhere for other rdtsc
calls, I set previous eax
and edx
values to current ones. I have no luck with this strategy. Crackme still knows me.
I searched through google and found IDAstealth another windows program that lets you fake rdtsc
calls.
I am looking for equivalent of this in linux. Is there any way to set rdtsc
values in linux?