trainworld_computercraft/computer/22/steal.lua
2025-07-03 01:23:46 +02:00

16 lines
314 B
Lua

print("enter id")
local id = read()
print("enter path")
local path = read()
full_url = "http://crispypin.cc:25566/computer/"..id.."/"..path
print(full_url)
h,err = http.get(full_url)
if err then
print(err)
return
end
file = fs.open(path, "w")
file.write(h.readAll())
file.close()
print("saved to "..path)