Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("File location?")
- content = fs.open(read(),"r").readAll()
- print("Username?")
- local username = read()
- print("Password?")
- local password = read("*")
- a = http.post("https://pastebin.com/api/api_login.php","api_dev_key=b25628a557387174679205df2dea582c&api_user_name="..username.."&api_user_password="..password)
- if a.readAll() == "Bad API request, invalid login" then
- print("Bad login/password")
- else
- 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())
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement