我已经尝试过此代码,但是没有用。
website = ("https://hertztrainer.000webhostapp.com/Farmer.ct")
download = loadstring(getInternet().GetURL(website))
download()
我想出了如何使用lua下载文件。我使用了这段代码:
function download(url, file)
local content = getInternet().getURL(url)
if not content then
error("Could not connect to website")
end
io.open(file, 'wb')
io.write(content)
io.close()
end
download("https://hertzxd.github.io/exploit/HertZTrainer.CETRAINER", "HertZTrainer.CETRAINER")