Skip to content

Instantly share code, notes, and snippets.

@TheAirBlow
Last active October 27, 2021 15:07
Show Gist options
  • Select an option

  • Save TheAirBlow/0b12ae465452bf5773d9c1eff3c463fd to your computer and use it in GitHub Desktop.

Select an option

Save TheAirBlow/0b12ae465452bf5773d9c1eff3c463fd to your computer and use it in GitHub Desktop.
TestEdu Hack
list_answers();
function list_answers()
{
console.log("==== NORMAL EXERCISES ====");
vinq.forEach(function callback(currentValue, index, array) {
index++;
console.log("Excercise " + index + ":");
hack_normal(index);
});
console.log("==== OTHER EXERCISES ====");
svob.forEach(function callback(currentValue, index, array) {
index++;
console.log("Excercise " + index + ":");
hack_other(index);
});
}
function hack_normal(number)
{
number -= 1;
str1 = rez[number].toString(2);
while(str1.length < vinq[number]) str1="0"+str1;
str1.split("").forEach(function callback(currentValue, index, array) {
console.log("Checkbox " + index + ": " + currentValue); });
}
function hack_other(number)
{
number -= 1;
ans = code(svob[number]);
ans.forEach(function callback(currentValue, index, array) {
console.log("Variant " + index + ": " + currentValue); });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment