20 thg 5, 2019

C# - SubnetScanner - Scan your (local) Network

A network scanner written in C# to identify hosts in your local network. Download Project: http://s000.tinyupload.com/index.php?...

public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls =false; } Thread Th = null; public void scan(string subnet) { Ping myping; PingReply reply; IPAddress adr; IPHostEntry host; for (int i = 1; i < 255; i++) { string subnetnt = "." + i.ToString(); myping = new Ping(); reply = myping.Send(subnet+subnetnt,10); if (reply.Status == IPStatus.Success) { try { adr = IPAddress.Parse(subnet + subnetnt); host = Dns.GetHostEntry(adr); textBox1.AppendText(subnet+subnetnt +" "+ host.HostName.ToString()+" " + "Up" + "\n"); } catch { } } } }
tham khảo video tại đây.


C# - SubnetScanner - Scan your (local) Network Rating: 4.5 Diposkan Oleh: http://pdunoteit.blogspot.com/