GET请求及传值
源代码
GET.php
<?php highlight_file("./resource/GETResource.php"); $vari = $_GET['variable']; if($vari == "flag"){ echo "flag{GET_is_very_easy}"; }else{ die("
you will success"); } ?>
GETResource.php
<?php $vari = $_GET['variable']; if($vari == "flag"){ echo "flag{***************}"; }else{ die("you will success"); } ?>我在phpstudy在本地搭建了一个环境
9000端口
效果如图所示:
; $vari = $_POST['variable']; if($vari == "flag"){ echo "flag{POST_is_very_easy}"; }else{ die("
you will success"); } ?>
POSTResource.php
<?php $vari = $_POST['variable']; if($vari == "flag"){ echo "flag{***************}"; }else{ die("you will success"); } ?>访问POST.php效果如图:
POST传值可以通过BurpSuite, curl, Python, hackbar等方法
为了方便,我是用Firefox中的组件hackbar进行传值
传值方法如图:
常见的传值方法一般是GET和POST
其他方法还有exp: HEAD, PUT, DELETE, CONNECT, OPTIONS, TRACES
这里就不作解释啦, 大家可以到网上查询一下这些传值方法