From 8f28aed1d3402e0dca3f3ec2c20811f6e5acf6a2 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Sat, 14 Dec 2019 23:06:20 +0300 Subject: [PATCH] Added flags --- AsyncRAT-C#/Server/Forms/Form1.cs | 4 ++++ .../Server/Handle Packet/HandleListView.cs | 22 ++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/AsyncRAT-C#/Server/Forms/Form1.cs b/AsyncRAT-C#/Server/Forms/Form1.cs index 05fec93..205d6ed 100644 --- a/AsyncRAT-C#/Server/Forms/Form1.cs +++ b/AsyncRAT-C#/Server/Forms/Form1.cs @@ -16,6 +16,7 @@ using Server.Helper; using System.Security.Cryptography.X509Certificates; using System.Collections.Generic; using System.Runtime.InteropServices; +using cGeoIp; /* │ Author : NYAN CAT @@ -31,6 +32,7 @@ namespace Server public partial class Form1 : Form { private bool trans; + public cGeoMain cGeoMain = new cGeoMain(); private List getTasks = new List(); private ListViewColumnSorter lvwColumnSorter; @@ -44,6 +46,8 @@ namespace Server Name = "DOS", Text = "DOS", }; + listView1.SmallImageList = cGeoMain.cImageList; + listView1.LargeImageList = cGeoMain.cImageList; } #region Form Helper diff --git a/AsyncRAT-C#/Server/Handle Packet/HandleListView.cs b/AsyncRAT-C#/Server/Handle Packet/HandleListView.cs index bcbaf78..7816693 100644 --- a/AsyncRAT-C#/Server/Handle Packet/HandleListView.cs +++ b/AsyncRAT-C#/Server/Handle Packet/HandleListView.cs @@ -35,16 +35,26 @@ namespace Server.Handle_Packet catch { } } - 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]); + client.LV = new ListViewItem + { + Tag = client, + Text = string.Format("{0}:{1}", client.TcpClient.RemoteEndPoint.ToString().Split(':')[0], client.TcpClient.LocalEndPoint.ToString().Split(':')[1]), + }; string[] ipinf; try { - ipinf = new cGeoMain().GetIpInf(client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]).Split(':'); + ipinf = Program.form1.cGeoMain.GetIpInf(client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]).Split(':'); + client.LV.SubItems.Add(ipinf[1]); + try + { + client.LV.ImageKey = ipinf[2] + ".png"; + } + catch { } + } + catch + { + client.LV.SubItems.Add("??"); } - catch { ipinf = new string[] { "?", "?" }; } - client.LV.SubItems.Add(ipinf[1]); 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("OS").AsString);