• 大小: 0.23M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 语言: C#
  • 标签: scanner  can  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Threading;

namespace PortScanner
{
    public partial class MainForm : Form
    {
        //define List to keep hostnames data
        List hostlist = new List();
        
        //define protocol type (tcp/udp)
        private string proto_type;

        public MainForm()
        {
            InitializeComponent();
        }

        //Scan button action
        private void btnStartScan_Click(object sender EventArgs e)
        {
            //clear text box
            richTxtScreen.Clear();
            //parse port number String -> Int
            int portNumber = Int32.Parse(txtPortNumber.Text);
            //protocol selection
            if (rdnBtnTCP.Checked)
            {
                proto_type = “tcp“;
           

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     51712  2019-11-06 11:05  PortScanner-master (8)\PortScanner-master\.vs\PortScanner\v16\.suo

     文件          0  2019-11-06 11:05  PortScanner-master (8)\PortScanner-master\.vs\PortScanner\v16\Server\sqlite3\db.lock

     文件     573440  2019-11-06 11:05  PortScanner-master (8)\PortScanner-master\.vs\PortScanner\v16\Server\sqlite3\storage.ide

    .......      2710  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\.gitignore

    .......       182  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\App.config

    .......     13312  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Debug\PortScanner.exe

    .......       182  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Debug\PortScanner.exe.config

    .......     32256  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Debug\PortScanner.pdb

    .......     23168  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Debug\PortScanner.vshost.exe

    .......       182  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Debug\PortScanner.vshost.exe.config

    .......       479  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Debug\PortScanner.vshost.exe.manifest

    .......     12800  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Release\PortScanner.exe

    .......       182  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Release\PortScanner.exe.config

    .......     24064  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Release\PortScanner.pdb

    .......     23168  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Release\PortScanner.vshost.exe

    .......       182  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Release\PortScanner.vshost.exe.config

    .......       479  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\bin\Release\PortScanner.vshost.exe.manifest

    .......      3062  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\Form1.cs

    .......      9220  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\Form1.Designer.cs

    .......      5868  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\Form1.resx

    .......      1561  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\Host.cs

    .......      1609  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\DesignTimeResolveAssemblyReferences.cache

    .......      7087  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

    .......       981  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\PortScanner.csproj.FileListAbsolute.txt

    .......       977  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\PortScanner.csproj.GenerateResource.Cache

    .......      2211  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\PortScanner.csprojResolveAssemblyReference.cache

    .......     13312  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\PortScanner.exe

    .......       180  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\PortScanner.MainForm.resources

    .......     32256  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\PortScanner.pdb

    .......       180  2014-10-12 07:10  PortScanner-master (8)\PortScanner-master\PortScanner\obj\Debug\PortScanner.Properties.Resources.resources

............此处省略46个文件信息

评论

共有 条评论