All tavern owners in Mondstadt are really worried because of the frequent thefts in the Dawn Winery cellars. The Adventurers’ Guild has decided to secure the cellar door passwords using a special cipher device. But the cipher device itself requires various specifications….which the guild decided to find out by touring the entire Teyvat.
PS: The Guild started from the sands of Deshret then travelled through the forests of Sumeru and finally to the cherry blossoms of Inazuma
In this challenge, we encounter a website with four inputs.
Upon inspecting the source code, we find a JavaScript file containing the correct inputs.
const submitBtn1 = document.getElementById("submit-btn-1");
const firstFour = document.querySelector(".first-four");
const submitBtn2 = document.getElementById("submit-btn-2");
const secFour = document.querySelector(".sec-four");
const submitBtn3 = document.getElementById("submit-btn-3");
const thirdFour = document.querySelector(".third-four");
const submitBtn4 = document.getElementById("submit-btn-4");
const fourthFour = document.querySelector(".fourth-four");
submitBtn1.addEventListener("click", ()=> {
const inputText1 = document.getElementById("input1").value.trim();
if (inputText1.toLowerCase() === "enigma m3") {
firstFour.classList.remove("centered-align");
firstFour.classList.add("hidden");
}
else{
alert("Incorrect deciphering! Try again!")
}
});
submitBtn2.addEventListener("click", ()=> {
const inputText2 = document.getElementById("input2").value.trim();
if (inputText2.toLowerCase() === "ukw c") {
secFour.classList.remove("centered-align");
secFour.classList.add("hidden");
}
else{
alert("Incorrect deciphering! Try again!")
}
});
submitBtn3.addEventListener("click", ()=> {
const inputText3 = document.getElementById("input3").value.trim();
if (inputText3.toLowerCase() === "rotor1 i p m rotor2 iv a o rotor3 vi i n") {
thirdFour.classList.remove("centered-align");
thirdFour.classList.add("hidden");
}
else{
alert("Incorrect deciphering! Try again!")
}
});
submitBtn4.addEventListener("click", ()=> {
const inputText4 = document.getElementById("input4").value.trim();
if (inputText4.toLowerCase() === "vi sh wa ct fx") {
fourthFour.classList.remove("centered-align");
fourthFour.classList.add("hidden");
}
else{
alert("Incorrect deciphering! Try again!")
}
});
After submitting them, we receive a picture of encrypted text.
To decrypt it, we employ the Enigma machine, with the correct submissions serving as the settings to decrypt the flag.
FLAG :
VishwaCTF{beware_of_tone-deaf_bard}