arsetryhtehrwgefwadasdadasd

驱动项目

https://github.com/wqreytuk/article/blob/main/agsdygasidgasuidgoGx64_ASM_Kernel_Mode-main.7z

48b91400000080f7ffff48b8bd427ae5d594bfd6488b0948f7e148b8cdcccccccccccccc48c1ea1748f7e24c8bea49c1ed02

在这里插入图片描述

直接在windbg中把执行内存修改为上面这一串字节序列,运行完成后r13中将包含当前时间戳,可使用如下代码转换成人类可阅读时间格式

/*代码BEGIN*/
#include <windows.h>
#include <stdint.h>
#include <stdio.h>

int main()
{
        // Example adjusted time value
    uint64_t adjustedTime = 0x9f4ce6f4;

        // Reverse the operations to get the original time
        uint64_t time = adjustedTime * 5L * 10000000L;

        // Split the 64-bit time into high and low parts
        FILETIME fileTime;
        fileTime.dwLowDateTime = (DWORD)(time & 0xFFFFFFFF);
        fileTime.dwHighDateTime = (DWORD)(time >> 32);

        // Optionally, convert FILETIME back to SYSTEMTIME for readable time
        SYSTEMTIME systemTime;
        FileTimeToSystemTime(&fileTime, &systemTime);

        // Print the SYSTEMTIME
        printf("Year: %d\n", systemTime.wYear);
        printf("Month: %d\n", systemTime.wMonth);
        printf("Day: %d\n", systemTime.wDay);
        printf("Hour: %d\n", systemTime.wHour);
        printf("Minute: %d\n", systemTime.wMinute);
        printf("Second: %d\n", systemTime.wSecond);
        printf("Milliseconds: %d\n", systemTime.wMilliseconds);

        return 0;
  

}
/*代码END*/
  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值