本文以apache为web服务器为例

  1. 安装apache服务
    yum -y install httpd
  2. 启动apache
    systemctl restart httpd
  3. 创建shell脚本
    cd /var/www/cgi-bin/
    vim shell
    #!/bin/sh  
    alias urldecode='sed "s@+@ @g;s@%@\\\\x@g" | xargs -0 printf "%b"'  
    echo -e "Content-type: text/plain\n"  
    decoded_str=`echo $QUERY_STRING | urldecode`  
    echo -e "`$decoded_str` \n"
    shell

相关文章:

  • 2021-08-06
  • 2021-12-27
  • 2022-01-20
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-24
  • 2021-06-25
  • 2022-01-02
  • 2021-12-21
  • 2022-01-02
  • 2022-01-11
  • 2022-01-18
相关资源
相似解决方案