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-06-2013, 11:23 PM #2
Specter
Pro Memer
By the looks of this, it look's like its C# programming, that or C++? Just asking because I've had terrible experience with C# in application programming lol. Case sensitive and crap, I usually stick to VB. Only reason I used C# was because I needed to use ICSHARPCODE.TextEditor.dll.
01-07-2013, 01:25 AM #3
Pichu
RIP PICHU.
Originally posted by JCJEDI View Post
By the looks of this, it look's like its C# programming, that or C++? Just asking because I've had terrible experience with C# in application programming lol. Case sensitive and crap, I usually stick to VB. Only reason I used C# was because I needed to use ICSHARPCODE.TextEditor.dll.


C# programming. C# and VB.NET are the same thing just different syntax. To be honest, it's to your advantage to learn to program in C# than VB.NET.
01-07-2013, 01:27 AM #4
Specter
Pro Memer
True, but I hate how touchy it is. Case sensitive, and sometimes even a space that doesn't need to be there can give you a different result that you don't want.
01-07-2013, 02:12 AM #5
Pichu
RIP PICHU.
Originally posted by JCJEDI View Post
True, but I hate how touchy it is. Case sensitive, and sometimes even a space that doesn't need to be there can give you a different result that you don't want.


Um, I don't know why that's an issue.

Generally the only case sensitivity comes from variables, class names etc.

int a = 0;
int A = 1;
int b = 0;
b = a + A;

Nothing much to it.
01-07-2013, 02:27 AM #6
Specter
Pro Memer
Its just annoying you know what I mean? Plus certain things you can do in VB (Like script) that you can't do in C#. Such as a "// comment remover" I know how to do that in VB, I looked it up and even asked how to do it on Microsoft forums, and they said it wasnt possible via C#.
01-07-2013, 02:30 AM #7
Pichu
RIP PICHU.
Originally posted by JCJEDI View Post
Its just annoying you know what I mean? Plus certain things you can do in VB (Like script) that you can't do in C#. Such as a "// comment remover" I know how to do that in VB, I looked it up and even asked how to do it on Microsoft forums, and they said it wasnt possible via C#.


You mean remove comments throughout the program or comment out sections?

Also, please start quoting me.
01-07-2013, 02:39 AM #8
Specter
Pro Memer
Originally posted by Pichu View Post
You mean remove comments throughout the program or comment out sections?

Also, please start quoting me.


Ok, and I mean like removing comments from a text box (I was making a code editor :p)
01-07-2013, 02:43 AM #9
Pichu
RIP PICHU.
Originally posted by JCJEDI View Post
Ok, and I mean like removing comments from a text box (I was making a code editor :p)


I still don't get what you mean.

Any chance you can show me some code or a picture of you doing it so I can get an example. :/
01-07-2013, 04:08 AM #10
Originally posted by JCJEDI View Post
Ok, and I mean like removing comments from a text box (I was making a code editor :p)


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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo