LittleDemon WebShell


Linux webhost1.zalaszam.hu 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Path : /usr/share/doc/lua50/examples/
File Upload :
Command :
Current File : //usr/share/doc/lua50/examples/xd.lua

-- hex dump
-- usage: lua xd.lua < file

local offset=0

while 1 do
 local s=io.read(16)
 if s==nil then return end
 io.write(string.format("%08X  ",offset))
 string.gsub(s,"(.)",function (c) io.write(string.format("%02X ",string.byte(c))) end)
 io.write(string.rep(" ",3*(16-string.len(s))))
 io.write(" ",string.gsub(s,"%c","."),"\n") 
 offset=offset+16
end

LittleDemon - FACEBOOK
[ KELUAR ]