ctfshow_WEBak赛

这里写目录标题

web1_观字

<?php

#flag in http://192.168.7.68/flag
if(isset($_GET['url'])){
    
    
    $url = $_GET['url'];
    $protocol = substr($url, 0,7);
    if($protocol!='http://'){
    
    
        die('仅限http协议访问');
    }
    if(preg_match('/\.|\;|\||\<|\>|\*|\%|\^|\(|\)|\#|\@|\!|\`|\~|\+|\'|\"|\.|\,|\?|\[|\]|\{|\}|\!|\&|\$|0/', $url)){
    
    
        die('仅限域名地址访问');
    }
    system('curl '.$url);
}

这里限制了好多东西,我们可以先看一下ssrf的绕过方式绕过总结
这里发现有个句号绕过
在这里插入图片描述总结
1、ssrf句号绕过;

猜你喜欢

转载自blog.csdn.net/qq_45951598/article/details/114481650