i need help in this code how can give up serial number

  • Thread starter Thread starter i need help how give up serial in this code
  • Start date Start date
I

i need help how give up serial in this code

Guest
{
ManagementObjectSearcher searcher = new ManagementObjectSearcher("select processorid from win32_processor");
foreach (ManagementObject obj2 in searcher.Get())
{
PropertyDataCollection.PropertyDataEnumerator enumerator = obj2.Properties.GetEnumerator();
while (enumerator.MoveNext())
{
Module1.idpr = enumerator.Current.Value.ToString();
}
}
Module1.idpr = Module1.obfuscate(Module1.idpr);
Module1.idreg = this.str2int(Module1.idpr);
this.textboxreg.Text = Module1.idreg;
Module1.idreg = Module1.obfuscate(Module1.idreg);
Module1.idact1 = this.str2int(Module1.idreg);
Module1.acta = this.str2int(Module1.idpr).Substring(13, 1) + this.str2int(Module1.idpr).Substring(0x1f, 1) + this.str2int(Module1.idpr).Substring(0x1b, 1) + this.str2int(Module1.idpr).Substring(0x17, 1) + this.str2int(Module1.idpr).Substring(0x1d, 1) + this.str2int(Module1.idpr).Substring(5, 1) + this.str2int(Module1.idpr).Substring(0x13, 1) + this.str2int(Module1.idpr).Substring(10, 1) + this.str2int(Module1.idpr).Substring(13, 1) + this.str2int(Module1.idpr).Substring(14, 1) + this.str2int(Module1.idpr).Substring(13, 1) + Module1.idact1;
Module1.idact1 = Module1.idact1.Substring(0x20);
Module1.idact1 = Module1.obfuscate(Module1.idact1);
Module1.idact2 = this.str2int(Module1.idact1);
Module1.actb = this.str2int(Module1.idpr).Substring(13, 1) + this.str2int(Module1.idpr).Substring(0x19, 1) + this.str2int(Module1.idpr).Substring(11, 1) + this.str2int(Module1.idpr).Substring(0x11, 1) + this.str2int(Module1.idpr).Substring(0x1f, 1) + this.str2int(Module1.idpr).Substring(15, 1) + this.str2int(Module1.idpr).Substring(13, 1) + this.str2int(Module1.idpr).Substring(9, 1) + this.str2int(Module1.idpr).Substring(12, 1) + this.str2int(Module1.idpr).Substring(0x1b, 1) + this.str2int(Module1.idpr).Substring(15, 1) + Module1.idact2;
Module1.idact2 = Module1.idact2.Substring(0x20);
Module1.idact2 = Module1.obfuscate(Module1.idact2);
Module1.idbar = this.str2int(Module1.idact2);
Module1.actc = this.str2int(Module1.idpr).Substring(0x13, 1) + this.str2int(Module1.idpr).Substring(0x1c, 1) + this.str2int(Module1.idpr).Substring(0x10, 1) + this.str2int(Module1.idpr).Substring(0x11, 1) + this.str2int(Module1.idpr).Substring(0x11, 1) + this.str2int(Module1.idpr).Substring(0x19, 1) + this.str2int(Module1.idpr).Substring(0x1f, 1) + this.str2int(Module1.idpr).Substring(0x13, 1) + this.str2int(Module1.idpr).Substring(11, 1) + this.str2int(Module1.idpr).Substring(11, 1) + this.str2int(Module1.idpr).Substring(0x10, 1) + Module1.idbar;
Module1.idreg = Strings.Trim(this.textboxreg.Text);
Module1.idreg = Module1.obfuscate(Module1.idreg);
Module1.idact1 = this.str2int(Module1.idreg);
Module1.acta = Module1.idact1;
Module1.acts = Strings.Trim(this.textboxreg.Text).Substring(12, 1) + Strings.Trim(this.textboxreg.Text).Substring(30, 1) + Strings.Trim(this.textboxreg.Text).Substring(0x15, 1) + Strings.Trim(this.textboxreg.Text).Substring(0x16, 1) + Conversions.ToString(5) + Strings.Trim(this.textboxreg.Text).Substring(0x11, 1) + Module1.idact1 + Strings.Trim(this.textboxreg.Text).Substring(3, 1) + Strings.Trim(this.textboxreg.Text).Substring(12, 1) + Strings.Trim(this.textboxreg.Text).Substring(11, 1) + Conversions.ToString(7) + Strings.Trim(this.textboxreg.Text).Substring(11, 1);
Module1.idact1 = Module1.idact1.Substring(0x20);
Module1.idact1 = Module1.obfuscate(Module1.idact1);
Module1.idact2 = this.str2int(Module1.idact1);
Module1.actb = Module1.idact2;
Module1.acte = Strings.Trim(this.textboxreg.Text).Substring(10, 1) + Strings.Trim(this.textboxreg.Text).Substring(0x18, 1) + Strings.Trim(this.textboxreg.Text).Substring(13, 1) + Strings.Trim(this.textboxreg.Text).Substring(13, 1) + Strings.Trim(this.textboxreg.Text).Substring(5, 1) + Strings.Trim(this.textboxreg.Text).Substring(10, 1) + Conversions.ToString(1) + Strings.Trim(this.textboxreg.Text).Substring(9, 1) + Module1.idact2 + Strings.Trim(this.textboxreg.Text).Substring(15, 1) + Strings.Trim(this.textboxreg.Text).Substring(9, 1) + Strings.Trim(this.textboxreg.Text).Substring(11, 1);
Module1.idact2 = Module1.idact2.Substring(0x20);
Module1.idact2 = Module1.obfuscate(Module1.idact2);
Module1.idbar = this.str2int(Module1.idact2);
Module1.actc = Module1.idbar;
Module1.actf = Strings.Trim(this.textboxreg.Text).Substring(11, 1) + Strings.Trim(this.textboxreg.Text).Substring(0x15, 1) + Strings.Trim(this.textboxreg.Text).Substring(13, 1) + Strings.Trim(this.textboxreg.Text).Substring(11, 1) + Strings.Trim(this.textboxreg.Text).Substring(0x19, 1) + Strings.Trim(this.textboxreg.Text).Substring(12, 1) + Strings.Trim(this.textboxreg.Text).Substring(9, 1) + Strings.Trim(this.textboxreg.Text).Substring(7, 1) + Conversions.ToString(9) + Module1.idbar + Strings.Trim(this.textboxreg.Text).Substring(0x17, 1) + Strings.Trim(this.textboxreg.Text).Substring(15, 1);
}










[StandardModule]
internal sealed class Module1
{
public static string acta;
public static string actb;
public static string actc;
public static string acte;
public static string actf;
public static string acts;
public static byte addnewpatient;
public static byte calpatient;
public static string constr = ("Data Source=" + MySettingsProperty.Settings.server + ";Initial Catalog=Elm3ml_DataBase;User ID=sa;Password=12345678");
public static byte editpatient;
public static byte frmbarcode;
public static string idact1;
public static string idact2;
public static string idbar;
public static string idpr;
public static string idreg;
public static int pos;
public static byte remindaddedit;
public static byte ttt = 0;

public static string obfuscate(string origtext)
{
byte[] bytes = Encoding.Unicode.GetBytes(origtext);
int num2 = bytes.Length - 1;
for (int i = 0; i <= num2; i++)
{
int num3;
if ((bytes > 31) & (bytes < 0x7f))//0x1f //
{
num3 = i;
bytes[num3] = (byte) (bytes[num3] + ((byte) ((i % 0x1f) + 1)));
}
else if (bytes > 0x7e)
{
num3 = i;
bytes[num3] = (byte) (bytes[num3] - 0x5f);
}
}
return new string(Encoding.Unicode.GetChars(bytes));
}

public static string str2int(object instrng)
{
string str2 = "";
int num2 = Strings.Len(RuntimeHelpers.GetObjectValue(instrng));
if (num2 == 0)
{
return str2;
}
string str = "";
int num3 = num2;
for (int i = 1; i <= num3; i++)
{
string left = Strings.Mid(Conversions.ToString(instrng), i, 1);
if ((Operators.CompareString(left, "0", false) >= 0) && (Operators.CompareString(left, "z", false) <= 0))
{
str = str + Conversions.ToString(Strings.Asc(Strings.Mid(Conversions.ToString(instrng), i, 1)));
}
}
return str;
}
}

Continue reading...
 
Back
Top