点击一百万次
题目:http://123.206.87.240:9001/test/
view-source: 看一下源代码
1 <!DOCTYPE html> 2 <html> 3 <style> 4 h1{ 5 color: white; 6 text-align: center; 7 } 8 body{ 9 background-color: black; 10 } 11 img{ 12 display: block; 13 margin: 0 auto; 14 } 15 #flag{ 16 color: white; 17 text-align: center; 18 display: block; 19 } 20 </style> 21 <head> 22 <meta charset="utf-8" 23 <meta name="viewport" content="width=device-width, initial-scale=1"> 24 <script src="jquery-3.2.1.min.js"></script> 25 <title>点击一百万次</title> 26 </head> 27 <body> 28 <h1 id="goal">Goal: <span id="clickcount">0</span>/1000000</h1> 29 <img id="cookie" src="cookie.png"> 30 <span id="flag"></span> 31 </body> 32 <script> 33 var clicks=0 34 $(function() { 35 $("#cookie") 36 .mousedown(function() { 37 $(this).width('350px').height('350px'); 38 }) 39 .mouseup(function() { 40 $(this).width('375px').height('375px'); 41 clicks++; 42 $("#clickcount").text(clicks); 43 if(clicks >= 1000000){ 44 var form = $('<form action="" method="post">' + 45 '<input type="text" name="clicks" value="' + clicks + '" hidden/>' + 46 '</form>'); 47 $('body').append(form); 48 form.submit(); 49 } 50 }); 51 }); 52 </script> 53 </html>
分析代码 → clicks 进行传参
抓包看一下
这里是get传参 可以尝试一下 post
发送到Repeater试一下