Added flags
This commit is contained in:
parent
4e42abd0c3
commit
8f28aed1d3
@ -16,6 +16,7 @@ using Server.Helper;
|
|||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
using cGeoIp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
│ Author : NYAN CAT
|
│ Author : NYAN CAT
|
||||||
@ -31,6 +32,7 @@ namespace Server
|
|||||||
public partial class Form1 : Form
|
public partial class Form1 : Form
|
||||||
{
|
{
|
||||||
private bool trans;
|
private bool trans;
|
||||||
|
public cGeoMain cGeoMain = new cGeoMain();
|
||||||
private List<AsyncTask> getTasks = new List<AsyncTask>();
|
private List<AsyncTask> getTasks = new List<AsyncTask>();
|
||||||
private ListViewColumnSorter lvwColumnSorter;
|
private ListViewColumnSorter lvwColumnSorter;
|
||||||
|
|
||||||
@ -44,6 +46,8 @@ namespace Server
|
|||||||
Name = "DOS",
|
Name = "DOS",
|
||||||
Text = "DOS",
|
Text = "DOS",
|
||||||
};
|
};
|
||||||
|
listView1.SmallImageList = cGeoMain.cImageList;
|
||||||
|
listView1.LargeImageList = cGeoMain.cImageList;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Form Helper
|
#region Form Helper
|
||||||
|
@ -35,16 +35,26 @@ namespace Server.Handle_Packet
|
|||||||
catch { }
|
catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
client.LV = new ListViewItem();
|
client.LV = new ListViewItem
|
||||||
client.LV.Tag = client;
|
{
|
||||||
client.LV.Text = string.Format("{0}:{1}", client.TcpClient.RemoteEndPoint.ToString().Split(':')[0], client.TcpClient.LocalEndPoint.ToString().Split(':')[1]);
|
Tag = client,
|
||||||
|
Text = string.Format("{0}:{1}", client.TcpClient.RemoteEndPoint.ToString().Split(':')[0], client.TcpClient.LocalEndPoint.ToString().Split(':')[1]),
|
||||||
|
};
|
||||||
string[] ipinf;
|
string[] ipinf;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ipinf = new cGeoMain().GetIpInf(client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]).Split(':');
|
ipinf = Program.form1.cGeoMain.GetIpInf(client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]).Split(':');
|
||||||
}
|
|
||||||
catch { ipinf = new string[] { "?", "?" }; }
|
|
||||||
client.LV.SubItems.Add(ipinf[1]);
|
client.LV.SubItems.Add(ipinf[1]);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
client.LV.ImageKey = ipinf[2] + ".png";
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
client.LV.SubItems.Add("??");
|
||||||
|
}
|
||||||
client.LV.SubItems.Add(unpack_msgpack.ForcePathObject("HWID").AsString);
|
client.LV.SubItems.Add(unpack_msgpack.ForcePathObject("HWID").AsString);
|
||||||
client.LV.SubItems.Add(unpack_msgpack.ForcePathObject("User").AsString);
|
client.LV.SubItems.Add(unpack_msgpack.ForcePathObject("User").AsString);
|
||||||
client.LV.SubItems.Add(unpack_msgpack.ForcePathObject("OS").AsString);
|
client.LV.SubItems.Add(unpack_msgpack.ForcePathObject("OS").AsString);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user