【问题标题】:What is this scripting language? <%if $(httpd.requestMethod='POST') >这是什么脚本语言? <%if $(httpd.requestMethod='POST') >
【发布时间】:2014-01-21 10:59:23
【问题描述】:

我正在浏览一个小型 linux 发行版(基于 Busybox - 用于运行 GSM 电话交换机),我发现xml 文件中包含许多用脚本语言编写的脚本。这些文件的扩展名为 csp

<%output disable>
<%if $(httpd.requestMethod='POST') >
  <%call httpd.authenticate: "Please Login">
  <%if $(httpd.authUser='admin') >
    <%if $(httpd.authPassword!=ADMIN_PASSWORD)>
         <%call httpd.forceAuthenticate: "Please Login">
    <%endif>
  <%else>
     <%call httpd.forceAuthenticate: "Please Login">
  <%endif>
  <%if $(param1='1')>
     <%set PROGRAM_ARG_1:=$(param2)>
     <%call syscfg.save>
     <%call system.exec: /usr/bin/echocmd, $(action)>
    <%endif>
  <%endif>
<%endif>

这似乎是 ASP、python 和 shell 脚本的混合体!

这种脚本语言是什么?我在哪里可以找到它的手册?

例如:

我有send_status.html,它接收 ajax 请求。在这个文件中有这一行&lt;%include send_status.csp&gt;神奇地这个命令行/usr/bin/echocmd, $(action)被执行了! (注意:$(action) 被扩展为名为 action 的 POST 参数 - 这非常糟糕!)。

【问题讨论】:

    标签: http scripting busybox


    【解决方案1】:

    可能是 Caché 和 Caché 服务器页面 (CSP)

    【讨论】:

    • 我检查了CSP Mark-Up language。但它似乎不一样的语法。 CSP 语法是 &lt;csp:include&gt; 而不是 &lt;%include&gt;
    猜你喜欢
    • 1970-01-01
    • 2011-05-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-16
    • 1970-01-01
    • 2010-12-03
    相关资源
    最近更新 更多