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

2016-01-29 13:55 47 1 收藏

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

【 tulaoshi.com - ASP.NET 】

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

//--------------------------------------------------------------------------
//
// 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();

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

//初始化窗口
InitForm() ;

}

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


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 {this.mnuNew, this.mnuSave, this.menuItem1, this.mnuExit};
txtServer.Location = new System.Drawing.Point

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

延伸阅读
简介 Microsoft近期推出一种用于生成集成应用程序的新平台——Microsoft .NET框架。.NET 框架允许开发人员使用任何编程语言迅速生成和部署Web 服务和应用程序。Microsoft Intermediate Language (MSIL)和实时 (JIT )编译器使这种不依赖语言的框架得以实现。 与.NET框架同时面世的还有一种新的编程语言C#(读“C sharp”)。...
本文主要介绍用C# Builder通过ODBC访问数据。并将数据导出到Excel,下面以C# Builder Enterprise+Microsoft Access 2000+Microsoft Excel 2000为例。 1.建立数据库mydb,内建表:联系人 联系人ID 名字 姓氏 地址 城市 省份 [ 相关贴图 ] 2.建立ODBC(mydb) 3.编写程序 点击菜单 Fil...
这里我给大家提供一个很实用的例子,就是在线发送ICQ信息。想一想我们在网页上直接给朋友发送ICQ信息,那是多么美妙的事情啊。呵呵,在吹牛啊,其实ICQ本来就有在线发送的代码,不过,这些都是AOL给你写好的代码,多没有意思啊。还是自已写的比较好,呵呵,废话少说,大家来看代码吧 <br <br <% @ Page Language="C#" % <br <% @ ...
VS.net本身并不提供智能设备(如PDA)应用程序的柱形图,开发智能设备应用程序时VS.net并不象Window应用程序那样提供用户自定义控件。在本文中,您将创建一个以柱形图显示的 PDAChartControl自定义控件。还将创建一个使用此 PDAChartControl自定义控件的智能设备应用程序。为了完成开发工作,您将执行这些过程: 创建该 PDAChartContro...
Delphi 2005 被Broland成为windows平台上的最终的完整解决方案。 Delphi 2005 集成了Delphi , C # , Microsoft .NET Framework and Win32 ,支持图形用户接口( GUI ) , Web开发, 数据库、富客户端应用程序( rich-client applications )等多种开发开发语言,同时还集成了软件生命周期管理( ALM )功能及开发者生产力促进功能(即RAD)。在...

经验教程

242

收藏

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