#CTF

某入群题2

就一个登陆界面。目录也没扫出来。无源码泄露。
burp抓个包试试注入
输入单引号 返回请停止输入危险字符/单词!
用双引号试了下。没反应。应该就是单引号的注入


[PwnThyBytes 2019]Baby_SQL(session+sql注入)

source.zip得到源码。开始审计
在index.php中。对所有输入进行了addslashes转义。
在login.php中


virink_2019_files_share(任意文件读取)

查看源代码发现

	<link rel="icon" href="/uploads/favicon.ico" type="image/x-icon" />
	<!-- Hint : flag in f1ag_Is_h3re -->
	<!-- 趣味题,真的是为了出题而出题的,别打我。 By Virink -->


typecho反序列化复现

之前在MRCTF还是WUST上有个typecho的反序列化来着。只做到了SSRF。现在来复现下


[CISCN2019 总决赛 Day1 Web4]Laravel1(反序列化)

u1s1。BUU一分题太顶了

这题。看了好久WP的情况下才复现。。。
涉及类的知识有点多。命名空间。继承。接口。啥的


[PWNHUB 公开赛 2018]傻 fufu 的工作日(上传差异绕过)

访问index.php.bak得到index.php的源码

<?php /* PHP Encode by  http://Www.PHPJiaMi.Com/ */error_reporting(0);ini_set("display_errors", 0);if(!defined('jnggfmpt')){define('jnggfmpt',__FILE__);if(!function_exists("鯒仅熫")){functi.省略。。。。。。

可以看出这是个phpjiami的加密文件。得解密


[NCTF2019]phar matches everything(phar反序列化)

这题得从github上下源码。
进入web。有两个功能。一个是判断文件类型。一个是文件上传。配合源码。分析一下
文件上传:


[GoogleCTF2019 Quals]Bnv(本地dtdxxe)


WUST-CTF2020(Web/Misc/Crypto)

终于AK了一次WEB~~~~~😃


MRCTF(Web+Misc+Crypto)

web

Ezpop

<?php
//flag is in flag.php
//And Crack It!
class Modifier {
    protected  $var;
    public function append($value){
        include($value);
    }
    public function __invoke(){
        $this->append($this->var);
    }
}

class Show{
    public $source;
    public $str;
    public function __construct($file='index.php'){
        $this->source = $file;
        echo 'Welcome to '.$this->source."<br>";
    }
    public function __toString(){
        return $this->str->source;
    }

    public function __wakeup(){
        if(preg_match("/gopher|http|file|ftp|https|dict|\.\./i", $this->source)) {
            echo "hacker";
            $this->source = "index.php";
        }
    }
}

class Test{
    public $p;
    public function __construct(){
        $this->p = array();
    }

    public function __get($key){
        $function = $this->p;
        return $function();
    }
}

if(isset($_GET['pop'])){
    @unserialize($_GET['pop']);
}
else{
    $a=new Show;
    highlight_file(__FILE__);
}


易霖博YCTF-共克时艰-停课不停赛(web)

注一下
好像是攻防世界的原题。。
注册一个"||updatexml(1,(version()),1)#
登陆后。修改密码会报错。报错注入拿flag。用()绕过空格
"||updatexml(1,concat(0x7e,(select(flag)from(flag)),0x7e),1)#


[SWPUCTF 2016]Web blogsys(hash扩展攻击+变量覆盖)

github下载源码审计。
首先从配置文件common.php开始审计
一个很明显的变量覆盖漏洞


[HITCON 2017]Baby^h Master PHP(Phar反序列化+匿名函数)

题目给出了源码。有两个功能。一个是upload。一个是show
upload呢。是输入一个URL。然后会访问URL/avatar.gif然后保存到本地
show呢。是读取这个gif文件。


[HBCTF2017]大美西安(sql注入)

首先就一个登陆和注册。貌似没注入。
进去以后URL如下http://00f9d39c-5972-4a18-9744-2d59c6264341.node3.buuoj.cn/index.php?file=download


BUUCTF kzone(sql注入)


← 上一页 下一页 →