Tags: web
Rating:
# Flag Check V1
-----
This challenge was a simple Javascript Obfuscation
Looking at the source code of the page we see a ***main.js***
The javascript code look like this :
```
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+
```
The easiest solution to complete this task was to replace the last
```
()
```
by
```
toString();
```
And here is the unobfuscated version of the code
```
function anonymous() {
$flag = prompt("Enter the flag"); if($flag == "xiomara{0bfusc@tion_c@n_b3_e@sy_@s_j5fuck}") { alert("You got right flag"); } else { alert("You got wrong flag"); }
}
```
Flag was `xiomara{0bfusc@tion_c@n_b3_e@sy_@s_j5fuck}`