第一次CTF

 

进入夺旗页面,感觉不是玩2048这么简单, 先查看源码

<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>?xatusec?</title>

	<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>

	<div class="container" id="mainVue" v-cloak>
	    <div class="heading">
	      <h1 class="title">2048</h1>
	      <div class="scores-container">
	        <div class="score-container">{{conf.score}}</div>
	        <div class="best-container">{{conf.bestScore}}</div>
	      </div>
	    </div>

	    <div class="above-game">
	      <p class="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p>
	      <a class="restart-button" v-on="click: init">New Game</a>
	      <label class='left' for="noTiles">Select the number of tiles</label>
	      <select v-on="change: changesTilesSize" v-selected="conf.size">
	      	<option value="4">4 tiles</option>
	      	<option value="5">5 tiles</option>
	      	<option value="6">6 tiles</option>
	      </select>
	    </div>

	     <div class="game-container" v-style="width:findDimension + 'px', height: findDimension + 'px'">
	      <div class="game-message">
	        <p></p>
	        <div class="lower">
		        <a class="keep-playing-button" v-on="click: clearMessage">Keep going</a>
	          <a class="retry-button" v-on="click: init">Try again</a>
	        </div>
	      </div>

	      <div class="grid-container" v-component="grid">
	      		<!-- Grid Here -->
		      	<div v-repeat="grid" class="grid-row">
					<div v-repeat="grid" class="grid-cell"></div>
				</div>
	      </div>

	      <div class="tile-container" id="tile-container">
				<div v-repeat="tiles" v-component="tile"  v-style="$transform: 'translate(' + calcStyleX + 'px,' + calcStyleY + 'px)'" class="tile tile-{{value}} tile-new{{merged ? ' tile-merged' : ''}}">
					<div class="tile-inner">{{value}}</div>
				</div>
	      </div>

	    </div>
	    <p class="game-explanation">
	    <strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two tiles with the same number touch, they <strong>merge into one!</strong>
	  </p>
	  <hr>

	  <p>
	    <strong class="important">NOTE:</strong> This game was written using Vue.js
	  </p>

	  <hr>

	  <p>
	    Created by <a href="https://github.com/axilleasiv">Achilleas Kiritsakas</a> based on 2048 by <a href="http://gabrielecirulli.com" target="_blank">Gabriele Cirulli.</a> Based on <a href="https://itunes.apple.com/us/app/1024!/id823499224" target="_blank">1024 by Veewo Studio</a> and conceptually similar to <a href="http://asherv.com/threes/" target="_blank">Threes by Asher Vollmer.</a>
	  </p>

	  </div>


	<script src="js/libs/vue.min.js"></script>
	<script src="js/keys.js"></script>
	<script src="js/store.js"></script>
	<script src="js/main.js"></script>
	<script>
	  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

	  ga('create', 'UA-50859016-1', 'axilleasiv.github.io');
	  ga('send', 'pageview');
	</script>
	
</body>

<!-- flag:flag{qiandaoti} -->
</html>

 轻松发现flag:
<!-- flag:flag{qiandaoti} -->

虽然是很简单的一道夺旗题,但是给了我一些思路,没有思路的时候看源码准没错

相关文章: