网上追捕(很多实用的port)

fasong22

fasong22

2016-01-29 13:55

网上追捕(很多实用的port),网上追捕(很多实用的port)
豆腐制作 都是精品
http://www.asp888.net 豆腐技术站

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com)

我们可以在Asp.Net中通过使用Sockets Class 来对InterNet 上的主机进行远程的控制和探测(不要搞破坏呀!)
下面的例子中豆腐给大家提供一个例子,可以对 指定的主机进行 探测:)功能类似 追捕。
<%@ Import Namespace="System.Net" %
<% @Import Namespace="System.Net.Sockets" %
<%@ Import Namespace="System.IO" %
<script language="C#" runat=server
protected void Page_Load(Object Src, EventArgs E){
TCPClient tcpc = new TCPClient();
String host="host";
showmsg.Text=TcpConnect(tcpc,host,25); //SMTP 端口
/*
showmsg.Text=TcpConnect(tcpc,host,80); //WWW 端口
showmsg.Text=TcpConnect(tcpc,host,21); //FTP 端口
showmsg.Text=TcpConnect(tcpc,host,110); //Pop 端口
showmsg.Text=TcpConnect(tcpc,host,1080); //Socket5 端口 代理服务器使用的端口
showmsg.Text=TcpConnect(tcpc,host,53); //DNS 端口
*/
}
String TcpConnect(TCPClient tcpc,String host,int port){
StreamReader sr ;
String strRet="123";
if(0 == tcpc.Connect(host,port)){
//联结服务器成功
sr = new StreamReader(tcpc.GetStream(), Encoding.Default);
strRet=sr.ReadLine();
}
return strRet;
}
</script
<html
<head
<title网络追捕</title
<link rel="stylesheet" type="text/css" href="/doufu.css"
</head
<body
<asp:Label id=showmsg runat=server /
</body
</html

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com)
展开更多 50%)
分享

猜你喜欢

网上追捕(很多实用的port)

电脑网络
网上追捕(很多实用的port)

一个完整的网上追捕的原程序

电脑网络
一个完整的网上追捕的原程序

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

内网用户使用port模式ftp指南

电脑网络
内网用户使用port模式ftp指南

《上古卷轴5:天际》盗贼公会任务-追捕

电脑网络
《上古卷轴5:天际》盗贼公会任务-追捕

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

网上炒股步骤 如何网上炒股

家庭理财 个人理财 理财方法 理财小知识 理财 投资
网上炒股步骤 如何网上炒股

《倩女幽魂online》追捕逃犯活动解析

网络游戏
《倩女幽魂online》追捕逃犯活动解析

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

抗日Flash集之:淞沪抗战

抗日Flash集之:淞沪抗战

关于两代语言.C/C++,java/c#

关于两代语言.C/C++,java/c#
下拉加载更多内容 ↓