Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clr")
- term.setTextColor(colors.orange)
- textutils.slowWrite("Welcome SpaceCat")
- write("\n")
- term.setTextColor(colors.yellow)
- print("Enter Username [please]")
- term.setTextColor(colors.green)
- local username = read()
- print(nil)
- term.setTextColor(colors.yellow)
- print("Enter Password [please]")
- print("don't worry, im totally not saving it somewhere")
- term.setTextColor(colors.green)
- local password = read("*")
- print(nil)
- term.setTextColor(colors.yellow)
- if username and password then
- print("Great, now let's see if it worked")
- end
- print(nil)
- term.setTextColor(colors.green)
- write("result: ")
- local conkey = '996a06d80a378f151e589ac86c83e865'
- local userkey = http.post(
- "http://pastebin.com/api/api_login.php",
- "api_option=login&"..
- "api_dev_key="..conkey.."&"..
- "api_user_name="..textutils.urlEncode(username).."&"..
- "api_user_password="..textutils.urlEncode(password)
- )
- local postdata = userkey.readAll()
- term.setTextColor(colors.red)
- print(postdata)
- userkey.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement