白云点缀的蓝 发表于 2021-11-1 12:03

源码分享

本帖最后由 白云点缀的蓝 于 2021-11-9 22:26 编辑


#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <Windows.h>
#include <stdio.h>
#include <io.h>
#include <string>
#include "标头.h"
#define MAX 128


using namespace std;


intDecode=1(const char * fileName,const char *Storage) {
      char* fileN = (char*)malloc(MAX);
      sprintf(fileN, "%s%s%s", "c:\\\\Windows\\\\dhf\\\\", fileName,".tmp");
      FILE* fp = fopen(fileN,"rb");
      fseek(fp, 0, SEEK_END);
      DWORD dwsize = ftell(fp);
      byte* buffer = new byte;
      memset(buffer, 0, dwsize + 1);
      fseek(fp, 0, SEEK_SET);
      fread(buffer, dwsize, 1, fp);
      fclose(fp);
      int t = (int)buffer;
      for (DWORD i = 0; i < dwsize; i++)
      {
                buffer ^= t;
      }
      char* fileNa = (char*)malloc(MAX);
      sprintf(fileNa, "%s%s%s%s", Storage, ":\\\\", fileName,".mp4");
      FILE* fp2 = fopen(fileNa, "wb");
      fwrite(buffer, dwsize, 1, fp2);
      fclose(fp2);
      printf("提取成功,文件所在目录为%s盘", Storage);
      return EXIT_SUCCESS;
}
int Dump() {
      HMODULE   hModule = NULL;

      FARPROC   lpFunc = NULL;

      hModule = LoadLibrary(L"HRC5.dll");
      //printf("%X\n", hModule);

      if (hModule)
                lpFunc = GetProcAddress(hModule, "StartDHFDump");

      if (lpFunc != (FARPROC)NULL)
                (*lpFunc)();

      FreeLibrary(hModule);
      return EXIT_SUCCESS;
}
int main(int argc,char **argv) {
      Dump();
      Decode=1(argv, argv);
}



#pragma once
#include <string>
int ListDirName(void);
//int main11();
bool EndsWith(const std::string& str, const std::string& suffix);
bool compare_pred(unsigned char a, unsigned char b);
intDecode=1(char* fileName);
int Dump();
int WriteIniFile(char* filename);
int main11(char* path);



白云点缀的蓝 发表于 2021-11-1 12:16

本帖最后由 白云点缀的蓝 于 2021-11-9 22:26 编辑

支持一下~~~

628721 发表于 2021-11-3 12:57

白云点缀的蓝 发表于 2021-11-3 13:13

628721 发表于 2021-11-3 12:57
你QQ多少

加你好友验证信息发你了

zh0ng168 发表于 2021-11-8 15:20

过来学习学习,想有一天也能成为各位一样厉害的人

123hao 发表于 2021-11-9 21:35

这个好 这个好 ,学到了

leslielee 发表于 2021-11-13 08:27

可以加个qq请教一下吗

studyhao 发表于 2021-11-16 13:43

这个就牛逼了。

1250110641 发表于 2021-11-25 10:38

真的好东西,很实用,希望楼主多分享

xh123456 发表于 2021-12-6 22:01

楼主运行报错
页: [1] 2 3 4 5 6 7 8
查看完整版本: 源码分享