Advertisement
Guest User

Untitled

a guest
Apr 28th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using Authed;
  11. using Jose.jwe;
  12. using Newtonsoft.Json;
  13.  
  14. namespace Corxin_Spoofer
  15. {
  16.  
  17. public partial class Form1 : Form
  18. {
  19. Auth response = new Auth();
  20. AuthedChecker checker = new AuthedChecker();
  21. public Form1()
  22. {
  23. InitializeComponent();
  24. bool auth = response.Authenticate("******************************************");
  25. if (auth != true)
  26. {
  27. MessageBox.Show("Not Authed");
  28. Environment.Exit(0);
  29. }
  30. }
  31.  
  32. private void flatButton1_Click(object sender, EventArgs e)
  33. {
  34. string username = flatTextBox1.Text;
  35. string password = flatTextBox3.Text;
  36. bool login = response.Login(username, password);
  37. if (login == true)
  38. {
  39. MessageBox.Show("Signed in");
  40. this.Hide();
  41. Form2 main = new Form2();
  42. main.Show();
  43. }
  44. else
  45. {
  46. MessageBox.Show("Login Failed");
  47. }
  48. }
  49.  
  50. private void flatButton2_Click(object sender, EventArgs e)
  51. {
  52. string username = flatTextBox1.Text;
  53. string password = flatTextBox3.Text;
  54. string email = flatTextBox2.Text;
  55. string token = flatTextBox4.Text;
  56. bool register = response.Register(username, password, email, token);
  57. if (register == true)
  58. {
  59. MessageBox.Show("Registered!");
  60. }
  61. else
  62. {
  63. MessageBox.Show("Registration failed!");
  64. }
  65. }
  66.  
  67. private void Form1_Load(object sender, EventArgs e)
  68. {
  69.  
  70. }
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement