001.view_source
知识点:考察浏览器的开发者工具
002.robots
题目已经提示在robots协议中所以访问robots.txt
这里已经提示你flag的位置,访问http://111.200.241.244:51497/f1ag_1s_h3re.php可以得到flag。
003.backup
题目提示为备份文件,所以我百度搜一下:
获得一个文件:
发现这个文件里面没有flag
我想了一下把xx.php.bak -> xx.txt然后打开果然找到了flag。
004.cookie
题目提示找cookie这一栏
发现cookie.php,我们进行访问
005.disabled_button
本题考查js
把这行代码去掉就可以了。
006.weak_auth

我们访问该页面

接下来我们用到Burp suite工具进行爆破

007.simple_php
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?phpshow_source(__FILE__);include("config.php");$a=@$_GET['a'];$b=@$_GET['b'];if($a==0 and $a){ echo $flag1;}if(is_numeric($b)){ exit();}if($b>1234){ echo $flag2;}?> |
知识点:弱类型总结https://www.cnblogs.com/Mrsm1th/p/6745532.html
a又要为0且不是0还有b不能为数值型

008.get_post
题目让get方式提交

利用burp suite将get数据包改为post数据包

009.xff_referer
- xff 是http的拓展头部,作用是使Web服务器获取访问用户的IP真实地址(可伪造)。由于很多用户通过代理服务器进行访问,服务器只能获取代理服务器的IP地址,而xff的作用在于记录用户的真实IP,以及代理服务器的IP。
010.webshell
011.command_execution
预备知识:
- <pre>标签最基本的认识就是预格式化文本,被包围在 pre 元素中的文本通常会保留空格和换行符。
1.利用反射型XSS(比较麻烦)
2.利用命令执行
012.simple_js
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
function dechiffre(pass_enc){ var pass = "70,65,85,88,32,80,65,83,83,87,79,82,68,32,72,65,72,65"; var tab = pass_enc.split(','); var tab2 = pass.split(',');var i,j,k,l=0,m,n,o,p = "";i = 0;j = tab.length; k = j + (l) + (n=0); n = tab2.length; for(i = (o=0); i < (k = j = n); i++ ){o = tab[i-l];p += String.fromCharCode((o = tab2[i])); if(i == 5)break;} for(i = (o=0); i < (k = j = n); i++ ){ o = tab[i-l]; if(i > 5 && i < k-1) p += String.fromCharCode((o = tab2[i])); } p += String.fromCharCode(tab2[17]); pass = p;return pass;}String["fromCharCode"](dechiffre("x35x35x2cx35x36x2cx35x34x2cx37x39x2cx31x31x35x2cx36x39x2cx31x31x34x2cx31x31x36x2cx31x30x37x2cx34x39x2cx35x30"));h = window.prompt('Enter password');alert( dechiffre(h) ); |
解密脚本
|
1
2
3
4
5
6
7
8
9
10
|
def print_hi(): str = "x35x35x2cx35x36x2cx35x34x2cx37x39x2cx31x31x35x2cx36x39x2cx31x31x34x2cx31x31x36x2cx31x30x37x2cx34x39x2cx35x30" num = str.split(",") for i in num: print(chr(int(i)),end="")# Press the green button in the gutter to run the script.if __name__ == '__main__': print_hi() |


















