xXm0dzXx

Untitled

Oct 5th, 2012
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local tLines = {}
  2. local file = io.open("dictonary.txt", "r")
  3. local line
  4. while true do
  5. line = file:read()
  6. if not line then break end
  7. tLines[#tLines+1] = line
  8. end
  9. file:close()
  10.  
  11. fileM = fs.open("migrated.txt","w")
  12. fileNM = fs.open("non-migrated.txt","w")
  13. for i=1,#tLines do
  14. user = tLines[i]
  15. http.request("http://login.minecraft.net/?user=" ..user.. "&password=BLANK&version=12")
  16. local event, url, response = os.pullEvent()
  17. if event == "http_success" then
  18. _sResponse = { response.readAll() }
  19. if string.find(tostring(_sResponse[1]), "migrated") then
  20. print(user.. " - MIGRATED")
  21. fileM.write( user.. "\n" )
  22. else
  23. print(user.. " - NON-MIGRATED")
  24. fileNM.write( user.. "\n" )
  25. end
  26. else
  27. prnt("Unable to connect to minecraft.net")
  28. fileM.close()
  29. fileNM.close()
  30. error()
  31. end
  32. end
  33. fileM.close()
  34. fileNM.close()
Advertisement
Add Comment
Please, Sign In to add comment