登录后更精彩...O(∩_∩)O...
您需要 登录 才可以下载或查看,没有账号?立即注册
×
资源来自互联网分享,侵权请告知删除。
如链接失效,请联系管理

价值1688元的游戏逆向分析课程
网盘里只有一个文件,后缀以mp4结尾,但这个视频看不了,它是个加密文件,接着往下看---下载后怎么操作。 下载后怎么操作说明下:上面这个网盘链接的东西是经过简单加密处理的,下载完后需要先进行简单解密,下面这段代码可以用来简单加密,也可以用来解密,对于你下载后的文件要解密,解密代码如下:
[C++] 纯文本查看 复制代码 #include <stdio.h>
#pragma warning(disable:4996)
int main()
{
FILE* readFile = NULL;
FILE* writeFile = NULL;
unsigned char textA[4096] = { 0 };
unsigned char textEncry[4096] = { 0 };
int textALen = 0;
int textEncryLen = 0;
readFile = fopen("C:\\Users\\sky\\Desktop\\我的视频.mp4", "rb"); // windows系统上的格式
//readFile = fopen("/home/hi/my-document/azx/text-encry.pdf", "rb"); // linux系统上的格式
if (readFile == NULL)
{
printf("read error\n");
fclose(readFile);
return 1;
}
writeFile = fopen("C:\\Users\\sky\\Desktop\\我的视频--encry.mp4", "wb"); // windows系统上的格式
//writeFile = fopen("/home/hi/my-document/azx/text-decry.pdf", "wb"); //linux系统上的格式
if (writeFile == NULL)
{
printf("write error\n");
fclose(writeFile);
return 1;
}
printf("Begin encryption/decryption, please wait a moment\n");
while (!feof(readFile))
{
textALen = fread(textA, 1, 4096, readFile);
if (feof(readFile))
{
break;
}
if (textALen != 0)
{
for (int m = 0; m < 4096; m++)
{
textEncry[m] = textA[m] ^ 0xFE;
}
}
textEncryLen = fwrite(textEncry, 1, 4096, writeFile);
if (textALen == textEncryLen)
{
//printf("--- file encryption/decryption success\n");
;
}
else
{
printf("--- read length(%d) is not equal to write length(%d)\n", textALen, textEncryLen);
printf("Check there is have available memory\n");
return 1;
}
}
if (textALen != 0)
{
for (int m = 0; m < textALen; m++)
{
textEncry[m] = textA[m] ^ 0xFE;
}
}
textEncryLen = fwrite(textEncry, 1, textALen, writeFile);
if (textALen == textEncryLen)
{
printf("*** file encryption/decryption success\n");
printf("********* Congratulations, the operation has been completed correctly.\n");
}
else
{
printf("*** read length(%d) is not equal to write length(%d)\n", textALen, textEncryLen);
printf("Check there is have available memory\n");
return 1;
}
fclose(readFile);
fclose(writeFile);
}
上面代码需要修改的地方有两处,第一处是把
readFile = fopen("C:\\Users\\sky\\Desktop\\我的视频.mp4", "rb");
中得C:\\Users\\sky\\Desktop\\我的视频.mp4 改为你下载后的文件路径及名字,格式就是我写的这个。
第二处是把
writeFile = fopen("C:\\Users\\sky\\Desktop\\我的视频--encry.mp4", "wb");
中得C:\\Users\\sky\\Desktop\\我的视频--encry.mp4改为你想保存的路径及名字。
最后解密完后把文件后缀mp4改为zip再解压即可。
下面是网盘链接:
试读已结束,请付费阅读全文。   本文只能试读93%,付费后可阅读全文。  |