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

13 lines
246 B
Lua

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