-
C# web代理 实例源码下载
C# web代理 实例源码下载
- 2014-08-06下载
- 积分:1
-
Event
这是一个关于EVEN的使用方法的程序,运用常用的函数,实现了多事件的处理方法(This is a study on the use of EVEN procedures, the use of commonly used functions, the realization of a multi-event approach)
- 2008-05-15 23:01:30下载
- 积分:1
-
123
NET平台下的IP欺骗和SYN Flood攻击-彭宁-贵州大学(NET platform IP spoofing and SYN Flood attacks- Penning- Guizhou University)
- 2013-12-17 11:41:19下载
- 积分:1
-
WindowsFormsApp4
写个C#新手的,希望能有店面作用谢谢!!!(new hand; raw recruit; sprog; noviciate)
- 2020-06-24 10:40:02下载
- 积分:1
-
c# 扫描IP Http Header
c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
- 2014-06-23下载
- 积分:1
-
socketclient
说明: 简单的c#网络编程 获取本地地址 实现连接(Simple c# network programming for local address to connect)
- 2010-04-14 10:28:17下载
- 积分:1
-
getpclist
Visual C#得到局域网计算机列表,也就是获取局域网内的所有在线的主机名称列表,请确保您的电脑在网络中,要不然程序获取时候可能要假死,需要强制结束任务。(Visual C# to get a LAN computer list, which is to obtain a list of all the online host names within the LAN, make sure your computer is on the network, or else the program when you may want to get suspended animation, you need to force the end of the task.)
- 2014-09-12 08:56:36下载
- 积分:1
-
tdma
在多跳无线网络进行TDMA方式接入时候,时间是被划分为互不重叠的时隙,边长或定长帧在时隙中进行传输。
当面向节点时候,一个节点可以得到一个或者多个时隙,节点可以利用这些时隙向任何一条链路发送报文到邻居节点。
面向链路分配时候,则是某条单向链路分得一个或多个时隙,在这些时隙中,报文发送是单向的。(Time is divided into non-overlapping slots when multi-hop wireless networks are accessed by TDMA mode. Side-length or fixed-length frames are transmitted in slots.
When facing a node, a node can get one or more slots, which can be used by the node to send messages to any link to its neighbors.
For link allocation, a one-way link is allocated one or more slots, in which message transmission is one-way.)
- 2019-02-08 15:27:07下载
- 积分:1
-
W5500_DHCP
实现W5500自动获取IP地址和网关等的功能。(
Achieve W5500 automatically obtain IP address and gateway functions etc..)
- 2021-01-19 16:28:42下载
- 积分:1
-
WinSockUDP
VC UDP通讯,后台服务器
FileMana.cpp
FileMana.h
Login.cpp
Login.h
resource.h
SocketUdp.cpp
SocketUdp.h
StdAfx.cpp
StdAfx.h
WinSockUDP.aps
WinSockUDP.clw
WinSockUDP.cpp
WinSockUDP.dsp
WinSockUDP.dsw
WinSockUDP.h
WinSockUDP.ncb
WinSockUDP.opt
WinSockUDP.plg
WinSockUDP.rc
WinSockUDP.sln
WinSockUDP.vcproj
WinSockUDP.vcproj.T400-CKX.Administrator.user
WinSockUDPDlg.cpp
WinSockUDPDlg.h( FileMana.cpp
FileMana.h
Login.cpp
Login.h
resource.h
SocketUdp.cpp
SocketUdp.h
StdAfx.cpp
StdAfx.h
WinSockUDP.aps
WinSockUDP.clw
WinSockUDP.cpp
WinSockUDP.dsp
WinSockUDP.dsw
WinSockUDP.h
WinSockUDP.ncb
WinSockUDP.opt
WinSockUDP.plg
WinSockUDP.rc
WinSockUDP.sln
WinSockUDP.vcproj
WinSockUDP.vcproj.T400-CKX.Administrator.user
WinSockUDPDlg.cpp
WinSockUDPDlg.h)
- 2012-05-24 14:41:07下载
- 积分:1