ctfshow 命令执行 write up 29-36

命令执行知识点:

常用的命令执行函数:

system()         //函数执行有回显,返回执行结果
passthru()       //函数执行有回显,返回执行结果
exec()           //函数执行无回显,默认返回最后一行结果,通过echo可将执行结果输出到页面
shell_exec()     //函数执行无回显,通过echo可将执行结果输出到页面
``               //shell_exec() 函数实际上仅是反撇号 (`) 操作符的变体,当禁用shell_exec时,` 也不可执行
popen()
proc_open()
pcntl_exec()

linux中有查看功能的命令有:

cat、tac、more、less、head、tail、nl、
sed、sort、uniq、rev、vi、vim、od(以二进制的方式读取档案内容)

空格 绕过:

%09、$IFS$9、 ${IFS}、$IFS%09、< 、<>、%20、0a、%0b、%0c、%0d、%a0、/**/  //有特殊意义的符号需用\进行转义

左括号(绕过:

%u0028、%uff08、%c0、%28、%c0、%a8、%e0、%80、%a8

右括号)绕过:

%u0029、%uff09、%c0、%29、%a9、%e0、%80、%a9

分号;绕过:

?>
web29

题目代码:

error_reporting(0);
if(isset($_GET['c'])){
   
    $c = $_GET['c'];
    if(!preg_match("/flag/i"
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Sure, I can definitely help you with that! It sounds like you had a bit of a late start to your day, so let's start by discussing the pros and cons of getting up late. First of all, the obvious con of getting up late is that it can sometimes throw off your entire day. You might feel rushed and behind schedule, which can lead to stress and anxiety throughout the rest of your day. Additionally, if you have a set schedule or routine that you need to follow, getting up late can make it difficult to stick to that routine. On the other hand, there are some potential benefits to getting up late as well. For one thing, sleeping in can be a great way to catch up on some much-needed rest and relaxation. If you've been feeling overly stressed or tired lately, taking some extra time to sleep in can be a good way to recharge your batteries and feel refreshed. Additionally, getting up late can sometimes give you more time to focus on your own personal interests and hobbies. If you're someone who enjoys reading, writing, or spending time on creative projects, getting up later in the day might mean that you have more time to indulge in those activities. So, with all of that in mind, how might you approach writing a 600-word review of your experience getting up late today? First, you could start by reflecting on why you ended up getting up late today. Was it because you stayed up too late the night before? Were you feeling particularly exhausted or run down? Or was it simply because you didn't set a clear alarm or schedule for yourself? Once you've identified the reasons behind your late start, you might then reflect on how it affected the rest of your day. Did you feel stressed or behind schedule for the rest of the day? Did you find that you had trouble sticking to your usual routine or getting important tasks done? Finally, you could wrap up your review by considering the potential pros and cons of getting up late in general. Is it something that you would like to do more of in the future, or do you prefer to stick to a more rigid schedule? By exploring these questions and reflecting on your personal experience, you should be able to come up with a thoughtful and engaging review of your late start today.

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值