zoukankan      html  css  js  c++  java
  • php decode

    见到的一个类似编码的shell
    <?php function CLsI($ZzvSWE) { $ZzvSWE = gzinflate(base64_decode($ZzvSWE)); for ($i = 0; $i < strlen($ZzvSWE); $i++) { $ZzvSWE[$i] = chr(ord($ZzvSWE[$i]) - 1); } return $ZzvSWE; }eval(CLsI("+7DnQGFmYVZ+eoGmlg0fd3puUoZ1fkppek1GdVZhQnJSSZq5aUImGNQBAA=="));?>

    在计算机科学中,Shell俗称壳(用来区别于核),是指“提供使用者使用界面”的软件(命令解析器)。它类似于DOS下的command和后来的cmd.exe。它接收用户命令,然后调用相应的应用程序。
    base64_decode MD5解密
    所以此题应该是 MD5加密了
    ord() 函数返回字符串的首个字符的 ASCII 值。
    Chr,返回以数值表达式值为编码的字符
    根据观察,要想输出flag
    只能将?eval改为echo
    flag:nctf{gzip_base64_hhhhhh}

  • 相关阅读:
    Handling Touches
    Learn the Basics
    Getting started
    (dev mode) install CONSUL on ubuntu
    Resilience4j usage
    spring cloud gateway
    courator
    courator
    js 获取服务器控件
    js
  • 原文地址:https://www.cnblogs.com/maodun/p/6915463.html
Copyright © 2011-2022 走看看