Advertisement
Rahph

UploadR

Jun 10th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. print("File location?")
  2. content = fs.open(read(),"r").readAll()
  3. print("Username?")
  4. local username = read()
  5. print("Password?")
  6. local password = read("*")
  7. a = http.post("https://pastebin.com/api/api_login.php","api_dev_key=b25628a557387174679205df2dea582c&api_user_name="..username.."&api_user_password="..password)
  8. if a.readAll() == "Bad API request, invalid login" then
  9.     print("Bad login/password")
  10. else
  11. print(http.post("https://pastebin.com/api/api_post.php","api_dev_key=b25628a557387174679205df2dea582c&api_paste_format=lua&api_option=paste&api_paste_code="..content.."&api_user_key="..a.readAll()).readAll())
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement