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

2016-01-29 13:54 1 1 收藏

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

【 tulaoshi.com - ASP.NET 】

豆腐制作 都是精品
http://www.asp888.net 豆腐技术站

前面讲过很多的用asp+实现网长追捕的程序,现在就在这里给大家提供这个完整应用的原程序,希望大家首先先看看
以前的文章,带者问题来看这个程序,其实是很简单的。同时我也给大家带来了这个程序的下载!
这个程序现在还是 有些 小问题,比如在 处理通过IP 地址查找 主机域名的时候,如果输入的不是合法的IP地址,则程序会
返回一个错误,大家 如果有兴趣,可以自己修改修改这个程序的:)
<%@ Import NameSpace="System.Net" %
<% @Import Namespace="System.Net.Sockets" %
<%@ Import Namespace="System.IO" %
<script language="C#" runat=server
String strRet;
protected void doClick(Object Src, EventArgs E){

if(dropdown1.SelectedItem.Value.ToInt16()==2){

IPHostEntry hostInfo = DNS.GetHostByName(txtSearch.Text);
strRet= hostInfo.AddressList[0].ToString() + "<br"; //域名转换成IP地址
}
else{
IPHostEntry hostInfo = DNS.GetHostByAddr(txtSearch.Text);
strRet= hostInfo.Hostname + "<br"; //IP地址转换成域名
}

if(CheckBox1.Checked){
String host=txtSearch.Text;

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

TCPClient tcpc = new TCPClient();
strRet=strRet + "SMTP Server:" + TcpConnect(tcpc,host,25) + "<br"; //SMTP 端口

tcpc = new TCPClient();
strRet=strRet + "WWW Server:" + TcpConnect(tcpc,host,80) + "<br"; //WWW 端口

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

tcpc = new TCPClient();
strRet=strRet + "FTP Server: " + TcpConnect(tcpc,host,21) + "<br"; //FTP 端口

tcpc = new TCPClient();
strRet=strRet + "Pop3 Server:" + TcpConnect(tcpc,host,110) + "<br"; //Pop 端口

tcpc = new TCPClient();
strRet=strRet + "代理 Server:" + TcpConnect(tcpc,host,1080) + "<br"; //Socket5 端口 代理服务器使用的端口

tcpc = new TCPClient();
strRet=strRet + "DNS Server:" + TcpConnect(tcpc,host,53) + "<br"; //DNS 端口
}
showmsg.Text=strRet;
}

String TcpConnect(TCPClient tcpc,String host,int port){
//这个函数的功能是 检查 指定的 host 的 port 是否在用?
String strRet="服务没有找到";
if(0 == tcpc.Connect(host,port)){
//联结服务器成功
strRet="正在运行";
}
return strRet;
}

</script
<html
<head
<titleWEB追捕</title
<SCRIPT LANGUAGE="JScript"
//这两个函数是功能是对 剪贴板 进行存取
function doufucopy() {
textRange = txtSearch.createTextRange();
textRange.execCommand("Copy");
}
function doufupaste() {
textRange = txtSearch.createTextRange();
textRange.execCommand("Paste");
}
--
</SCRIPT
</head
<body
<form id=testForm runat=server
<asp:DropDownList id="dropdown1" runat="server"
<asp:ListItem ID=ListItem1 Value=1查找域名</asp:ListItem
<asp:ListItem ID=ListItem2 Value=2查找IP</asp:ListItem
</asp:DropDownList
<asp:TextBox runat=server id=txtSearch /
<br
<asp:CheckBox id="CheckBox1" runat="server" Text="检查对方的机器" /
<br
<asp:Button runat=server id=do Text="查找" onClick=doClick /
</form
<asp:Label id=showmsg runat=server /
<input type=button value="复制" onclick="doufucopy();"
<input type=button value="粘贴" onclick="doufucopy();"
</body
</html

来源:https://www.tulaoshi.com/n/20160129/1491951.html

延伸阅读
在VB5.0具有面向对象的程序设计思想及可视化的编程方式,可开发出各种多媒体应用程序,颇得软件设计者青睐。笔者最近应用VB5.0编制了一程序,成功实现了“图文并茂”的屏幕效果,即:屏幕出现用户选定的一幅赏心悦目的图像,在图像下方有一行字幕缓缓地从屏幕右边向左边移动,全部文字移至左边消失后,从右边又平滑拖出字幕,字幕移动过程中既不...
---- 用过DreamWeaver的人都会发现DreamWeaver将每一个编辑的文件显示在任务栏上,并且用户任意关闭一窗口而不影响其他窗口,好象每一个窗口间没有关联,没有主窗口似的。但我们也能发现其实这些窗口间也有数据是共享的,如存盘的路径。 ---- 经过研究我发现其实这些窗口其实是属于同一程序的,并且实现方法也非常的简单。下面我用Inprise公...
类似于学习机上的指法练习程序,简单而实用#includetime.h main() { int x,y,i,j; unsigned int Timer; char ch; char key; char *kb[]={"Q W E R T Y U I O P [ ]","A S D F G H J K L ; '","Z X C V B N M , . /"}; long AllCounter=0,RightCounter=0,FalseCounter=0; ...
标签: PHP
  分析: 我们利用一个文件(data.dat)来存储投票栏目.每个栏目占据一行. 这样一来,便可随意加入和减去想要投票的栏目. 我们再利用一个文件(votes.dat)来存储我们的投票结果. 并纪录最近一位投票者的IP地址,简单的防止一人多投. 所以,您应该在该程序目录下自行建立两个文件data.dat和votes.dat 程序运行过程部分 程序运行时应该...
/***********简单的时钟程序,界面不是很美观,您可以根据自己的爱好加以修改,如给表盘加上刻度,将指针改为其它外形等*/#includegraphics.h #includemath.h #includedos.h#define PI 3.1415926 #define x0 320    /*定义钟表中心坐标*/ #define y0 240void DrawClock(int x,int y,int color)   /*画...

经验教程

153

收藏

52
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部