Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel;
- using System.Configuration;
- using System.Diagnostics;
- using System.Drawing;
- using System.Management;
- using System.Reflection;
- using System.Runtime.InteropServices;
- using System.Security;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using System.Windows.Forms;
- using Axenta;
- using Newtonsoft.Json;
- using xNet;
- namespace E.X.O.D.U.S
- {
- // Token: 0x02000002 RID: 2
- public partial class LoginGUI : Form
- {
- // Token: 0x06000002 RID: 2
- [DllImport("user32.dll")]
- public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
- // Token: 0x06000003 RID: 3
- [DllImport("user32.dll")]
- public static extern bool ReleaseCapture();
- // Token: 0x17000001 RID: 1
- // (get) Token: 0x06000004 RID: 4 RVA: 0x00002057 File Offset: 0x00000257
- protected override CreateParams CreateParams
- {
- get
- {
- CreateParams createParams = base.CreateParams;
- createParams.Style |= 131072;
- createParams.ClassStyle |= 8;
- return createParams;
- }
- }
- // Token: 0x06000005 RID: 5 RVA: 0x00002E08 File Offset: 0x00001008
- private static void kek()
- {
- using (HttpRequest httpRequest = new HttpRequest())
- {
- if (httpRequest.Get("https://pastebin.com/rZeQAV68", null).ToString() != "0")
- {
- Environment.Exit(0);
- }
- }
- }
- // Token: 0x06000006 RID: 6 RVA: 0x0000207F File Offset: 0x0000027F
- public LoginGUI(string[] args)
- {
- this.args = args;
- this.InitializeComponent();
- LoginGUI.qzdq = this;
- this.DoubleBuffered = true;
- }
- // Token: 0x06000007 RID: 7 RVA: 0x000020A1 File Offset: 0x000002A1
- private void button1_Click(object sender, EventArgs e)
- {
- base.WindowState = FormWindowState.Minimized;
- }
- // Token: 0x06000008 RID: 8 RVA: 0x000020AA File Offset: 0x000002AA
- private void closeButton_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- // Token: 0x06000009 RID: 9 RVA: 0x000020B1 File Offset: 0x000002B1
- private void titleLabel_MouseDown(object sender, MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Left)
- {
- LoginGUI.ReleaseCapture();
- LoginGUI.SendMessage(base.Handle, 161, 2, 0);
- }
- }
- // Token: 0x0600000A RID: 10 RVA: 0x000020D9 File Offset: 0x000002D9
- private void titleLabel_Click(object sender, EventArgs e)
- {
- }
- // Token: 0x0600000B RID: 11 RVA: 0x000020DB File Offset: 0x000002DB
- private void licenseKeyTextBox_Enter(object sender, EventArgs e)
- {
- if (this.emailTextBox.Text == "Username ...")
- {
- this.emailTextBox.ForeColor = Color.FromArgb(69, 69, 69);
- this.emailTextBox.Text = "";
- }
- }
- // Token: 0x0600000C RID: 12 RVA: 0x00002E5C File Offset: 0x0000105C
- private void licenseKeyTextBox_Leave(object sender, EventArgs e)
- {
- if (this.emailTextBox.Text == "")
- {
- this.emailTextBox.ForeColor = Color.FromArgb(136, 136, 136);
- this.emailTextBox.Text = "Username ...";
- }
- }
- // Token: 0x0600000D RID: 13 RVA: 0x00002EB0 File Offset: 0x000010B0
- private void textBox1_Leave(object sender, EventArgs e)
- {
- if (this.passwordTextBox.Text == "")
- {
- this.passwordTextBox.ForeColor = Color.FromArgb(136, 136, 136);
- this.passwordTextBox.Text = "Password ...";
- }
- }
- // Token: 0x0600000E RID: 14 RVA: 0x0000211A File Offset: 0x0000031A
- private void textBox1_Enter(object sender, EventArgs e)
- {
- if (this.passwordTextBox.Text == "Password ...")
- {
- this.passwordTextBox.ForeColor = Color.FromArgb(69, 69, 69);
- this.passwordTextBox.Text = "";
- }
- }
- // Token: 0x0600000F RID: 15 RVA: 0x00002159 File Offset: 0x00000359
- private void closeButton_Click_1(object sender, EventArgs e)
- {
- Environment.Exit(0);
- }
- // Token: 0x06000010 RID: 16 RVA: 0x00002161 File Offset: 0x00000361
- private void validateLicenseButton_Click_1(object sender, EventArgs e)
- {
- this.validateLicenseButton.Text = "Connecting ...";
- new Thread(delegate()
- {
- foreach (Process process in Process.GetProcesses())
- {
- if (process.ProcessName.ToLower().Contains("fiddler") || process.ProcessName.ToLower().Contains("dnSpy") || process.ProcessName.ToLower().Contains("postman"))
- {
- Environment.Exit(0);
- }
- }
- if (this.checkBox1.Checked)
- {
- Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
- configuration.AppSettings.Settings.Remove("Username");
- configuration.AppSettings.Settings.Add("Username", this.emailTextBox.Text);
- configuration.AppSettings.Settings.Remove("Password");
- configuration.AppSettings.Settings.Add("Password", LoginGUI.EncryptString(LoginGUI.ToSecureString(this.passwordTextBox.Text)));
- configuration.Save(ConfigurationSaveMode.Modified);
- ConfigurationManager.RefreshSection("appSettings");
- }
- else
- {
- Configuration configuration2 = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
- configuration2.AppSettings.Settings.Remove("Username");
- configuration2.AppSettings.Settings.Add("Username", null);
- configuration2.AppSettings.Settings.Remove("Password");
- configuration2.AppSettings.Settings.Add("Password", null);
- configuration2.Save(ConfigurationSaveMode.Modified);
- ConfigurationManager.RefreshSection("appSettings");
- }
- try
- {
- using (HttpRequest httpRequest = new HttpRequest())
- {
- Structs.LoginStruct loginStruct = default(Structs.LoginStruct);
- loginStruct.email = this.emailTextBox.Text;
- loginStruct.password = this.passwordTextBox.Text;
- string text = string.Empty;
- using (ManagementObjectCollection.ManagementObjectEnumerator enumerator = new ManagementClass("win32_processor").GetInstances().GetEnumerator())
- {
- if (enumerator.MoveNext())
- {
- text = ((ManagementObject)enumerator.Current).Properties["processorID"].Value.ToString();
- }
- }
- loginStruct.HWID = text;
- string str = string.Concat(new string[]
- {
- "email=",
- loginStruct.email,
- "&password=",
- loginStruct.password,
- "&HWID=",
- text
- });
- string text2 = httpRequest.Post("https://axenta.ddns.net:7000/users", str, "application/x-www-form-urlencoded").ToString();
- if (text2.Contains("Bad"))
- {
- this.label1.Text = "Wrong email / password.";
- this.validateLicenseButton.Text = "Connect";
- }
- if (text2.Contains("HWID"))
- {
- this.label1.Text = "This account is linked to another PC.";
- this.validateLicenseButton.Text = "Connect";
- }
- if (text2.Contains("Connection valid."))
- {
- SynchronizedInvoker.Invoke(delegate
- {
- MessageBox.Show(this, "Welcome to Axenta, " + this.emailTextBox.Text + "\r\n\r\nYou should join our discord :)\n\nThis program is purely a demonstration of the use/flaws of the fortnite API\nUse this solely for testing purpose, credential stuffing is forbidden !\n\nI can't be held responsible for shit you do.", "Welcome.", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- });
- this.FuckCrossThread(text2);
- }
- }
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }).Start();
- }
- // Token: 0x06000011 RID: 17 RVA: 0x00002F04 File Offset: 0x00001104
- private void FuckCrossThread(string answer)
- {
- if (LoginGUI.qzdq.InvokeRequired)
- {
- LoginGUI.qzdq.Invoke(new LoginGUI.Del(this.FuckCrossThread), new object[]
- {
- answer
- });
- return;
- }
- LoginGUI.qzdq.Visible = false;
- new Main(JsonConvert.DeserializeObject(answer), this.emailTextBox.Text, LoginGUI.ToSecureString(this.passwordTextBox.Text), this, this.args).Show();
- }
- // Token: 0x06000012 RID: 18 RVA: 0x00002F7C File Offset: 0x0000117C
- private void LoginGUI_Load(object sender, EventArgs e)
- {
- new Main(JsonConvert.DeserializeObject(sender), this.emailTextBox.Text, LoginGUI.ToSecureString(this.passwordTextBox.Text), this, this.args).Show();
- return;
- try
- {
- }
- catch (Exception)
- {
- Environment.Exit(0);
- }
- finally
- {
- HttpRequest httpRequest;
- if (httpRequest != null)
- {
- ((IDisposable)httpRequest).Dispose();
- }
- }
- string text = "";
- Console.WriteLine("Checking for new version ...");
- try
- {
- using (HttpRequest httpRequest2 = new HttpRequest())
- {
- text = httpRequest2.Get("https://axenta.ddns.net:7000/latest", null).ToString();
- }
- }
- catch (Exception)
- {
- Console.WriteLine("Couldn't contact release server.");
- Console.Read();
- Environment.Exit(0);
- }
- Version version = Assembly.GetExecutingAssembly().GetName().Version;
- Version v = new Version(text);
- if (!(version < v))
- {
- goto IL_1B0;
- }
- try
- {
- Process.Start("AxentaUpdater.exe");
- base.Close();
- goto IL_1CA;
- }
- catch (Exception)
- {
- MessageBox.Show(this, string.Concat(new string[]
- {
- "A new update is released (",
- text,
- ")",
- Environment.NewLine,
- Environment.NewLine,
- "Run the updater as soon as possible, changelog is available on discord."
- }), "Axenta - New update available", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- goto IL_1CA;
- }
- IL_1B0:
- Console.WriteLine("Version V" + version.ToString() + " is up to date.");
- IL_1CA:
- this.passwordTextBox.PasswordChar = '*';
- this.textBox3.PasswordChar = '*';
- this.textBox1.PasswordChar = '*';
- if (!(ConfigurationManager.AppSettings["Password"] != "") || !(ConfigurationManager.AppSettings["Username"] != ""))
- {
- goto IL_279;
- }
- SecureString input = LoginGUI.DecryptString(ConfigurationManager.AppSettings["Password"]);
- string text2 = ConfigurationManager.AppSettings["Username"];
- this.passwordTextBox.Text = LoginGUI.ToInsecureString(input);
- this.emailTextBox.Text = text2;
- this.checkBox1.Checked = true;
- IL_279:;
- }
- // Token: 0x06000013 RID: 19 RVA: 0x00002189 File Offset: 0x00000389
- private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- if (!this.panel1.Visible)
- {
- this.panel1.Visible = true;
- this.loginPanel.Visible = false;
- }
- }
- // Token: 0x06000014 RID: 20 RVA: 0x000020D9 File Offset: 0x000002D9
- private void titleLabel_Click_1(object sender, EventArgs e)
- {
- }
- // Token: 0x06000015 RID: 21 RVA: 0x000021B0 File Offset: 0x000003B0
- private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- if (this.panel1.Visible)
- {
- this.panel1.Visible = false;
- this.loginPanel.Visible = true;
- }
- }
- // Token: 0x06000016 RID: 22 RVA: 0x00003244 File Offset: 0x00001444
- private void button2_Click(object sender, EventArgs e)
- {
- if (this.textBox3.Text.Length < 5)
- {
- MessageBox.Show(this, "Password must be longer than 5 characters.", "Password too short.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- return;
- }
- try
- {
- using (HttpRequest httpRequest = new HttpRequest())
- {
- Structs.LoginStruct loginStruct = default(Structs.LoginStruct);
- loginStruct.email = this.textBox2.Text;
- loginStruct.password = this.textBox1.Text;
- string text = string.Empty;
- using (ManagementObjectCollection.ManagementObjectEnumerator enumerator = new ManagementClass("win32_processor").GetInstances().GetEnumerator())
- {
- if (enumerator.MoveNext())
- {
- text = ((ManagementObject)enumerator.Current).Properties["processorID"].Value.ToString();
- }
- }
- loginStruct.HWID = text;
- string str = string.Concat(new string[]
- {
- "email=",
- loginStruct.email,
- "&password=",
- loginStruct.password,
- "&newPassword=",
- this.textBox3.Text,
- "&HWID=",
- text
- });
- string text2 = httpRequest.Post("https://axenta.ddns.net:7000/updatePassword", str, "application/x-www-form-urlencoded").ToString();
- if (text2.Contains("Bad"))
- {
- this.label2.Text = "Wrong email / password.";
- }
- if (text2.Contains("Password changed."))
- {
- MessageBox.Show(this, "Your password has been succesfully changed.", "Password changed.", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- }
- if (text2.Contains("HWID"))
- {
- this.label2.Text = "This account is linked to another PC.";
- }
- }
- }
- catch (Exception)
- {
- MessageBox.Show(this, "Couldn't contact the server, ask @Kadau5#6292 on discord if it's up.", "Invictus - Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- }
- // Token: 0x06000017 RID: 23 RVA: 0x000020D9 File Offset: 0x000002D9
- private void panel1_Paint(object sender, PaintEventArgs e)
- {
- }
- // Token: 0x06000018 RID: 24 RVA: 0x000020D9 File Offset: 0x000002D9
- private void panel3_Paint(object sender, PaintEventArgs e)
- {
- }
- // Token: 0x06000019 RID: 25 RVA: 0x000021D7 File Offset: 0x000003D7
- public static string EncryptString(SecureString input)
- {
- return Convert.ToBase64String(ProtectedData.Protect(Encoding.Unicode.GetBytes(LoginGUI.ToInsecureString(input)), LoginGUI.entropy, DataProtectionScope.CurrentUser));
- }
- // Token: 0x0600001A RID: 26 RVA: 0x00003444 File Offset: 0x00001644
- public static SecureString DecryptString(string encryptedData)
- {
- SecureString result;
- try
- {
- byte[] bytes = ProtectedData.Unprotect(Convert.FromBase64String(encryptedData), LoginGUI.entropy, DataProtectionScope.CurrentUser);
- result = LoginGUI.ToSecureString(Encoding.Unicode.GetString(bytes));
- }
- catch
- {
- result = new SecureString();
- }
- return result;
- }
- // Token: 0x0600001B RID: 27 RVA: 0x00003490 File Offset: 0x00001690
- public static SecureString ToSecureString(string input)
- {
- SecureString secureString = new SecureString();
- foreach (char c in input)
- {
- secureString.AppendChar(c);
- }
- secureString.MakeReadOnly();
- return secureString;
- }
- // Token: 0x0600001C RID: 28 RVA: 0x000034CC File Offset: 0x000016CC
- public static string ToInsecureString(SecureString input)
- {
- string result = string.Empty;
- IntPtr intPtr = Marshal.SecureStringToBSTR(input);
- try
- {
- result = Marshal.PtrToStringBSTR(intPtr);
- }
- finally
- {
- Marshal.ZeroFreeBSTR(intPtr);
- }
- return result;
- }
- // Token: 0x0600001D RID: 29 RVA: 0x000020D9 File Offset: 0x000002D9
- private void loginPanel_Paint(object sender, PaintEventArgs e)
- {
- }
- // Token: 0x04000001 RID: 1
- public const int WM_NCLBUTTONDOWN = 161;
- // Token: 0x04000002 RID: 2
- public const int HT_CAPTION = 2;
- // Token: 0x04000003 RID: 3
- private static byte[] entropy = Encoding.Unicode.GetBytes("Salt Is Not A Password");
- // Token: 0x04000004 RID: 4
- private const int WS_MINIMIZEBOX = 131072;
- // Token: 0x04000005 RID: 5
- private const int CS_DBLCLKS = 8;
- // Token: 0x04000006 RID: 6
- private string[] args;
- // Token: 0x04000007 RID: 7
- private static Form qzdq;
- // Token: 0x02000003 RID: 3
- // (Invoke) Token: 0x06000025 RID: 37
- private delegate void Del(string answer);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement