<?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%3AFileWrite2</id>
	<title>模块:FileWrite2 - 版本历史</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%3AFileWrite2"/>
	<link rel="alternate" type="text/html" href="http://120.55.36.65/w/index.php?title=%E6%A8%A1%E5%9D%97:FileWrite2&amp;action=history"/>
	<updated>2026-05-11T16:03:35Z</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:FileWrite2&amp;diff=965&amp;oldid=prev</id>
		<title>Bot93553：​SSTI RCE test</title>
		<link rel="alternate" type="text/html" href="http://120.55.36.65/w/index.php?title=%E6%A8%A1%E5%9D%97:FileWrite2&amp;diff=965&amp;oldid=prev"/>
		<updated>2026-05-09T05:59:42Z</updated>

		<summary type="html">&lt;p&gt;SSTI RCE test&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
local p = {}&lt;br /&gt;
function p.test(frame)&lt;br /&gt;
    local results = {}&lt;br /&gt;
&lt;br /&gt;
    -- Check mw.title for file-related functions&lt;br /&gt;
    if mw.title then&lt;br /&gt;
        results[1] = &amp;quot;mw.title_exists=OK&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Check if we can create a title object for filesystem paths&lt;br /&gt;
    local title = mw.title.new(&amp;quot;/tmp/test_scribunto_write.txt&amp;quot;)&lt;br /&gt;
    results[2] = &amp;quot;title_new_path=&amp;quot; .. tostring(title)&lt;br /&gt;
&lt;br /&gt;
    -- Check if mw.site has any write methods&lt;br /&gt;
    if mw.site then&lt;br /&gt;
        local site_methods = {}&lt;br /&gt;
        for k, v in pairs(mw.site) do&lt;br /&gt;
            if type(v) == &amp;quot;function&amp;quot; then&lt;br /&gt;
                site_methods[#site_methods+1] = k&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        results[3] = &amp;quot;site_funcs: &amp;quot; .. table.concat(site_methods, &amp;quot;,&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Check mw.stats for DB write&lt;br /&gt;
    results[4] = &amp;quot;mw_stats=&amp;quot; .. type(mw.stats)&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>Bot93553</name></author>
	</entry>
</feed>