Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tLines = {}
- local file = io.open("dictonary.txt", "r")
- local line
- while true do
- line = file:read()
- if not line then break end
- tLines[#tLines+1] = line
- end
- file:close()
- fileM = fs.open("migrated.txt","w")
- fileNM = fs.open("non-migrated.txt","w")
- for i=1,#tLines do
- user = tLines[i]
- http.request("http://login.minecraft.net/?user=" ..user.. "&password=BLANK&version=12")
- local event, url, response = os.pullEvent()
- if event == "http_success" then
- _sResponse = { response.readAll() }
- if string.find(tostring(_sResponse[1]), "migrated") then
- print(user.. " - MIGRATED")
- fileM.write( user.. "\n" )
- else
- print(user.. " - NON-MIGRATED")
- fileNM.write( user.. "\n" )
- end
- else
- prnt("Unable to connect to minecraft.net")
- fileM.close()
- fileNM.close()
- error()
- end
- end
- fileM.close()
- fileNM.close()
Advertisement
Add Comment
Please, Sign In to add comment