Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component=require("component");
- local internet=require("internet");
- local shell=require("shell");
- local file=io.open("TEST","w")
- url="https://pastebin.com/1aBR9XCA";
- sht="#############"
- function txtFind(text, string)
- if text:find(string)~=nil then return true
- else return false
- end
- end
- local result,response=pcall(internet.request,url);
- print(sht);
- print(result)
- print(response)
- print(sht)
- local text;
- for chunk in response do
- chunk=string.gsub(chunk,"\r\n","\n");
- if txtFind(chunk,"</textarea>") then
- text=chunk;
- break;
- end
- end
- file:close();
- arg1=text:gsub(".-(argument start>)","");
- arg1=arg1:gsub("(<argument close>).+","")
- print(tostring(arg1))
- pcall(load(tostring(arg1)))
Add Comment
Please, Sign In to add comment