Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Net;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- // Token: 0x02000079 RID: 121
- public sealed class Login : Form
- {
- // Token: 0x0600031F RID: 799 RVA: 0x00011A0C File Offset: 0x0000FC0C
- public Login()
- {
- this.InitializeComponent();
- new Thread(new ThreadStart(this.method_2)).Start();
- if (File.Exists("pData/login.ini"))
- {
- StreamReader streamReader = new StreamReader("pData/login.ini");
- try
- {
- this.UserBox.Text = this.method_3(streamReader.ReadLine());
- this.PassBox.Text = this.method_3(streamReader.ReadLine());
- }
- catch
- {
- if (File.Exists("pData/login.ini"))
- {
- MessageBox.Show("Error while decrypting login information. Remove the pData folder and restart the loader!");
- Environment.Exit(1);
- }
- else
- {
- MessageBox.Show("Error: 80");
- Environment.Exit(-1);
- }
- }
- streamReader.Close();
- this.RememberCheck.method_3(true);
- return;
- }
- this.UserBox.Text = string.Empty;
- this.PassBox.Text = string.Empty;
- }
- // Token: 0x06000320 RID: 800 RVA: 0x00011AFC File Offset: 0x0000FCFC
- private async Task method_0()
- {
- await Task.Delay(5000);
- }
- // Token: 0x06000321 RID: 801 RVA: 0x00011B3C File Offset: 0x0000FD3C
- private async void method_1()
- {
- await this.method_0();
- }
- // Token: 0x06000322 RID: 802 RVA: 0x00011B78 File Offset: 0x0000FD78
- private void method_2()
- {
- WebClient webClient = new WebClient();
- if (webClient.DownloadString("https://pcheats.pro/loaderinfo/new/update/version.php") != "5.0")
- {
- MessageBox.Show("Your loader is outdated. We will download the newest one. If it's not working for you, download it manually from the website.");
- string startupPath = Application.StartupPath;
- webClient.DownloadFile("https://pcheats.pro/loaderinfo/new/update/loader.exe", startupPath + "/Updated.exe");
- Process.Start(startupPath + "/Updated.exe");
- Environment.Exit(1);
- }
- }
- // Token: 0x06000323 RID: 803 RVA: 0x00011BE0 File Offset: 0x0000FDE0
- public string method_3(string string_4)
- {
- string password = "test";
- string s = "cffffffffffffffffff";
- string s2 = "@1B2c3D4e5F6g7H8";
- byte[] bytes = Encoding.ASCII.GetBytes(s2);
- byte[] bytes2 = Encoding.ASCII.GetBytes(s);
- byte[] array = Convert.FromBase64String(string_4);
- byte[] bytes3 = new Rfc2898DeriveBytes(password, bytes2, 2).GetBytes(32);
- ICryptoTransform transform = new RijndaelManaged
- {
- Mode = CipherMode.CBC
- }.CreateDecryptor(bytes3, bytes);
- MemoryStream memoryStream = new MemoryStream(array);
- CryptoStream cryptoStream = new CryptoStream(memoryStream, transform, CryptoStreamMode.Read);
- byte[] array2 = new byte[array.Length - 1];
- int count = cryptoStream.Read(array2, 0, array2.Length);
- memoryStream.Close();
- cryptoStream.Close();
- return Encoding.UTF8.GetString(array2, 0, count);
- }
- // Token: 0x06000324 RID: 804 RVA: 0x00011C8C File Offset: 0x0000FE8C
- public string method_4(string string_4)
- {
- string password = "test";
- string s = "cffffffffffffffffff";
- string s2 = "@1B2c3D4e5F6g7H8";
- byte[] bytes = Encoding.ASCII.GetBytes(s2);
- byte[] bytes2 = Encoding.ASCII.GetBytes(s);
- byte[] bytes3 = Encoding.UTF8.GetBytes(string_4);
- byte[] bytes4 = new Rfc2898DeriveBytes(password, bytes2, 2).GetBytes(32);
- ICryptoTransform transform = new RijndaelManaged
- {
- Mode = CipherMode.CBC
- }.CreateEncryptor(bytes4, bytes);
- MemoryStream memoryStream = new MemoryStream();
- CryptoStream cryptoStream = new CryptoStream(memoryStream, transform, CryptoStreamMode.Write);
- cryptoStream.Write(bytes3, 0, bytes3.Length);
- cryptoStream.FlushFinalBlock();
- byte[] inArray = memoryStream.ToArray();
- memoryStream.Close();
- cryptoStream.Close();
- return Convert.ToBase64String(inArray);
- }
- // Token: 0x06000325 RID: 805 RVA: 0x00004A09 File Offset: 0x00002C09
- private void UserBox_TextChanged(object sender, EventArgs e)
- {
- Login.string_0 = this.method_4(this.UserBox.Text);
- this.string_2 = this.UserBox.Text;
- }
- // Token: 0x06000326 RID: 806 RVA: 0x00004A32 File Offset: 0x00002C32
- private void PassBox_TextChanged(object sender, EventArgs e)
- {
- Login.string_1 = this.method_4(this.PassBox.Text);
- this.string_3 = this.PassBox.Text;
- }
- // Token: 0x06000327 RID: 807 RVA: 0x00011D34 File Offset: 0x0000FF34
- private void LoginButton_Click(object sender, EventArgs e)
- {
- if (this.int_0 > 2)
- {
- MessageBox.Show("You have been temporary locked out of the loader for too many attempts. Please restart your loader");
- this.UserBox.Enabled = false;
- this.PassBox.Enabled = false;
- this.label1.ForeColor = Color.Gray;
- this.label2.ForeColor = Color.Gray;
- this.LoginButton.Enabled = false;
- this.RememberCheck.Enabled = false;
- return;
- }
- if (!Directory.Exists("pData"))
- {
- Directory.CreateDirectory("pData");
- }
- if (this.RememberCheck.method_2())
- {
- StreamWriter streamWriter = new StreamWriter("pData/login.ini");
- streamWriter.WriteLine(this.method_4(this.string_2));
- streamWriter.WriteLine(this.method_4(this.string_3));
- streamWriter.Close();
- }
- else
- {
- File.Delete("login.ini");
- }
- AuthFix authFix = new AuthFix();
- authFix.ShowDialog();
- if (authFix.DialogResult == DialogResult.OK)
- {
- this.UserBox.Enabled = false;
- this.PassBox.Enabled = false;
- this.label1.ForeColor = Color.Gray;
- this.label2.ForeColor = Color.Gray;
- this.LoginButton.Enabled = false;
- this.RememberCheck.Enabled = false;
- this.StatusLabel.Visible = true;
- this.StatusLabel.ForeColor = Color.Green;
- this.StatusLabel.Text = "Success!";
- Thread.Sleep(1000);
- new global::MainMenu().Show();
- base.Hide();
- return;
- }
- this.label3.Visible = false;
- this.StatusLabel.Visible = true;
- this.StatusLabel.ForeColor = Color.Red;
- this.StatusLabel.Text = "Invalid Username Or Password!";
- this.int_0++;
- }
- // Token: 0x06000328 RID: 808 RVA: 0x00004A5B File Offset: 0x00002C5B
- private void nsControlButton1_Click(object sender, EventArgs e)
- {
- Environment.Exit(1);
- }
- // Token: 0x06000329 RID: 809 RVA: 0x00004A63 File Offset: 0x00002C63
- protected override void Dispose(bool disposing)
- {
- if (disposing && this.icontainer_0 != null)
- {
- this.icontainer_0.Dispose();
- }
- base.Dispose(disposing);
- }
- // Token: 0x0600032A RID: 810 RVA: 0x00011F00 File Offset: 0x00010100
- private void InitializeComponent()
- {
- this.nsTheme1 = new Control3();
- this.StatusLabel = new Label();
- this.label3 = new Label();
- this.RememberCheck = new Control13();
- this.LoginButton = new Control7();
- this.label2 = new Label();
- this.PassBox = new Control20();
- this.label1 = new Label();
- this.UserBox = new Control20();
- this.nsControlButton1 = new Control0();
- this.nsTheme1.SuspendLayout();
- base.SuspendLayout();
- this.nsTheme1.method_109(0);
- this.nsTheme1.method_16(FormBorderStyle.None);
- this.nsTheme1.method_24(new Struct0[0]);
- this.nsTheme1.Controls.Add(this.nsControlButton1);
- this.nsTheme1.Controls.Add(this.StatusLabel);
- this.nsTheme1.Controls.Add(this.label3);
- this.nsTheme1.Controls.Add(this.RememberCheck);
- this.nsTheme1.Controls.Add(this.LoginButton);
- this.nsTheme1.Controls.Add(this.label2);
- this.nsTheme1.Controls.Add(this.PassBox);
- this.nsTheme1.Controls.Add(this.label1);
- this.nsTheme1.Controls.Add(this.UserBox);
- this.nsTheme1.method_26(string.Empty);
- this.nsTheme1.Dock = DockStyle.Fill;
- this.nsTheme1.Font = new Font("Verdana", 8f);
- this.nsTheme1.method_22(null);
- this.nsTheme1.Location = new Point(0, 0);
- this.nsTheme1.method_10(true);
- this.nsTheme1.Name = "nsTheme1";
- this.nsTheme1.method_20(false);
- this.nsTheme1.method_12(false);
- this.nsTheme1.Size = new Size(288, 260);
- this.nsTheme1.method_8(true);
- this.nsTheme1.method_18(FormStartPosition.WindowsDefaultLocation);
- this.nsTheme1.TabIndex = 0;
- this.nsTheme1.Text = "pLoader - Sign In";
- this.nsTheme1.method_14(Color.Empty);
- this.nsTheme1.method_28(false);
- this.StatusLabel.AutoSize = true;
- this.StatusLabel.BackColor = Color.FromArgb(50, 50, 50);
- this.StatusLabel.Font = new Font("Verdana", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.StatusLabel.ForeColor = Color.Green;
- this.StatusLabel.Location = new Point(6, 234);
- this.StatusLabel.Name = "StatusLabel";
- this.StatusLabel.Size = new Size(95, 18);
- this.StatusLabel.TabIndex = 7;
- this.StatusLabel.Text = "%Status%";
- this.StatusLabel.Visible = false;
- this.label3.AutoSize = true;
- this.label3.BackColor = Color.FromArgb(50, 50, 50);
- this.label3.ForeColor = SystemColors.Control;
- this.label3.Location = new Point(208, 243);
- this.label3.Name = "label3";
- this.label3.Size = new Size(77, 13);
- this.label3.TabIndex = 6;
- this.label3.Text = "pCheats.pro";
- this.RememberCheck.BackColor = Color.FromArgb(50, 50, 50);
- this.RememberCheck.method_3(false);
- this.RememberCheck.Location = new Point(78, 205);
- this.RememberCheck.Name = "RememberCheck";
- this.RememberCheck.Size = new Size(123, 23);
- this.RememberCheck.TabIndex = 5;
- this.RememberCheck.Text = "Remember Me";
- this.LoginButton.BackColor = Color.FromArgb(50, 50, 50);
- this.LoginButton.Font = new Font("Verdana", 11.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.LoginButton.Location = new Point(84, 167);
- this.LoginButton.Name = "LoginButton";
- this.LoginButton.Size = new Size(104, 32);
- this.LoginButton.TabIndex = 4;
- this.LoginButton.Text = " Login";
- this.LoginButton.Click += this.LoginButton_Click;
- this.label2.AutoSize = true;
- this.label2.BackColor = Color.FromArgb(50, 50, 50);
- this.label2.ForeColor = SystemColors.Control;
- this.label2.Location = new Point(36, 105);
- this.label2.Name = "label2";
- this.label2.Size = new Size(106, 13);
- this.label2.TabIndex = 3;
- this.label2.Text = "Forum Password:";
- this.PassBox.BackColor = Color.FromArgb(50, 50, 50);
- this.PassBox.Cursor = Cursors.IBeam;
- this.PassBox.Font = new Font("Verdana", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.PassBox.Location = new Point(60, 123);
- this.PassBox.method_3(32767);
- this.PassBox.method_9(false);
- this.PassBox.Name = "PassBox";
- this.PassBox.method_5(false);
- this.PassBox.Size = new Size(163, 28);
- this.PassBox.TabIndex = 2;
- this.PassBox.method_1(HorizontalAlignment.Left);
- this.PassBox.method_7(true);
- this.PassBox.TextChanged += this.PassBox_TextChanged;
- this.label1.AutoSize = true;
- this.label1.BackColor = Color.FromArgb(50, 50, 50);
- this.label1.ForeColor = SystemColors.Control;
- this.label1.Location = new Point(36, 56);
- this.label1.Name = "label1";
- this.label1.Size = new Size(110, 13);
- this.label1.TabIndex = 1;
- this.label1.Text = "Forum Username:";
- this.UserBox.BackColor = Color.FromArgb(50, 50, 50);
- this.UserBox.Cursor = Cursors.IBeam;
- this.UserBox.Font = new Font("Verdana", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.UserBox.Location = new Point(60, 74);
- this.UserBox.method_3(32767);
- this.UserBox.method_9(false);
- this.UserBox.Name = "UserBox";
- this.UserBox.method_5(false);
- this.UserBox.Size = new Size(163, 28);
- this.UserBox.TabIndex = 0;
- this.UserBox.method_1(HorizontalAlignment.Left);
- this.UserBox.method_7(false);
- this.UserBox.TextChanged += this.UserBox_TextChanged;
- this.nsControlButton1.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
- this.nsControlButton1.BackColor = Color.FromArgb(50, 50, 50);
- this.nsControlButton1.method_1((Control0.Enum0)3);
- this.nsControlButton1.Location = new Point(267, 0);
- this.nsControlButton1.Margin = new Padding(0);
- this.nsControlButton1.MaximumSize = new Size(18, 20);
- this.nsControlButton1.MinimumSize = new Size(18, 20);
- this.nsControlButton1.Name = "nsControlButton1";
- this.nsControlButton1.Size = new Size(18, 20);
- this.nsControlButton1.TabIndex = 8;
- this.nsControlButton1.Text = "nsControlButton1";
- this.nsControlButton1.Click += this.nsControlButton1_Click;
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- base.AutoScaleMode = AutoScaleMode.Font;
- base.ClientSize = new Size(288, 260);
- base.Controls.Add(this.nsTheme1);
- base.FormBorderStyle = FormBorderStyle.None;
- base.Name = "Login";
- this.Text = "Login";
- this.nsTheme1.ResumeLayout(false);
- this.nsTheme1.PerformLayout();
- base.ResumeLayout(false);
- }
- // Token: 0x040002BF RID: 703
- public static string string_0;
- // Token: 0x040002C0 RID: 704
- public static string string_1;
- // Token: 0x040002C1 RID: 705
- public string string_2;
- // Token: 0x040002C2 RID: 706
- public string string_3;
- // Token: 0x040002C3 RID: 707
- public int int_0;
- // Token: 0x040002C4 RID: 708
- private IContainer icontainer_0;
- // Token: 0x040002C5 RID: 709
- private Control3 nsTheme1;
- // Token: 0x040002C6 RID: 710
- private Control13 RememberCheck;
- // Token: 0x040002C7 RID: 711
- private Control7 LoginButton;
- // Token: 0x040002C8 RID: 712
- private Label label2;
- // Token: 0x040002C9 RID: 713
- private Control20 PassBox;
- // Token: 0x040002CA RID: 714
- private Label label1;
- // Token: 0x040002CB RID: 715
- private Control20 UserBox;
- // Token: 0x040002CC RID: 716
- private Label label3;
- // Token: 0x040002CD RID: 717
- private Label StatusLabel;
- // Token: 0x040002CE RID: 718
- private Control0 nsControlButton1;
- // Token: 0x0200007A RID: 122
- [StructLayout(LayoutKind.Auto)]
- private struct Struct4 : IAsyncStateMachine
- {
- // Token: 0x0600032B RID: 811 RVA: 0x000127E4 File Offset: 0x000109E4
- void IAsyncStateMachine.MoveNext()
- {
- int num = this.int_0;
- Login login = this.login_0;
- try
- {
- TaskAwaiter awaiter;
- if (num != 0)
- {
- awaiter = login.method_0().GetAwaiter();
- if (!awaiter.IsCompleted)
- {
- this.int_0 = 0;
- this.taskAwaiter_0 = awaiter;
- this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted<TaskAwaiter, Login.Struct4>(ref awaiter, ref this);
- return;
- }
- }
- else
- {
- awaiter = this.taskAwaiter_0;
- this.taskAwaiter_0 = default(TaskAwaiter);
- this.int_0 = -1;
- }
- awaiter.GetResult();
- }
- catch (Exception exception)
- {
- this.int_0 = -2;
- this.asyncVoidMethodBuilder_0.SetException(exception);
- return;
- }
- this.int_0 = -2;
- this.asyncVoidMethodBuilder_0.SetResult();
- }
- // Token: 0x0600032C RID: 812 RVA: 0x00004A82 File Offset: 0x00002C82
- [DebuggerHidden]
- void IAsyncStateMachine.SetStateMachine(IAsyncStateMachine stateMachine)
- {
- this.asyncVoidMethodBuilder_0.SetStateMachine(stateMachine);
- }
- // Token: 0x040002CF RID: 719
- public int int_0;
- // Token: 0x040002D0 RID: 720
- public AsyncVoidMethodBuilder asyncVoidMethodBuilder_0;
- // Token: 0x040002D1 RID: 721
- public Login login_0;
- // Token: 0x040002D2 RID: 722
- private TaskAwaiter taskAwaiter_0;
- }
- // Token: 0x0200007B RID: 123
- [StructLayout(LayoutKind.Auto)]
- private struct Struct5 : IAsyncStateMachine
- {
- // Token: 0x0600032D RID: 813 RVA: 0x00012898 File Offset: 0x00010A98
- void IAsyncStateMachine.MoveNext()
- {
- int num = this.int_0;
- try
- {
- TaskAwaiter awaiter;
- if (num != 0)
- {
- awaiter = Task.Delay(5000).GetAwaiter();
- if (!awaiter.IsCompleted)
- {
- this.int_0 = 0;
- this.taskAwaiter_0 = awaiter;
- this.asyncTaskMethodBuilder_0.AwaitUnsafeOnCompleted<TaskAwaiter, Login.Struct5>(ref awaiter, ref this);
- return;
- }
- }
- else
- {
- awaiter = this.taskAwaiter_0;
- this.taskAwaiter_0 = default(TaskAwaiter);
- this.int_0 = -1;
- }
- awaiter.GetResult();
- }
- catch (Exception exception)
- {
- this.int_0 = -2;
- this.asyncTaskMethodBuilder_0.SetException(exception);
- return;
- }
- this.int_0 = -2;
- this.asyncTaskMethodBuilder_0.SetResult();
- }
- // Token: 0x0600032E RID: 814 RVA: 0x00004A90 File Offset: 0x00002C90
- [DebuggerHidden]
- void IAsyncStateMachine.SetStateMachine(IAsyncStateMachine stateMachine)
- {
- this.asyncTaskMethodBuilder_0.SetStateMachine(stateMachine);
- }
- // Token: 0x040002D3 RID: 723
- public int int_0;
- // Token: 0x040002D4 RID: 724
- public AsyncTaskMethodBuilder asyncTaskMethodBuilder_0;
- // Token: 0x040002D5 RID: 725
- private TaskAwaiter taskAwaiter_0;
- }
- }
Add Comment
Please, Sign In to add comment