Advertisement
Guest User

Untitled

a guest
Oct 26th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 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 Newtonsoft.Json;
  12. using Jose.jwe;
  13.  
  14. namespace DLLInjection.Gui
  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("5kdKOMo3WfOWJZfPfc7Tuxz8LSTcxZCTojZpYVPOsf8sl");
  25. if (auth != true)
  26. {
  27. MessageBox.Show("Register Failed, Contact Xen Corp. if the problem persists");
  28. Application.Exit();
  29. }
  30. }
  31.  
  32. private void Register_Click(object sender, EventArgs e)
  33. {
  34.  
  35. }
  36. private void Login_Click(EventArgs e, object sender)
  37. {
  38. string username = UserBox.Text;
  39. string password = Password.Text;
  40. bool login = response.Login(username, password);
  41. if (login == true)
  42. {
  43. MessageBox.Show("YAY");
  44. }
  45. else
  46. {
  47. Application.Exit();
  48. }
  49. }
  50.  
  51. private void textBox1_TextChanged(object sender, EventArgs e)
  52. {
  53. string username = UserBox.Text;
  54. string password = Password.Text;
  55. string email = Email.Text;
  56. string token = Key.Text;
  57. bool register = response.Register(username, password, email, token);
  58. if (register == true)
  59. {
  60. MessageBox.Show("You have successfully resigtered your injector");
  61. }
  62.  
  63. else
  64. {
  65. MessageBox.Show("Your registration has failed, please try again, make sure your key is valid");
  66. }
  67. }
  68.  
  69. private void label1_Click(object sender, EventArgs e)
  70. {
  71.  
  72. }
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement