【发布时间】: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 请求。在这个文件中有这一行<%include send_status.csp>。 神奇地这个命令行/usr/bin/echocmd, $(action)被执行了! (注意:$(action) 被扩展为名为 action 的 POST 参数 - 这非常糟糕!)。
【问题讨论】: