Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using Authed;
- using Newtonsoft.Json;
- using Jose.jwe;
- namespace DLLInjection.Gui
- {
- public partial class Form1 : Form
- {
- Auth response = new Auth();
- AuthedChecker checker = new AuthedChecker();
- public Form1()
- {
- InitializeComponent();
- bool auth = response.Authenticate("5kdKOMo3WfOWJZfPfc7Tuxz8LSTcxZCTojZpYVPOsf8sl");
- if (auth != true)
- {
- MessageBox.Show("Register Failed, Contact Xen Corp. if the problem persists");
- Application.Exit();
- }
- }
- private void Register_Click(object sender, EventArgs e)
- {
- }
- private void Login_Click(EventArgs e, object sender)
- {
- string username = UserBox.Text;
- string password = Password.Text;
- bool login = response.Login(username, password);
- if (login == true)
- {
- MessageBox.Show("YAY");
- }
- else
- {
- Application.Exit();
- }
- }
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
- string username = UserBox.Text;
- string password = Password.Text;
- string email = Email.Text;
- string token = Key.Text;
- bool register = response.Register(username, password, email, token);
- if (register == true)
- {
- MessageBox.Show("You have successfully resigtered your injector");
- }
- else
- {
- MessageBox.Show("Your registration has failed, please try again, make sure your key is valid");
- }
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement