Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.VisualBasic;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Data;
- using System.Diagnostics;
- using System.Net;
- public class Login
- {
- System.Net.WebClient wClient = new System.Net.WebClient();
- private void FlatButton1_Click(object sender, EventArgs e)
- {
- if (FlatTextBox1.Text == ("")) {
- MessageBox.Show("Please Enter A Username");
- } else {
- if (FlatTextBox2.Text == ("")) {
- MessageBox.Show("Please Enter A Password");
- } else {
- string result = wClient.DownloadString("https://ex0x.esy.es/Spamriosalogins/logins?user=" + FlatTextBox1.Text + "&pass=" + FlatTextBox2.Text);
- if (result == "0") {
- MessageBox.Show("Please Enter A Username");
- } else if (result == "1") {
- MessageBox.Show("Please Enter A Password");
- } else if (result == "2") {
- MessageBox.Show("Username Isin't Valid");
- } else if (result == "3") {
- this.Hide();
- Form1.Show();
- } else if (result == "4") {
- MessageBox.Show("Invalid Password");
- } else {
- MessageBox.Show("Login Failed, Please Try Again Or Contact AriosaVenom");
- }
- }
- }
- }
- private void Login_Load(object sender, EventArgs e)
- {
- }
- public Login()
- {
- Load += Login_Load;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement