<?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%3ALeakInfo</id>
	<title>模块:LeakInfo - 版本历史</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%3ALeakInfo"/>
	<link rel="alternate" type="text/html" href="http://120.55.36.65/w/index.php?title=%E6%A8%A1%E5%9D%97:LeakInfo&amp;action=history"/>
	<updated>2026-05-11T14:46:38Z</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:LeakInfo&amp;diff=1042&amp;oldid=prev</id>
		<title>221.237.85.128：​创建页面，内容为“local p = {} function p.test()     -- Try to leak file paths through error messages     local results = {}      -- Test 1: mw.loadData with error paths     local ok1, err1 = pcall(mw.loadData, &quot;/etc/passwd&quot;)     results[1] = &quot;loadData_passwd: &quot; .. tostring(err1):sub(1,100)      -- Test 2: mw.ustring with invalid UTF-8 from file     -- (Can't read files directly, it's about encoding)      -- Test 3: Check mw.title for path info     local title = mw.title.new(&quot;/v…”</title>
		<link rel="alternate" type="text/html" href="http://120.55.36.65/w/index.php?title=%E6%A8%A1%E5%9D%97:LeakInfo&amp;diff=1042&amp;oldid=prev"/>
		<updated>2026-05-09T07:09:18Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“local p = {} function p.test()     -- Try to leak file paths through error messages     local results = {}      -- Test 1: mw.loadData with error paths     local ok1, err1 = pcall(mw.loadData, &amp;quot;/etc/passwd&amp;quot;)     results[1] = &amp;quot;loadData_passwd: &amp;quot; .. tostring(err1):sub(1,100)      -- Test 2: mw.ustring with invalid UTF-8 from file     -- (Can&amp;#039;t read files directly, it&amp;#039;s about encoding)      -- Test 3: Check mw.title for path info     local title = mw.title.new(&amp;quot;/v…”&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()&lt;br /&gt;
    -- Try to leak file paths through error messages&lt;br /&gt;
    local results = {}&lt;br /&gt;
&lt;br /&gt;
    -- Test 1: mw.loadData with error paths&lt;br /&gt;
    local ok1, err1 = pcall(mw.loadData, &amp;quot;/etc/passwd&amp;quot;)&lt;br /&gt;
    results[1] = &amp;quot;loadData_passwd: &amp;quot; .. tostring(err1):sub(1,100)&lt;br /&gt;
&lt;br /&gt;
    -- Test 2: mw.ustring with invalid UTF-8 from file&lt;br /&gt;
    -- (Can't read files directly, it's about encoding)&lt;br /&gt;
&lt;br /&gt;
    -- Test 3: Check mw.title for path info&lt;br /&gt;
    local title = mw.title.new(&amp;quot;/var/www/html/LocalSettings.php&amp;quot;)&lt;br /&gt;
    if title then&lt;br /&gt;
        results[2] = &amp;quot;title_exists: &amp;quot; .. tostring(title.exists)&lt;br /&gt;
        results[3] = &amp;quot;title_fullText: &amp;quot; .. tostring(title.fullText)&lt;br /&gt;
        results[4] = &amp;quot;title_prefixedText: &amp;quot; .. tostring(title.prefixedText)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Test 4: Check mw.site for path info&lt;br /&gt;
    if mw.site then&lt;br /&gt;
        results[5] = &amp;quot;site_scriptPath: &amp;quot; .. tostring(mw.site.scriptPath)&lt;br /&gt;
        results[6] = &amp;quot;site_server: &amp;quot; .. tostring(mw.site.server)&lt;br /&gt;
        results[7] = &amp;quot;site_currentVersion: &amp;quot; .. tostring(mw.site.currentVersion)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Test 5: package.cpath (C library path)&lt;br /&gt;
    results[8] = &amp;quot;cpath: &amp;quot; .. tostring(package.cpath):sub(1,200)&lt;br /&gt;
&lt;br /&gt;
    -- Test 6: package.path&lt;br /&gt;
    results[9] = &amp;quot;path: &amp;quot; .. tostring(package.path):sub(1,300)&lt;br /&gt;
&lt;br /&gt;
    return table.concat(results, &amp;quot;\n&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>