#include "src/system/betatest.hpp"
|
|
|
|
#include <fstream>
|
|
#include <string>
|
|
|
|
bool checkBetaTest()
|
|
{
|
|
std::string betaFlag = "7h1s_i5_n0t_a_b3t4_tE5t_k3y";
|
|
std::string tmp;
|
|
|
|
int result = -1;
|
|
|
|
try
|
|
{
|
|
std::fstream betaFile("beta.test");
|
|
|
|
if (betaFile) {
|
|
betaFile >> tmp;
|
|
|
|
result = tmp.compare("SlashRootCTF{" + betaFlag + "}");
|
|
}
|
|
}
|
|
catch(...)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return result == 0;
|
|
}
|