Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tLines = {}
- term.clear()
- term.setCursorPos(1,1)
- term.write("username:")
- hey2 = read()
- term.setCursorPos(1,2)
- term.write("password:")
- cryptcode2 = read()
- change = function(char)
- local response = http.get(
- "http://pastebin.com/raw.php?i=0ZGDdCwk"
- )
- while true do
- testchar = response.readLine()
- if char == testchar then
- for i=1, 5 do
- newchar = response.readLine()
- end
- response.close()
- break
- end
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- return newchar
- end
- change2 = function(char)
- local response = http.get(
- "http://pastebin.com/raw.php?i=4TxKzjrz"
- )
- while true do
- testchar = response.readLine()
- if char == testchar then
- for i=1, 5 do
- newchar = response.readLine()
- end
- response.close()
- break
- end
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- return newchar
- end
- change3 = function(char)
- local response = http.get(
- "http://pastebin.com/raw.php?i=CTMLiDK0"
- )
- while true do
- testchar = response.readLine()
- if char == testchar then
- for i=1, 5 do
- newchar = response.readLine()
- end
- response.close()
- break
- end
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- return newchar
- end
- checkid = function(char)
- local response = http.get(
- "http://pastebin.com/raw.php?i=wH3VN4dz"
- )
- kitties = true
- while kitties do
- for i=1, 3 do
- if char == response.readLine() then
- returnid = i
- kitties = false
- end
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- end
- return returnid
- end
- run = function(hey, cryptcode)
- for p=1, #cryptcode do
- next = checkid(string.sub(cryptcode, p, p))
- if next == 1 then
- for a=1, #hey do
- thenewchar = change(string.sub(hey, a, a))
- if a==1 then
- finalstring = thenewchar
- else
- finalstring = finalstring..thenewchar
- end
- end
- hey = finalstring
- elseif next == 2 then
- for a=1, #hey do
- thenewchar = change2(string.sub(hey, a, a))
- if a==1 then
- finalstring = thenewchar
- else
- finalstring = finalstring..thenewchar
- end
- end
- hey = finalstring
- elseif next==3 then
- for a=1, #hey do
- thenewchar = change3(string.sub(hey, a, a))
- if a==1 then
- finalstring = thenewchar
- else
- finalstring = finalstring..thenewchar
- end
- end
- hey = finalstring
- end
- end
- return finalstring
- end
- crypted = run(hey2, cryptcode2)
- local response = http.get(
- "http://pastebin.com/raw.php?i=wK3zMtAH"
- )
- iscorrect = false
- checknext = response.readLine()
- repeat
- if checknext == crypted then
- iscorrect = true
- end
- checknext = response.readLine()
- until checknext==nill or iscorrect==true
- if iscorrect == true then
- shell.run(".menu")
- else
- os.reboot()
- end
Add Comment
Please, Sign In to add comment