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 Jose.jwe;
- using Newtonsoft.Json;
- namespace Corxin_Spoofer
- {
- public partial class Form1 : Form
- {
- Auth response = new Auth();
- AuthedChecker checker = new AuthedChecker();
- public Form1()
- {
- InitializeComponent();
- bool auth = response.Authenticate("******************************************");
- if (auth != true)
- {
- MessageBox.Show("Not Authed");
- Environment.Exit(0);
- }
- }
- private void flatButton1_Click(object sender, EventArgs e)
- {
- string username = flatTextBox1.Text;
- string password = flatTextBox3.Text;
- bool login = response.Login(username, password);
- if (login == true)
- {
- MessageBox.Show("Signed in");
- this.Hide();
- Form2 main = new Form2();
- main.Show();
- }
- else
- {
- MessageBox.Show("Login Failed");
- }
- }
- private void flatButton2_Click(object sender, EventArgs e)
- {
- string username = flatTextBox1.Text;
- string password = flatTextBox3.Text;
- string email = flatTextBox2.Text;
- string token = flatTextBox4.Text;
- bool register = response.Register(username, password, email, token);
- if (register == true)
- {
- MessageBox.Show("Registered!");
- }
- else
- {
- MessageBox.Show("Registration failed!");
- }
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement