Posted: Mon May 06, 2019 11:25 am Post subject: Is it possible to retrieve opened-process argc argv
I want to retrieve opened-process’s information include argc, argv (command lines), image-type (32 or 64bit), list of process’s loaded modules.
Is that posible with CE’s lua?
Answer my own question, It's not the best but it works
Code:
local txtCmd= 'WMIC PROCESS WHERE Name="ProcessABC.exe" get Commandline'
local handle = io.popen(txtCmd)
local result = handle:read("*a")
handle:close()
lines = {}
for line in result:gmatch("[^\r\n]+") do
table.insert(lines, line)
end
print(line[2])
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum