Guest User

Untitled

a guest
Sep 25th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. string nitroUser = @"myUserName";
  2. string nitroPass = @"MyPass";
  3. string apiURL = $"https://nitroflare.com/api/v2/getDownloadLink?user={nitroUser}&premiumKey={nitroPass}&file={nitroflareCode}";
  4. using (WebClient getNitroflareLink = new WebClient())
  5. {
  6. getNitroflareLink.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
  7. string json = getNitroflareLink.DownloadString(apiURL);
  8. dynamic json_data = JsonConvert.DeserializeObject(json);
  9. if (json_data.result.recaptchaPublic != null)
  10. {
  11. {
  12. string sitekey = json_data.result.recaptchaPublic; // return 6Lenx_USAAAAAF5L1pmTWvWcH73dipAEzNnmNLgy
  13.  
  14. // Load webBrowser
  15. string html = $"<html><head><title>reCAPTCHA demo: Simple page</title><script src='https://www.google.com/recaptcha/api.js' async defer></script></head><body><form action='?' method='POST'><div class='g-recaptcha' data-sitekey='{sitekey}'></div><br/><input type='submit' value='Submit'></form></body></html>";
  16. webBrowser1.DocumentText = html;
  17. }
  18. }
  19.  
  20. In any request you might get the following response, and when you do - you should display to the user a Google's ReCAPTCHA v2 using the public key you have received in the response:
  21. {
  22. "type": "success",
  23. "result": {
  24. "recaptchaPublic": "6Lenx_USAAAAAF5L1pmTWvWcH73dipAEzNnmNLgy"
  25. }
  26. }
  27. After the user completed the ch
Add Comment
Please, Sign In to add comment