动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
电脑书籍下载:程序设计书籍 | 数据库教程书籍 | 平面与多媒体书籍 | 网络通讯书籍 | 系统管理书籍 | 网络安全书籍 | 认证考试书籍
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP实例
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ ASP实例 ]的信息



本月文章推荐
.ASP进阶之文章在线管理更新(11).
.一个免费的简单聊天室源代码.
.用ASP开发试题库与在线考试系统(.
.ASP 编程中20个非常有用的例子.
.使用ASP建设私人搜索引擎.
.介绍一个制作下拉菜单完全不同的.
.数字和字母组合并生成图片的验证.
.用asp.net写的论坛程序.
.构建免受FSO组件威胁虚拟主机 .
.用ASP实现电子贺卡.
.嵌入式Web视频点播系统实现方法.
.实例演练ASP+XML编程(1).
.1栏分页显示(附显示的形式[1][2.
.在线用表单建立文件夹.
.图片数据的存和取示例.
.制作我们自己的Ebay(拍卖系统)(1).
.根据IP地址自动判断转向分站的代.
.使用InstallShield制作ASP安装程.
.ASP.NET发送ICQ信息DIY(1).
.用ASP、VB和XML建立互联网应用程.

一个用c#写的扫描asp源码漏洞的应用程序

发表日期:2001-1-16 |


这儿就是昨天说的那个程序主要部分的源代码,如果要全部代码请到我的主页去下载。
贴不开,分两次。

//--------------------------------------------------------------------------
//
// file name  :  form1.cs
//
// description : 主form
//
// date:         2001/1/3
//
// author :      bigeagle@163.net
//               http://bigeagle.yeah.net
//
// history :     2000/1/3 version 0.9
//
// ToDo:         translate:f 方法似乎有问题,等得到有关http协议的资料在修改
//
//-------------------------------------------------------------------------


namespace findbug
{
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.WinForms;
    using System.Data;
    using System.Net ;
    using System.IO ;
    using System.Text ;
    using System.Net.Sockets ;

    /// <summary>
    ///    Summary description for Form1.
    /// </summary>
    public class Form1 : System.WinForms.Form
    {
        /// <summary>
        ///    Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components;
        private System.WinForms.StatusBar barStatus;
        private System.WinForms.Button btnClear;
        private System.WinForms.TextBox txtResult;
        private System.WinForms.Button btnGo;
        private System.WinForms.Label label3;
        private System.WinForms.ComboBox cboMethod;
        private System.WinForms.TextBox txtFileName;
        private System.WinForms.Label label2;
        private System.WinForms.TextBox txtServer;
        private System.WinForms.Label label1;
        private System.WinForms.MenuItem mnuExit;
        private System.WinForms.MenuItem menuItem1;
        private System.WinForms.MenuItem mnuNew;
        private System.WinForms.MenuItem mnuAbount;
        private System.WinForms.MenuItem mnuHelp;
        private System.WinForms.MenuItem mnuSave;
        private System.WinForms.MenuItem mnuFile;
        private System.WinForms.MainMenu mainMenu1;

        public Form1()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //初始化窗口
            InitForm() ;
            
        }


        public override void Dispose()
        {
            base.Dispose();
            components.Dispose();
        }

        //初始化控件
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container ();
            this.mnuSave = new System.WinForms.MenuItem ();
            this.mnuNew = new System.WinForms.MenuItem ();
            this.cboMethod = new System.WinForms.ComboBox ();
            this.btnGo = new System.WinForms.Button ();
            this.menuItem1 = new System.WinForms.MenuItem ();
            this.mnuFile = new System.WinForms.MenuItem ();
            this.txtServer = new System.WinForms.TextBox ();
            this.mnuHelp = new System.WinForms.MenuItem ();
            this.btnClear = new System.WinForms.Button ();
            this.label2 = new System.WinForms.Label ();
            this.label1 = new System.WinForms.Label ();
            this.mnuAbount = new System.WinForms.MenuItem ();
            this.barStatus = new System.WinForms.StatusBar ();
            this.mainMenu1 = new System.WinForms.MainMenu ();
            this.mnuExit = new System.WinForms.MenuItem ();
            this.txtResult = new System.WinForms.TextBox ();
            this.label3 = new System.WinForms.Label ();
            this.txtFileName = new System.WinForms.TextBox ();
            mnuSave.Text = "保存";
            mnuSave.Shortcut = System.WinForms.Shortcut.CtrlS;
            mnuSave.Index = 1;
            mnuNew.Text = "新建";
            mnuNew.Shortcut = System.WinForms.Shortcut.F2;
            mnuNew.Index = 0;
            mnuNew.Click += new System.EventHandler (this.mnuNew_Click);
            cboMethod.Location = new System.Drawing.Point (96, 56);
            cboMethod.Size = new System.Drawing.Size (121, 20);
            cboMethod.TabIndex = 4;
            btnGo.Location = new System.Drawing.Point (296, 56);
            btnGo.Size = new System.Drawing.Size (75, 23);
            btnGo.TabIndex = 6;
            btnGo.Text = "让我看";
            btnGo.Click += new System.EventHandler (this.btnGo_Click);
            menuItem1.Text = "-";
            menuItem1.Index = 2;
            mnuFile.Text = "文件(&F)";
            mnuFile.Index = 0;
            mnuFile.MenuItems.All = new System.WinForms.MenuItem[4] {this.mnuNew, this.mnuSave, this.menuItem1, this.mnuExit};
            txtServer.Location = new System.Drawing.Point (96, 16);
            txtServer.Text = "http://";
            txtServer.TabIndex = 1;
            txtServer.Size = new System.Drawing.Size (100, 21);
            mnuHelp.Text = "帮助(&H)";
            mnuHelp.Index = 1;
            mnuHelp.MenuItems.All = new System.WinForms.MenuItem[1] {this.mnuAbount};
            btnClear.Location = new System.Drawing.Point (408, 56);
            btnClear.Size = new System.Drawing.Size (75, 23);
            btnClear.TabIndex = 8;
            btnClear.Text = "清空";
            btnClear.Click += new System.EventHandler (this.btnClear_Click);
            label2.Location = new System.Drawing.Point (224, 16);
            label2.Text = "文件名:";
            label2.Size = new System.Drawing.Size (72, 16);
            label2.Font = new System.Drawing.Font ("宋体", 12);
            label2.TabIndex = 2;
            label1.Location = new System.Drawing.Point (24, 21);
            label1.Text = "主机名:";
            label1.Size = new System.Drawing.Size (72, 16);
            label1.Font = new System.Drawing.Font ("宋体", 12);
            label1.TabIndex = 0;
            mnuAbount.Text = "关于";
            mnuAbount.Shortcut = System.WinForms.Shortcut.CtrlA;
            mnuAbount.Index = 0;
            mnuAbount.Click += new System.EventHandler (this.mnuAbount_Click);
            barStatus.BackColor = System.Drawing.SystemColors.Control;
            barStatus.Location = new System.Drawing.Point (0, 423);
            barStatus.Size = new System.Drawing.Size (568, 18);
            barStatus.TabIndex = 9;
            barStatus.Text = "就绪";
            mainMenu1.MenuItems.All = new System.WinForms.MenuItem[2] {this.mnuFile, this.mnuHelp};
            mnuExit.Text = "退出(&X)";
            mnuExit.Shortcut = System.WinForms.Shortcut.AltF4;
            mnuExit.Index = 3;
            mnuExit.Click += new System.EventHandler (this.mnuExit_Click);
            txtResult.Location = new System.Drawing.Point (16, 96);
            txtResult.Multiline = true;
            txtResult.ScrollBars = System.WinForms.ScrollBars.Both;
            txtResult.TabIndex = 7;
            txtResult.Size = new System.Drawing.Size (536, 312);
            txtResult.Visible = false;
            label3.Location = new System.Drawing.Point (32, 56);
            label3.Text = "使用";
            label3.Size = new System.Drawing.Size (56, 16);
            label3.Font = new System.Drawing.Font ("宋体", 12);
            label3.TabIndex = 5;
            txtFileName.Location = new System.Drawing.Point (304, 16);
            txtFileName.TabIndex = 3;
            txtFileName.Size = new System.Drawing.Size (232, 21);
            this.Text = "ViewASPCode";
            this.StartPosition = System.WinForms.FormStartPosition.CenterScreen;
            this.AutoScaleBaseSize = new System.Drawing.Size (6, 14);
            this.Menu = this.mainMenu1;
            this.ClientSize = new System.Drawing.Size (568, 441);
            this.Controls.Add (this.barStatus);
            this.Controls.Add (this.btnClear);
            this.Controls.Add (this.txtResult);
            this.Controls.Add (this.btnGo);
            this.Controls.Add (this.label3);
            this.Controls.Add (this.cboMethod);
            this.Controls.Add (this.txtFileName);
            this.Controls.Add (this.label2);
            this.Controls.Add (this.txtServer);
            this.Controls.Add (this.label1);
        }

        //菜单项about点击,显示about对话框
        protected void mnuAbount_Click (object sender, System.EventArgs e)
        {
            about objAbout = new about() ;
            objAbout.ShowDialog(this) ;
            objAbout.Dispose() ;
        }

        //初始化窗口
        private void InitForm()
        {
            this.cboMethod.Items.Add("直接读取") ;
            this.cboMethod.Items.Add(".") ;
            this.cboMethod.Items.Add("%81") ;
            this.cboMethod.Items.Add("::DATA") ;
            this.cboMethod.Items.Add("%2e") ;
            this.cboMethod.Items.Add("%2e%41sp") ;
            this.cboMethod.Items.Add("+.htr") ;
            this.cboMethod.Items.Add("\\") ;
            this.cboMethod.Items.Add("longhtr") ;
            this.cboMethod.Items.Add(".bak") ;
            this.cboMethod.Items.Add("codebrws.asp") ;
            this.cboMethod.Items.Add("showcode.asp") ;
            this.cboMethod.Items.Add("null.htw") ;
            this.cboMethod.Items.Add("qfullhit.htw") ;
            this.cboMethod.Items.Add("qsumrhit.htw") ;
            this.cboMethod.Items.Add("query.idq") ;
            this.cboMethod.Items.Add("search/qfullhit.htw") ;
            this.cboMethod.Items.Add("search/qsumrhit.htw") ;
            this.cboMethod.Items.Add("iirturnh.htw") ;
            this.cboMethod.Items.Add(".htw") ;
            this.cboMethod.Items.Add("Translate:f") ;

            this.cboMethod.SelectedIndex = 0 ;
        }

        //新建
        protected void mnuNew_Click (object sender, System.EventArgs e)
        {
            this.txtServer.Text   = "http://" ;
            this.txtFileName.Text = "" ;
            this.txtResult.Text   = "" ;
        }

        //清除结果
        protected void btnClear_Click (object sender, System.EventArgs e)
        {
            this.txtResult.Text = "" ;
        }

上一篇:查看主机的内存使用情况 人气:11021
下一篇:一个用c#写的扫描asp源码漏洞的应用程序(续) 人气:8929
浏览全部的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-7-23 Menalto Gallery v2.3 Rc1 多国语
2008-7-23 深度学习网址导航系统 v2.6.1
2008-7-23 因特达crm2008客户关系管理系统
2008-7-23 60度 CMS v1.0 Build 080723
2008-7-23 幻影动漫网视频系统(Ppdong) v1.
2008-7-23 好易祝福墙 2008
2008-7-23 APJE私服发布系统 v2.0 PHP版
2008-7-23 毕业论文在线指导系统源码
2008-7-23 Jacky法律在线网站源码
2008-7-19 UltraEdit 简体中文增强版 14.10
2008-7-19 CentOS 5.2 i386 LiveCD
2008-7-19 Snapture多功能相机 v1.4
2008-7-19 iAcces中文输入法 v1.0Build016
2008-7-19 Cookbook烹饪秘籍 v2.5
2008-7-19 苹果专用DVD转换工具 v1.1.59汉化
2008-7-19 Modem修复软件ZiPhone修改版04.0
2008-7-19 AgileMessenger即时通讯工具美化
2008-7-19 Sketches画图软件 v0.7b6破解版


  发表评论
姓 名: 验证码:
内 容:
[ 汉字翻译拼音 ] [ 广告代码 ] [ 符号对照表 ] [ 进制转换 ] [ 经典小工具 ] [ 个税计算 ] [ 汉字简繁转换 ] [ 普通单位换算 ] [ 公制单位换算 ]
[ 生辰老黄历 ] [ 国内电话区号 ] [ 国家代码与域名缩写 ] [ 文字加密解密 ] [ 健康查询 ] [ 万年历 ] [ 手机号码查询 ] [ ip搜索 ] [ Google PR查询 ]
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵