You are Captain Kirk and Your missions is to destroy all aliens to retrieve special gem.
Go and Start Your adventure - http://10.1XX.1XX.111
Can You figure out a way how to beat space invader game?
Opening the webpage returns a JavaScript alarm with text "This Secret Space Mission is only accessible from browsers approved by 'space' agency !" and redirects to Mozilla's website about User-Agent HTTP header.
Viewing the source reveals that there is a User-Agent check, verifying that space
exists in User-Agent string.
if (navigator.userAgent.search("space"))
{
alert("This Secret Space Mission is only accessible from browsers approved by 'space' agency !");
window.location.href = "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent";
}
This check can be bypassed, e.g., with Chrome's override the user agent string. Website allows playing an old classic game - Space Invaders.
I lost and got "GAME OVER". Look at source in js/space_invaders.app.js
and check what's happening when one wins.
function gameCompleted() {
var playerWon = scene.allInvadersKilled();
if (playerWon) {
scene.drawTextOverlay("YOU WON", "Congratulations " + game.player + "!");
var img = new Image();
var div = document.getElementById('alt');
img.onload = function(){
div.appendChild(img);
}
img.src ="graphics/space.png";
} else {
scene.drawTextOverlay("GAME OVER", "Too bad... " + game.player);
}
}
Image graphics/space.png
is shown to the winner.
Fixing the QR code (drawing a rectangle) and reading it with QR reader, gives the flag - 52ead9934c8becb0ca961590b5b42176.