Post: Login Program
01-06-2013, 08:50 PM #1
Pichu
RIP PICHU.
(adsbygoogle = window.adsbygoogle || []).push({}); Only issue: Uses System.Environment which I learned just recently gets picked up as a low level virus. This means to make it effective, you need to encrypt it.

You must login or register to view this content.


    using System;using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.Net;


namespace Program_Load
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


string Unique_Serial, Unique_Serial_Raw, Machine_Name, Unique_ID;
string Invalid_Serial_Characters = "DKLPQUXY-";
string Invalid_ID_Character = "ABCDEFGHIJKLMNOPQRSTUVWXYZ-";
const string User_Entry = "361588899677365933594"; //If you see this, you are looking in the right direction:
string Compare_User_Entry = "";
int Max_ID_Length, Max_Serial_Length, Add_Serial_Dash, Max_Dashes, Attempts;
bool InvalidSerialChar = false; //The only working serial is this: 134B-94C1-72AE-6781-F413
bool InvalidIDChar = false; //The reason, the serial is generated based on my machine's information
bool Check = false; //Unless yours is alike, the chances of generating the same serial is 1 in a million.
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
UTF32Encoding utf32 = new UTF32Encoding();
UTF8Encoding utf8 = new UTF8Encoding();


private void Form1_Load(object sender, EventArgs e)
{
Max_ID_Length = 2;
Max_Serial_Length = 20;
Add_Serial_Dash = 0;
Max_Dashes = 4;
Machine_Name = System.Environment.MachineName;
Unique_Serial_Raw = BitConverter.ToString(md5.ComputeHash(utf32.GetBytes(Machine_Name)));
foreach (char a in Unique_Serial_Raw)
{
foreach (char b in Invalid_Serial_Characters)
{
if (Char.ToUpper(a) == b)
{
InvalidSerialChar = true;
}
}
foreach (char b in Invalid_ID_Character)
{
if (Char.ToUpper(a) == b)
{
InvalidIDChar = true;
}
}
if (InvalidSerialChar == false)
{
if (Max_Serial_Length != 0)
{
Max_Serial_Length--;
Unique_Serial += a;
}
if (Add_Serial_Dash == 3)
{
if (Max_Dashes != 0)
{
Max_Dashes--;
Unique_Serial += "-";
Add_Serial_Dash = 0;
}
}
else { Add_Serial_Dash++; }
}
if (InvalidIDChar == false)
{
if (Max_ID_Length != 0)
{
Max_ID_Length--;
int convert_a = (int)a * 2;
Unique_ID += convert_a;
}
}
InvalidIDChar = false;
InvalidSerialChar = false;
}
Unique_ID_Label.Text += Unique_ID;
Serial_Box.Text = Unique_Serial;
Attempts = 3;
}


private void Login_Btn_Click(object sender, EventArgs e)
{
if (Username_Box.Text.Length != 0 && Password_Box.Text.Length != 0 && Serial_Box.Text.Length != 0)
{
Compare_User_Entry = "";
string Hold_Login_Values = "";
string Temp_Username = BitConverter.ToString(md5.ComputeHash(utf32.GetBytes(Username_Box.Text)));
string Temp_Password = BitConverter.ToString(md5.ComputeHash(utf8.GetBytes(Password_Box.Text)));
foreach (char a in Temp_Username)
{
foreach (char b in Invalid_ID_Character)
{
if (char.ToUpper(a) == b)
{
InvalidSerialChar = true;
}
}
if (InvalidSerialChar == false)
{
Hold_Login_Values += a;
}
InvalidSerialChar = false;
}
foreach (char a in Temp_Password)
{
foreach (char b in Invalid_ID_Character)
{
if (char.ToUpper(a) == b)
{
InvalidSerialChar = true;
}
}
if (InvalidSerialChar == false)
{
Hold_Login_Values += a;
}
InvalidSerialChar = false;
}
int Selection = 4;
string temp_ = "";
foreach (char a in Serial_Box.Text)
{
if (Selection != 0)
{
Selection--;
temp_ = BitConverter.ToString(md5.ComputeHash(utf32.GetBytes(a.ToString())));
}
}
Hold_Login_Values += temp_;
Hold_Login_Values = BitConverter.ToString(md5.ComputeHash(utf8.GetBytes(Hold_Login_Values)));
foreach (char a in Hold_Login_Values)
{
foreach (char b in Invalid_ID_Character)
{
if (char.ToUpper(a) == b)
{
Check = true;
}
}
if (Check == false)
{
Compare_User_Entry += a;
}
Check = false;
}
if (User_Entry == Compare_User_Entry)
{
Attempts = 3;
MessageBox.Show("Congrats on entry! \"Codename - Unbreakble\" <--- Please enter this message on my thread along with the Username and Password used!");
}
else { if (Attempts != 0) { Attempts--; } MessageBox.Show("Failure!\n" + Attempts + " Attempt(s) Remaining!"); Username_Box.Clear(); Password_Box.Clear(); }
if (Attempts == 0)
{
System.Diagnostics.Process.Start("https://www.nextgenupdate.com/forums/members/450946-pichu.html");
this.Close();
}
}
else { MessageBox.Show("You have either left the Username, Password or Serial field blank. Please fill it in.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation ); }
}


private void Register_Btn_Click(object sender, EventArgs e)
{
MessageBox.Show("What, you actually thought this does shit? Psh, I beg to differ.", "Think Again", MessageBoxButtons.OK, MessageBoxIcon.Question);
}
}
}


(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Pichu for this useful post:

MagicalMonkey
01-07-2013, 04:20 AM #11
Pichu
RIP PICHU.
Originally posted by EyeX32 View Post
It is possible to make a comment remover in C#, its so easy lol....
I'm made one on my own :P
ohh and BTW good job Pichu


Thank you, nothing hard really. Although I did make a logic mistake that took me half an hour to work about to fix lol.
01-07-2013, 12:38 PM #12
Specter
Pro Memer
Originally posted by EyeX32 View Post
It is possible to make a comment remover in C#, its so easy lol....
I'm made one on my own :P
ohh and BTW good job Pichu


lol well then would you give me the code for a button, because I spent 3 fuckin days trying to do it lol
01-07-2013, 04:23 PM #13
Pichu
RIP PICHU.
Originally posted by JCJEDI View Post
lol well then would you give me the code for a button, because I spent 3 fuckin days trying to do it lol

Are you talking about removing say "The Duck From The Farm" and wanting to remove "Duck" so it read "The From The Farm"?
01-07-2013, 07:02 PM #14
Specter
Pro Memer
No, like say the following text I entered into the textbox below:

    // This is a cool little function. Blah

/*Please dont steal this lol. Idk this is just blahabasd
asdasd*/

GetInfo(){

self iPrintln("Hi Bro");

}


I would want it to turn into this when the button is pushed:

    GetInfo(){

self iPrintln("Hi Bro");

}
01-07-2013, 07:27 PM #15
Pichu
RIP PICHU.
Originally posted by JCJEDI View Post
No, like say the following text I entered into the textbox below:

    // This is a cool little function. Blah

/*Please dont steal this lol. Idk this is just blahabasd
asdasd*/

GetInfo(){

self iPrintln("Hi Bro");

}


I would want it to turn into this when the button is pushed:

    GetInfo(){

self iPrintln("Hi Bro");

}


A script can still be written for that.
01-07-2013, 10:40 PM #16
Originally posted by JCJEDI View Post
No, like say the following text I entered into the textbox below:

    // This is a cool little function. Blah

/*Please dont steal this lol. Idk this is just blahabasd
asdasd*/

GetInfo(){

self iPrintln("Hi Bro");

}


I would want it to turn into this when the button is pushed:

    GetInfo(){

self iPrintln("Hi Bro");

}



I'll hook you up.... my Skype is: Red-EyeX32
If you don't have skype your out of luck :P
BTW nothing hard really lol, its in C# btw

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo