You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
475 B

#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;
}