:3
This commit is contained in:
parent
491112768c
commit
68ec37f994
66 changed files with 6591 additions and 10096 deletions
16
computer/22/steal.lua
Normal file
16
computer/22/steal.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
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)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue