所以我试图复制 LDB 文件的文本内容,我的问题是只有 1 行被复制如下:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string line;
//For writing text file
//Creating ofstream & ifstream class object
ifstream ini_file{ "file.ldb" };
ofstream out_file{ "copy.txt" };
if (ini_file && out_file) {
while (getline(ini_file, line)) {
out_file << line << "\n";
}
cout << "Copy Finished \n";
}
else {
//Something went wrong
printf("Cannot read File");
}
//Closing file
ini_file.close();
out_file.close();
return 0;
}
该脚本仅复制以下行:
ʨ, ±¨datak T{"Controller":{"a(Status˜valuer":true,"ComasABA },J0 i(SnabW }:?
这就像文件中的前 300 个字符。
整个 ldb 文件大约有 700kb,而输出是 129 字节。
我对解密不感兴趣,我只想要半加密的数据,以后会自己处理。