一个用c#写的扫描asp源码漏洞的应用程式_c#应用
2008-02-23 05:46:00来源:互联网 阅读 ()
这儿就是昨天说的那个程式主要部分的源代码,假如要全部代码请到我的主页去下载。
贴不开,分两次。
//--------------------------------------------------------------------------
//
// 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;
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- 一个用c#写的扫描asp源码漏洞的应用程式(续)_c#教程 2008-02-23
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash