首页
社区
课程
招聘
[旧帖] [求助]跟据Rcracker兄弟发的教程序的第四篇内存断点写程序 0.00雪花
发表于: 2006-11-19 10:29 3931

[旧帖] [求助]跟据Rcracker兄弟发的教程序的第四篇内存断点写程序 0.00雪花

2006-11-19 10:29
3931
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;

int main()
{
    char                Drive[MAX_PATH];
    char                DriveVolume[MAX_PATH];
    char                ascii[MAX_PATH];
    string      ComputeResult;
    DWORD                 MaxVolumeSize=11;
    DWORD       lpResult;

    cout << "请输入要注册的程序所在的磁盘" << endl;
    cin >> Drive;
    UINT DriveType = GetDriveType(Drive);
    cout << "你所输入的磁盘类型为" << DriveType << endl;

    BOOL lResult = GetVolumeInformation(Drive,                 //驱动盘符
                                DriveVolume,                 //磁盘卷标
                                MAX_PATH,               //最大卷标长度 !!!
                                NULL,
                                NULL,
                                NULL,
                                NULL,
                                256);
       
        cout << "The volume is :" << DriveVolume << endl;        // !!!

    int n = lstrlen(DriveVolume);
    cout << DriveVolume << "字符长度为" << n << endl;
    strrev(DriveVolume);
    for (int i=0;i<n;i++)
    {
        sprintf(ascii,"%x",(int)DriveVolume[i]);
        ComputeResult+=ascii;
    }
    cout<<ComputeResult<<endl;
    system("pause");
    return 0;
}

到了这步,不知道怎么继续下去了,算法是递减磁盘类型与磁盘卷标相乘,再跟797A7553异或,得到注册码。请高手教偶一下,谢谢,获取卷标暂时只支持英文的。

[课程]FART 脱壳王!加量不加价!FART作者讲授!

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 424
活跃值: (10)
能力值: ( LV9,RANK:850 )
在线值:
发帖
回帖
粉丝
2
这位大哥是高手哦`
2006-11-19 10:46
0
雪    币: 108
活跃值: (10)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
3
最初由 大菜一号 发布
这位大哥是高手哦`


我是菜鸟来的,只是会点C语言编程而已
2006-11-19 11:30
0
游客
登录 | 注册 方可回帖
返回
//