home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / ipscan1a / frmscan.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-28  |  77.0 KB  |  2,039 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
  4. Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#2.0#0"; "THREED20.OCX"
  5. Begin VB.Form frmScan 
  6.    BorderStyle     =   1  'Fixed Single
  7.    Caption         =   " - Excessive Force IP Scanner - G0DLiKE -"
  8.    ClientHeight    =   3390
  9.    ClientLeft      =   1470
  10.    ClientTop       =   1500
  11.    ClientWidth     =   5070
  12.    Icon            =   "frmScan.frx":0000
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    ScaleHeight     =   3390
  16.    ScaleWidth      =   5070
  17.    Begin MSWinsockLib.Winsock Connector1 
  18.       Left            =   120
  19.       Top             =   3480
  20.       _ExtentX        =   741
  21.       _ExtentY        =   741
  22.       _Version        =   393216
  23.    End
  24.    Begin Threed.SSFrame fraScan 
  25.       Height          =   3375
  26.       Left            =   0
  27.       TabIndex        =   30
  28.       Top             =   0
  29.       Width           =   5055
  30.       _ExtentX        =   8916
  31.       _ExtentY        =   5953
  32.       _Version        =   131074
  33.       Begin VB.Frame fraTab1 
  34.          BorderStyle     =   0  'None
  35.          Height          =   2535
  36.          Left            =   240
  37.          TabIndex        =   57
  38.          Top             =   600
  39.          Width           =   4575
  40.          Begin VB.HScrollBar scrConTime1 
  41.             Height          =   255
  42.             LargeChange     =   5
  43.             Left            =   0
  44.             Max             =   60
  45.             Min             =   1
  46.             MouseIcon       =   "frmScan.frx":08CA
  47.             MousePointer    =   99  'Custom
  48.             TabIndex        =   0
  49.             Top             =   600
  50.             Value           =   1
  51.             Width           =   1455
  52.          End
  53.          Begin VB.TextBox txtRHost1 
  54.             BeginProperty Font 
  55.                Name            =   "Arial"
  56.                Size            =   8.25
  57.                Charset         =   0
  58.                Weight          =   400
  59.                Underline       =   0   'False
  60.                Italic          =   0   'False
  61.                Strikethrough   =   0   'False
  62.             EndProperty
  63.             Height          =   285
  64.             Left            =   1560
  65.             TabIndex        =   3
  66.             Top             =   1200
  67.             Width           =   1455
  68.          End
  69.          Begin VB.HScrollBar scrPause1 
  70.             Height          =   255
  71.             LargeChange     =   5
  72.             Left            =   0
  73.             Max             =   60
  74.             Min             =   1
  75.             MouseIcon       =   "frmScan.frx":0A1C
  76.             MousePointer    =   99  'Custom
  77.             TabIndex        =   1
  78.             Top             =   1560
  79.             Value           =   1
  80.             Width           =   1455
  81.          End
  82.          Begin VB.TextBox txtPause1 
  83.             Alignment       =   2  'Center
  84.             BeginProperty Font 
  85.                Name            =   "Arial"
  86.                Size            =   8.25
  87.                Charset         =   0
  88.                Weight          =   400
  89.                Underline       =   0   'False
  90.                Italic          =   0   'False
  91.                Strikethrough   =   0   'False
  92.             EndProperty
  93.             Height          =   285
  94.             Left            =   0
  95.             Locked          =   -1  'True
  96.             MousePointer    =   1  'Arrow
  97.             TabIndex        =   60
  98.             TabStop         =   0   'False
  99.             Text            =   "1 second"
  100.             ToolTipText     =   "Indicates the number of seconds to pause between ports."
  101.             Top             =   1200
  102.             Width           =   1455
  103.          End
  104.          Begin VB.HScrollBar scrKeep1 
  105.             Height          =   255
  106.             LargeChange     =   5
  107.             Left            =   1560
  108.             Max             =   60
  109.             MouseIcon       =   "frmScan.frx":0B6E
  110.             MousePointer    =   99  'Custom
  111.             TabIndex        =   2
  112.             Top             =   600
  113.             Value           =   1
  114.             Width           =   1455
  115.          End
  116.          Begin VB.TextBox txtKeep1 
  117.             Alignment       =   2  'Center
  118.             BeginProperty Font 
  119.                Name            =   "Arial"
  120.                Size            =   8.25
  121.                Charset         =   0
  122.                Weight          =   400
  123.                Underline       =   0   'False
  124.                Italic          =   0   'False
  125.                Strikethrough   =   0   'False
  126.             EndProperty
  127.             Height          =   285
  128.             Left            =   1560
  129.             Locked          =   -1  'True
  130.             MousePointer    =   1  'Arrow
  131.             TabIndex        =   59
  132.             TabStop         =   0   'False
  133.             Text            =   "1 second"
  134.             ToolTipText     =   "Indicates the number of seconds to stay connected to open ports."
  135.             Top             =   240
  136.             Width           =   1455
  137.          End
  138.          Begin VB.TextBox txtConTime1 
  139.             Alignment       =   2  'Center
  140.             BeginProperty Font 
  141.                Name            =   "Arial"
  142.                Size            =   8.25
  143.                Charset         =   0
  144.                Weight          =   400
  145.                Underline       =   0   'False
  146.                Italic          =   0   'False
  147.                Strikethrough   =   0   'False
  148.             EndProperty
  149.             Height          =   285
  150.             Left            =   0
  151.             Locked          =   -1  'True
  152.             MousePointer    =   1  'Arrow
  153.             TabIndex        =   58
  154.             TabStop         =   0   'False
  155.             Text            =   "1 second"
  156.             ToolTipText     =   "Indicates the number of seconds to attempt connection."
  157.             Top             =   240
  158.             Width           =   1455
  159.          End
  160.          Begin VB.ListBox lstOpen1 
  161.             BeginProperty Font 
  162.                Name            =   "Arial"
  163.                Size            =   8.25
  164.                Charset         =   0
  165.                Weight          =   400
  166.                Underline       =   0   'False
  167.                Italic          =   0   'False
  168.                Strikethrough   =   0   'False
  169.             EndProperty
  170.             Height          =   1530
  171.             Left            =   3120
  172.             MouseIcon       =   "frmScan.frx":0CC0
  173.             MousePointer    =   99  'Custom
  174.             Sorted          =   -1  'True
  175.             TabIndex        =   4
  176.             Top             =   240
  177.             Width           =   1455
  178.          End
  179.          Begin Threed.SSFrame fraButtons1 
  180.             Height          =   615
  181.             Left            =   0
  182.             TabIndex        =   61
  183.             Top             =   1920
  184.             Width           =   4575
  185.             _ExtentX        =   8070
  186.             _ExtentY        =   1085
  187.             _Version        =   131074
  188.             Begin VB.CommandButton btnReset1 
  189.                Caption         =   "RESET"
  190.                BeginProperty Font 
  191.                   Name            =   "Arial"
  192.                   Size            =   8.25
  193.                   Charset         =   0
  194.                   Weight          =   700
  195.                   Underline       =   0   'False
  196.                   Italic          =   0   'False
  197.                   Strikethrough   =   0   'False
  198.                EndProperty
  199.                Height          =   375
  200.                Left            =   3120
  201.                MouseIcon       =   "frmScan.frx":0E12
  202.                MousePointer    =   99  'Custom
  203.                TabIndex        =   7
  204.                ToolTipText     =   "Click here to reset the scanner settings."
  205.                Top             =   120
  206.                Width           =   1335
  207.             End
  208.             Begin VB.CommandButton btnStop1 
  209.                Appearance      =   0  'Flat
  210.                Caption         =   "STOP"
  211.                Enabled         =   0   'False
  212.                BeginProperty Font 
  213.                   Name            =   "Arial"
  214.                   Size            =   8.25
  215.                   Charset         =   0
  216.                   Weight          =   700
  217.                   Underline       =   0   'False
  218.                   Italic          =   0   'False
  219.                   Strikethrough   =   0   'False
  220.                EndProperty
  221.                Height          =   375
  222.                Left            =   1560
  223.                MouseIcon       =   "frmScan.frx":0F64
  224.                MousePointer    =   99  'Custom
  225.                TabIndex        =   6
  226.                ToolTipText     =   "Click here to stop scanning."
  227.                Top             =   120
  228.                Width           =   1455
  229.             End
  230.             Begin VB.CommandButton btnScan1 
  231.                Caption         =   "SCAN"
  232.                BeginProperty Font 
  233.                   Name            =   "Arial"
  234.                   Size            =   8.25
  235.                   Charset         =   0
  236.                   Weight          =   700
  237.                   Underline       =   0   'False
  238.                   Italic          =   0   'False
  239.                   Strikethrough   =   0   'False
  240.                EndProperty
  241.                Height          =   375
  242.                Left            =   120
  243.                MouseIcon       =   "frmScan.frx":10B6
  244.                MousePointer    =   99  'Custom
  245.                TabIndex        =   5
  246.                ToolTipText     =   "Click here to begin scanning."
  247.                Top             =   120
  248.                Width           =   1335
  249.             End
  250.          End
  251.          Begin VB.Label lblOpen1 
  252.             AutoSize        =   -1  'True
  253.             BackStyle       =   0  'Transparent
  254.             Caption         =   "PORTS OPEN :"
  255.             BeginProperty Font 
  256.                Name            =   "Arial"
  257.                Size            =   8.25
  258.                Charset         =   0
  259.                Weight          =   700
  260.                Underline       =   0   'False
  261.                Italic          =   0   'False
  262.                Strikethrough   =   0   'False
  263.             EndProperty
  264.             ForeColor       =   &H00FF0000&
  265.             Height          =   210
  266.             Left            =   3120
  267.             TabIndex        =   67
  268.             Top             =   0
  269.             Width           =   1095
  270.          End
  271.          Begin VB.Label lblStatus1 
  272.             Alignment       =   2  'Center
  273.             BackStyle       =   0  'Transparent
  274.             BorderStyle     =   1  'Fixed Single
  275.             Caption         =   "IDLE..."
  276.             BeginProperty Font 
  277.                Name            =   "Arial"
  278.                Size            =   8.25
  279.                Charset         =   0
  280.                Weight          =   400
  281.                Underline       =   0   'False
  282.                Italic          =   0   'False
  283.                Strikethrough   =   0   'False
  284.             EndProperty
  285.             Height          =   255
  286.             Left            =   1560
  287.             TabIndex        =   66
  288.             Top             =   1560
  289.             Width           =   1455
  290.          End
  291.          Begin VB.Label lblRHost1 
  292.             AutoSize        =   -1  'True
  293.             BackStyle       =   0  'Transparent
  294.             Caption         =   "REMOTE HOST :"
  295.             BeginProperty Font 
  296.                Name            =   "Arial"
  297.                Size            =   8.25
  298.                Charset         =   0
  299.                Weight          =   700
  300.                Underline       =   0   'False
  301.                Italic          =   0   'False
  302.                Strikethrough   =   0   'False
  303.             EndProperty
  304.             ForeColor       =   &H00FF0000&
  305.             Height          =   210
  306.             Left            =   1560
  307.             TabIndex        =   65
  308.             Top             =   960
  309.             Width           =   1230
  310.          End
  311.          Begin VB.Label lblPause1 
  312.             AutoSize        =   -1  'True
  313.             BackStyle       =   0  'Transparent
  314.             Caption         =   "PAUSE :"
  315.             BeginProperty Font 
  316.                Name            =   "Arial"
  317.                Size            =   8.25
  318.                Charset         =   0
  319.                Weight          =   700
  320.                Underline       =   0   'False
  321.                Italic          =   0   'False
  322.                Strikethrough   =   0   'False
  323.             EndProperty
  324.             ForeColor       =   &H00FF0000&
  325.             Height          =   210
  326.             Left            =   0
  327.             TabIndex        =   64
  328.             Top             =   960
  329.             Width           =   615
  330.          End
  331.          Begin VB.Label lblKeep1 
  332.             AutoSize        =   -1  'True
  333.             BackStyle       =   0  'Transparent
  334.             Caption         =   "KEEP OPEN :"
  335.             BeginProperty Font 
  336.                Name            =   "Arial"
  337.                Size            =   8.25
  338.                Charset         =   0
  339.                Weight          =   700
  340.                Underline       =   0   'False
  341.                Italic          =   0   'False
  342.                Strikethrough   =   0   'False
  343.             EndProperty
  344.             ForeColor       =   &H00FF0000&
  345.             Height          =   210
  346.             Left            =   1560
  347.             TabIndex        =   63
  348.             Top             =   0
  349.             Width           =   945
  350.          End
  351.          Begin VB.Label lblConTime1 
  352.             AutoSize        =   -1  'True
  353.             BackStyle       =   0  'Transparent
  354.             Caption         =   "CONNECT TIME :"
  355.             BeginProperty Font 
  356.                Name            =   "Arial"
  357.                Size            =   8.25
  358.                Charset         =   0
  359.                Weight          =   700
  360.                Underline       =   0   'False
  361.                Italic          =   0   'False
  362.                Strikethrough   =   0   'False
  363.             EndProperty
  364.             ForeColor       =   &H00FF0000&
  365.             Height          =   210
  366.             Left            =   0
  367.             TabIndex        =   62
  368.             Top             =   0
  369.             Width           =   1290
  370.          End
  371.       End
  372.       Begin VB.Frame fraTab3 
  373.          BorderStyle     =   0  'None
  374.          Height          =   2535
  375.          Left            =   240
  376.          TabIndex        =   32
  377.          Top             =   600
  378.          Visible         =   0   'False
  379.          Width           =   4575
  380.          Begin VB.HScrollBar scrKeep3 
  381.             Height          =   255
  382.             LargeChange     =   5
  383.             Left            =   0
  384.             Max             =   60
  385.             MouseIcon       =   "frmScan.frx":1208
  386.             MousePointer    =   99  'Custom
  387.             TabIndex        =   44
  388.             Top             =   1560
  389.             Value           =   1
  390.             Width           =   1455
  391.          End
  392.          Begin VB.HScrollBar scrStart 
  393.             Height          =   255
  394.             LargeChange     =   50
  395.             Left            =   0
  396.             Min             =   1
  397.             MouseIcon       =   "frmScan.frx":135A
  398.             MousePointer    =   99  'Custom
  399.             TabIndex        =   43
  400.             Top             =   600
  401.             Value           =   1
  402.             Width           =   735
  403.          End
  404.          Begin VB.HScrollBar scrPause3 
  405.             Height          =   255
  406.             LargeChange     =   5
  407.             Left            =   1560
  408.             Max             =   60
  409.             Min             =   1
  410.             MouseIcon       =   "frmScan.frx":14AC
  411.             MousePointer    =   99  'Custom
  412.             TabIndex        =   42
  413.             Top             =   1560
  414.             Value           =   1
  415.             Width           =   1455
  416.          End
  417.          Begin VB.TextBox txtPause3 
  418.             Alignment       =   2  'Center
  419.             BeginProperty Font 
  420.                Name            =   "Arial"
  421.                Size            =   8.25
  422.                Charset         =   0
  423.                Weight          =   400
  424.                Underline       =   0   'False
  425.                Italic          =   0   'False
  426.                Strikethrough   =   0   'False
  427.             EndProperty
  428.             Height          =   285
  429.             Left            =   1560
  430.             Locked          =   -1  'True
  431.             MousePointer    =   1  'Arrow
  432.             TabIndex        =   41
  433.             TabStop         =   0   'False
  434.             Text            =   "1 second"
  435.             ToolTipText     =   "Indicates the number of seconds to pause between ports."
  436.             Top             =   1200
  437.             Width           =   1455
  438.          End
  439.          Begin VB.HScrollBar scrEnd 
  440.             Height          =   255
  441.             LargeChange     =   50
  442.             Left            =   840
  443.             Min             =   1
  444.             MouseIcon       =   "frmScan.frx":15FE
  445.             MousePointer    =   99  'Custom
  446.             TabIndex        =   40
  447.             Top             =   600
  448.             Value           =   1
  449.             Width           =   735
  450.          End
  451.          Begin VB.TextBox txtEnd 
  452.             Alignment       =   2  'Center
  453.             BeginProperty Font 
  454.                Name            =   "Arial"
  455.                Size            =   8.25
  456.                Charset         =   0
  457.                Weight          =   400
  458.                Underline       =   0   'False
  459.                Italic          =   0   'False
  460.                Strikethrough   =   0   'False
  461.             EndProperty
  462.             Height          =   285
  463.             Left            =   840
  464.             Locked          =   -1  'True
  465.             MousePointer    =   1  'Arrow
  466.             TabIndex        =   39
  467.             TabStop         =   0   'False
  468.             Text            =   "1"
  469.             ToolTipText     =   "Indicates the port at which to end your scan."
  470.             Top             =   240
  471.             Width           =   735
  472.          End
  473.          Begin VB.TextBox txtStart 
  474.             Alignment       =   2  'Center
  475.             BeginProperty Font 
  476.                Name            =   "Arial"
  477.                Size            =   8.25
  478.                Charset         =   0
  479.                Weight          =   400
  480.                Underline       =   0   'False
  481.                Italic          =   0   'False
  482.                Strikethrough   =   0   'False
  483.             EndProperty
  484.             Height          =   285
  485.             Left            =   0
  486.             Locked          =   -1  'True
  487.             MousePointer    =   1  'Arrow
  488.             TabIndex        =   38
  489.             TabStop         =   0   'False
  490.             Text            =   "1"
  491.             ToolTipText     =   "Indicates the port at which to start your scan."
  492.             Top             =   240
  493.             Width           =   735
  494.          End
  495.          Begin VB.HScrollBar scrConTime3 
  496.             Height          =   255
  497.             LargeChange     =   5
  498.             Left            =   1680
  499.             Max             =   60
  500.             Min             =   1
  501.             MouseIcon       =   "frmScan.frx":1750
  502.             MousePointer    =   99  'Custom
  503.             TabIndex        =   37
  504.             Top             =   600
  505.             Value           =   1
  506.             Width           =   1335
  507.          End
  508.          Begin VB.TextBox txtConTime3 
  509.             Alignment       =   2  'Center
  510.             BeginProperty Font 
  511.                Name            =   "Arial"
  512.                Size            =   8.25
  513.                Charset         =   0
  514.                Weight          =   400
  515.                Underline       =   0   'False
  516.                Italic          =   0   'False
  517.                Strikethrough   =   0   'False
  518.             EndProperty
  519.             Height          =   285
  520.             Left            =   1680
  521.             Locked          =   -1  'True
  522.             MousePointer    =   1  'Arrow
  523.             TabIndex        =   36
  524.             TabStop         =   0   'False
  525.             Text            =   "1 second"
  526.             ToolTipText     =   "Indicates the number of seconds to attempt connection."
  527.             Top             =   240
  528.             Width           =   1335
  529.          End
  530.          Begin VB.TextBox txtKeep3 
  531.             Alignment       =   2  'Center
  532.             BeginProperty Font 
  533.                Name            =   "Arial"
  534.                Size            =   8.25
  535.                Charset         =   0
  536.                Weight          =   400
  537.                Underline       =   0   'False
  538.                Italic          =   0   'False
  539.                Strikethrough   =   0   'False
  540.             EndProperty
  541.             Height          =   285
  542.             Left            =   0
  543.             Locked          =   -1  'True
  544.             MousePointer    =   1  'Arrow
  545.             TabIndex        =   35
  546.             TabStop         =   0   'False
  547.             Text            =   "1 second"
  548.             ToolTipText     =   "Indicates the number of seconds to stay connected to open ports."
  549.             Top             =   1200
  550.             Width           =   1455
  551.          End
  552.          Begin VB.TextBox txtRHost3 
  553.             BeginProperty Font 
  554.                Name            =   "Arial"
  555.                Size            =   8.25
  556.                Charset         =   0
  557.                Weight          =   400
  558.                Underline       =   0   'False
  559.                Italic          =   0   'False
  560.                Strikethrough   =   0   'False
  561.             EndProperty
  562.             Height          =   285
  563.             Left            =   3120
  564.             TabIndex        =   34
  565.             Top             =   1200
  566.             Width           =   1455
  567.          End
  568.          Begin VB.ListBox lstOpen2 
  569.             BeginProperty Font 
  570.                Name            =   "Arial"
  571.                Size            =   8.25
  572.                Charset         =   0
  573.                Weight          =   400
  574.                Underline       =   0   'False
  575.                Italic          =   0   'False
  576.                Strikethrough   =   0   'False
  577.             EndProperty
  578.             Height          =   690
  579.             Left            =   3120
  580.             MouseIcon       =   "frmScan.frx":18A2
  581.             MousePointer    =   99  'Custom
  582.             Sorted          =   -1  'True
  583.             TabIndex        =   33
  584.             Top             =   240
  585.             Width           =   1455
  586.          End
  587.          Begin Threed.SSFrame fraButtons3 
  588.             Height          =   615
  589.             Left            =   0
  590.             TabIndex        =   45
  591.             Top             =   1920
  592.             Width           =   4575
  593.             _ExtentX        =   8070
  594.             _ExtentY        =   1085
  595.             _Version        =   131074
  596.             Begin VB.CommandButton btnReset3 
  597.                Caption         =   "RESET"
  598.                BeginProperty Font 
  599.                   Name            =   "Arial"
  600.                   Size            =   8.25
  601.                   Charset         =   0
  602.                   Weight          =   700
  603.                   Underline       =   0   'False
  604.                   Italic          =   0   'False
  605.                   Strikethrough   =   0   'False
  606.                EndProperty
  607.                Height          =   375
  608.                Left            =   3120
  609.                MouseIcon       =   "frmScan.frx":19F4
  610.                MousePointer    =   99  'Custom
  611.                TabIndex        =   48
  612.                ToolTipText     =   "Click here to reset the scanner settings."
  613.                Top             =   120
  614.                Width           =   1335
  615.             End
  616.             Begin VB.CommandButton btnStop3 
  617.                Caption         =   "STOP"
  618.                Enabled         =   0   'False
  619.                BeginProperty Font 
  620.                   Name            =   "Arial"
  621.                   Size            =   8.25
  622.                   Charset         =   0
  623.                   Weight          =   700
  624.                   Underline       =   0   'False
  625.                   Italic          =   0   'False
  626.                   Strikethrough   =   0   'False
  627.                EndProperty
  628.                Height          =   375
  629.                Left            =   1560
  630.                MouseIcon       =   "frmScan.frx":1B46
  631.                MousePointer    =   99  'Custom
  632.                TabIndex        =   47
  633.                ToolTipText     =   "Click here to stop scanning."
  634.                Top             =   120
  635.                Width           =   1455
  636.             End
  637.             Begin VB.CommandButton btnScan3 
  638.                Caption         =   "SCAN"
  639.                BeginProperty Font 
  640.                   Name            =   "Arial"
  641.                   Size            =   8.25
  642.                   Charset         =   0
  643.                   Weight          =   700
  644.                   Underline       =   0   'False
  645.                   Italic          =   0   'False
  646.                   Strikethrough   =   0   'False
  647.                EndProperty
  648.                Height          =   375
  649.                Left            =   120
  650.                MouseIcon       =   "frmScan.frx":1C98
  651.                MousePointer    =   99  'Custom
  652.                TabIndex        =   46
  653.                ToolTipText     =   "Click here to begin scanning."
  654.                Top             =   120
  655.                Width           =   1335
  656.             End
  657.          End
  658.          Begin VB.Label lblPause3 
  659.             AutoSize        =   -1  'True
  660.             BackStyle       =   0  'Transparent
  661.             Caption         =   "PAUSE :"
  662.             BeginProperty Font 
  663.                Name            =   "Arial"
  664.                Size            =   8.25
  665.                Charset         =   0
  666.                Weight          =   700
  667.                Underline       =   0   'False
  668.                Italic          =   0   'False
  669.                Strikethrough   =   0   'False
  670.             EndProperty
  671.             ForeColor       =   &H00FF0000&
  672.             Height          =   210
  673.             Left            =   1560
  674.             TabIndex        =   56
  675.             Top             =   960
  676.             Width           =   615
  677.          End
  678.          Begin VB.Label lblStatus3 
  679.             Alignment       =   2  'Center
  680.             BackStyle       =   0  'Transparent
  681.             BorderStyle     =   1  'Fixed Single
  682.             Caption         =   "IDLE..."
  683.             BeginProperty Font 
  684.                Name            =   "Arial"
  685.                Size            =   8.25
  686.                Charset         =   0
  687.                Weight          =   400
  688.                Underline       =   0   'False
  689.                Italic          =   0   'False
  690.                Strikethrough   =   0   'False
  691.             EndProperty
  692.             Height          =   255
  693.             Left            =   3120
  694.             TabIndex        =   55
  695.             Top             =   1560
  696.             Width           =   1455
  697.          End
  698.          Begin VB.Label lblEnd 
  699.             AutoSize        =   -1  'True
  700.             BackStyle       =   0  'Transparent
  701.             Caption         =   "END :"
  702.             BeginProperty Font 
  703.                Name            =   "Arial"
  704.                Size            =   8.25
  705.                Charset         =   0
  706.                Weight          =   700
  707.                Underline       =   0   'False
  708.                Italic          =   0   'False
  709.                Strikethrough   =   0   'False
  710.             EndProperty
  711.             ForeColor       =   &H00FF0000&
  712.             Height          =   210
  713.             Left            =   840
  714.             TabIndex        =   54
  715.             Top             =   0
  716.             Width           =   390
  717.          End
  718.          Begin VB.Label lblStart 
  719.             AutoSize        =   -1  'True
  720.             BackStyle       =   0  'Transparent
  721.             Caption         =   "START :"
  722.             BeginProperty Font 
  723.                Name            =   "Arial"
  724.                Size            =   8.25
  725.                Charset         =   0
  726.                Weight          =   700
  727.                Underline       =   0   'False
  728.                Italic          =   0   'False
  729.                Strikethrough   =   0   'False
  730.             EndProperty
  731.             ForeColor       =   &H00FF0000&
  732.             Height          =   210
  733.             Left            =   0
  734.             TabIndex        =   53
  735.             Top             =   0
  736.             Width           =   630
  737.          End
  738.          Begin VB.Label lblConTime3 
  739.             AutoSize        =   -1  'True
  740.             BackStyle       =   0  'Transparent
  741.             Caption         =   "CONNECT TIME :"
  742.             BeginProperty Font 
  743.                Name            =   "Arial"
  744.                Size            =   8.25
  745.                Charset         =   0
  746.                Weight          =   700
  747.                Underline       =   0   'False
  748.                Italic          =   0   'False
  749.                Strikethrough   =   0   'False
  750.             EndProperty
  751.             ForeColor       =   &H00FF0000&
  752.             Height          =   210
  753.             Left            =   1680
  754.             TabIndex        =   52
  755.             Top             =   0
  756.             Width           =   1290
  757.          End
  758.          Begin VB.Label lblKeep3 
  759.             AutoSize        =   -1  'True
  760.             BackStyle       =   0  'Transparent
  761.             Caption         =   "KEEP OPEN :"
  762.             BeginProperty Font 
  763.                Name            =   "Arial"
  764.                Size            =   8.25
  765.                Charset         =   0
  766.                Weight          =   700
  767.                Underline       =   0   'False
  768.                Italic          =   0   'False
  769.                Strikethrough   =   0   'False
  770.             EndProperty
  771.             ForeColor       =   &H00FF0000&
  772.             Height          =   210
  773.             Left            =   0
  774.             TabIndex        =   51
  775.             Top             =   960
  776.             Width           =   945
  777.          End
  778.          Begin VB.Label lblRHost3 
  779.             AutoSize        =   -1  'True
  780.             BackStyle       =   0  'Transparent
  781.             Caption         =   "REMOTE HOST :"
  782.             BeginProperty Font 
  783.                Name            =   "Arial"
  784.                Size            =   8.25
  785.                Charset         =   0
  786.                Weight          =   700
  787.                Underline       =   0   'False
  788.                Italic          =   0   'False
  789.                Strikethrough   =   0   'False
  790.             EndProperty
  791.             ForeColor       =   &H00FF0000&
  792.             Height          =   210
  793.             Left            =   3120
  794.             TabIndex        =   50
  795.             Top             =   960
  796.             Width           =   1230
  797.          End
  798.          Begin VB.Label lblOpen3 
  799.             AutoSize        =   -1  'True
  800.             BackStyle       =   0  'Transparent
  801.             Caption         =   "PORTS OPEN :"
  802.             BeginProperty Font 
  803.                Name            =   "Arial"
  804.                Size            =   8.25
  805.                Charset         =   0
  806.                Weight          =   700
  807.                Underline       =   0   'False
  808.                Italic          =   0   'False
  809.                Strikethrough   =   0   'False
  810.             EndProperty
  811.             ForeColor       =   &H00FF0000&
  812.             Height          =   210
  813.             Left            =   3120
  814.             TabIndex        =   49
  815.             Top             =   0
  816.             Width           =   1215
  817.          End
  818.       End
  819.       Begin VB.Frame fraTab2 
  820.          BorderStyle     =   0  'None
  821.          Height          =   2535
  822.          Left            =   240
  823.          TabIndex        =   31
  824.          Top             =   600
  825.          Visible         =   0   'False
  826.          Width           =   4575
  827.          Begin VB.HScrollBar scrConTime2 
  828.             Height          =   255
  829.             LargeChange     =   5
  830.             Left            =   0
  831.             Max             =   60
  832.             Min             =   1
  833.             MouseIcon       =   "frmScan.frx":1DEA
  834.             MousePointer    =   99  'Custom
  835.             TabIndex        =   8
  836.             Top             =   600
  837.             Value           =   1
  838.             Width           =   1455
  839.          End
  840.          Begin VB.ListBox lstScanFor1 
  841.             BeginProperty Font 
  842.                Name            =   "Arial"
  843.                Size            =   8.25
  844.                Charset         =   0
  845.                Weight          =   400
  846.                Underline       =   0   'False
  847.                Italic          =   0   'False
  848.                Strikethrough   =   0   'False
  849.             EndProperty
  850.             Height          =   690
  851.             Left            =   3120
  852.             MouseIcon       =   "frmScan.frx":1F3C
  853.             MousePointer    =   99  'Custom
  854.             Sorted          =   -1  'True
  855.             TabIndex        =   12
  856.             Top             =   240
  857.             Width           =   1455
  858.          End
  859.          Begin VB.TextBox txtPortsOpen 
  860.             BeginProperty Font 
  861.                Name            =   "Arial"
  862.                Size            =   8.25
  863.                Charset         =   0
  864.                Weight          =   400
  865.                Underline       =   0   'False
  866.                Italic          =   0   'False
  867.                Strikethrough   =   0   'False
  868.             EndProperty
  869.             Height          =   615
  870.             Left            =   3120
  871.             Locked          =   -1  'True
  872.             MouseIcon       =   "frmScan.frx":208E
  873.             MousePointer    =   99  'Custom
  874.             MultiLine       =   -1  'True
  875.             ScrollBars      =   2  'Vertical
  876.             TabIndex        =   18
  877.             TabStop         =   0   'False
  878.             Top             =   1200
  879.             Width           =   1455
  880.          End
  881.          Begin VB.TextBox txtRHost2 
  882.             BeginProperty Font 
  883.                Name            =   "Arial"
  884.                Size            =   8.25
  885.                Charset         =   0
  886.                Weight          =   400
  887.                Underline       =   0   'False
  888.                Italic          =   0   'False
  889.                Strikethrough   =   0   'False
  890.             EndProperty
  891.             Height          =   285
  892.             Left            =   1560
  893.             TabIndex        =   11
  894.             Top             =   1200
  895.             Width           =   1455
  896.          End
  897.          Begin VB.HScrollBar scrPause2 
  898.             Height          =   255
  899.             LargeChange     =   5
  900.             Left            =   0
  901.             Max             =   60
  902.             Min             =   1
  903.             MouseIcon       =   "frmScan.frx":21E0
  904.             MousePointer    =   99  'Custom
  905.             TabIndex        =   9
  906.             Top             =   1560
  907.             Value           =   1
  908.             Width           =   1455
  909.          End
  910.          Begin VB.TextBox txtPause2 
  911.             Alignment       =   2  'Center
  912.             BeginProperty Font 
  913.                Name            =   "Arial"
  914.                Size            =   8.25
  915.                Charset         =   0
  916.                Weight          =   400
  917.                Underline       =   0   'False
  918.                Italic          =   0   'False
  919.                Strikethrough   =   0   'False
  920.             EndProperty
  921.             Height          =   285
  922.             Left            =   0
  923.             Locked          =   -1  'True
  924.             MousePointer    =   1  'Arrow
  925.             TabIndex        =   25
  926.             TabStop         =   0   'False
  927.             Text            =   "1 second"
  928.             ToolTipText     =   "Indicates the number of seconds to pause between ports."
  929.             Top             =   1200
  930.             Width           =   1455
  931.          End
  932.          Begin VB.HScrollBar scrKeep2 
  933.             Height          =   255
  934.             LargeChange     =   5
  935.             Left            =   1560
  936.             Max             =   60
  937.             MouseIcon       =   "frmScan.frx":2332
  938.             MousePointer    =   99  'Custom
  939.             TabIndex        =   10
  940.             Top             =   600
  941.             Value           =   1
  942.             Width           =   1455
  943.          End
  944.          Begin VB.TextBox txtKeep2 
  945.             Alignment       =   2  'Center
  946.             BeginProperty Font 
  947.                Name            =   "Arial"
  948.                Size            =   8.25
  949.                Charset         =   0
  950.                Weight          =   400
  951.                Underline       =   0   'False
  952.                Italic          =   0   'False
  953.                Strikethrough   =   0   'False
  954.             EndProperty
  955.             Height          =   285
  956.             Left            =   1560
  957.             Locked          =   -1  'True
  958.             MousePointer    =   1  'Arrow
  959.             TabIndex        =   23
  960.             TabStop         =   0   'False
  961.             Text            =   "1 second"
  962.             ToolTipText     =   "Indicates the number of seconds to stay connected to open ports."
  963.             Top             =   240
  964.             Width           =   1455
  965.          End
  966.          Begin VB.TextBox txtConTime2 
  967.             Alignment       =   2  'Center
  968.             BeginProperty Font 
  969.                Name            =   "Arial"
  970.                Size            =   8.25
  971.                Charset         =   0
  972.                Weight          =   400
  973.                Underline       =   0   'False
  974.                Italic          =   0   'False
  975.                Strikethrough   =   0   'False
  976.             EndProperty
  977.             Height          =   285
  978.             Left            =   0
  979.             Locked          =   -1  'True
  980.             MousePointer    =   1  'Arrow
  981.             TabIndex        =   27
  982.             TabStop         =   0   'False
  983.             Text            =   "1 second"
  984.             ToolTipText     =   "Indicates the number of seconds to attempt connection."
  985.             Top             =   240
  986.             Width           =   1455
  987.          End
  988.          Begin Threed.SSFrame fraButtons2 
  989.             Height          =   615
  990.             Left            =   0
  991.             TabIndex        =   17
  992.             Top             =   1920
  993.             Width           =   4575
  994.             _ExtentX        =   8070
  995.             _ExtentY        =   1085
  996.             _Version        =   131074
  997.             Begin VB.CommandButton btnReset2 
  998.                Caption         =   "RESET"
  999.                BeginProperty Font 
  1000.                   Name            =   "Arial"
  1001.                   Size            =   8.25
  1002.                   Charset         =   0
  1003.                   Weight          =   700
  1004.                   Underline       =   0   'False
  1005.                   Italic          =   0   'False
  1006.                   Strikethrough   =   0   'False
  1007.                EndProperty
  1008.                Height          =   375
  1009.                Left            =   3480
  1010.                MouseIcon       =   "frmScan.frx":2484
  1011.                MousePointer    =   99  'Custom
  1012.                TabIndex        =   16
  1013.                ToolTipText     =   "Click here to reset the scanner settings."
  1014.                Top             =   120
  1015.                Width           =   975
  1016.             End
  1017.             Begin VB.CommandButton btnAddPort 
  1018.                Caption         =   "ADD PORT"
  1019.                BeginProperty Font 
  1020.                   Name            =   "Arial"
  1021.                   Size            =   8.25
  1022.                   Charset         =   0
  1023.                   Weight          =   700
  1024.                   Underline       =   0   'False
  1025.                   Italic          =   0   'False
  1026.                   Strikethrough   =   0   'False
  1027.                EndProperty
  1028.                Height          =   375
  1029.                Left            =   2280
  1030.                MouseIcon       =   "frmScan.frx":25D6
  1031.                MousePointer    =   99  'Custom
  1032.                TabIndex        =   15
  1033.                ToolTipText     =   "Click here to add a port to the Scan Ports list."
  1034.                Top             =   120
  1035.                Width           =   1095
  1036.             End
  1037.             Begin VB.CommandButton btnStop2 
  1038.                Caption         =   "STOP"
  1039.                Enabled         =   0   'False
  1040.                BeginProperty Font 
  1041.                   Name            =   "Arial"
  1042.                   Size            =   8.25
  1043.                   Charset         =   0
  1044.                   Weight          =   700
  1045.                   Underline       =   0   'False
  1046.                   Italic          =   0   'False
  1047.                   Strikethrough   =   0   'False
  1048.                EndProperty
  1049.                Height          =   375
  1050.                Left            =   1200
  1051.                MouseIcon       =   "frmScan.frx":2728
  1052.                MousePointer    =   99  'Custom
  1053.                TabIndex        =   14
  1054.                ToolTipText     =   "Click here to stop scanning."
  1055.                Top             =   120
  1056.                Width           =   975
  1057.             End
  1058.             Begin VB.CommandButton btnScan2 
  1059.                Caption         =   "SCAN"
  1060.                BeginProperty Font 
  1061.                   Name            =   "Arial"
  1062.                   Size            =   8.25
  1063.                   Charset         =   0
  1064.                   Weight          =   700
  1065.                   Underline       =   0   'False
  1066.                   Italic          =   0   'False
  1067.                   Strikethrough   =   0   'False
  1068.                EndProperty
  1069.                Height          =   375
  1070.                Left            =   120
  1071.                MouseIcon       =   "frmScan.frx":287A
  1072.                MousePointer    =   99  'Custom
  1073.                TabIndex        =   13
  1074.                ToolTipText     =   "Click here to begin scanning."
  1075.                Top             =   120
  1076.                Width           =   975
  1077.             End
  1078.          End
  1079.          Begin VB.Label lblOpen2 
  1080.             AutoSize        =   -1  'True
  1081.             BackStyle       =   0  'Transparent
  1082.             Caption         =   "PORTS OPEN :"
  1083.             BeginProperty Font 
  1084.                Name            =   "Arial"
  1085.                Size            =   8.25
  1086.                Charset         =   0
  1087.                Weight          =   700
  1088.                Underline       =   0   'False
  1089.                Italic          =   0   'False
  1090.                Strikethrough   =   0   'False
  1091.             EndProperty
  1092.             ForeColor       =   &H00FF0000&
  1093.             Height          =   210
  1094.             Left            =   3120
  1095.             TabIndex        =   19
  1096.             Top             =   960
  1097.             Width           =   1095
  1098.          End
  1099.          Begin VB.Label lblScanFor1 
  1100.             AutoSize        =   -1  'True
  1101.             BackStyle       =   0  'Transparent
  1102.             Caption         =   "SCAN PORTS :"
  1103.             BeginProperty Font 
  1104.                Name            =   "Arial"
  1105.                Size            =   8.25
  1106.                Charset         =   0
  1107.                Weight          =   700
  1108.                Underline       =   0   'False
  1109.                Italic          =   0   'False
  1110.                Strikethrough   =   0   'False
  1111.             EndProperty
  1112.             ForeColor       =   &H00FF0000&
  1113.             Height          =   210
  1114.             Left            =   3120
  1115.             TabIndex        =   20
  1116.             Top             =   0
  1117.             Width           =   1125
  1118.          End
  1119.          Begin VB.Label lblStatus2 
  1120.             Alignment       =   2  'Center
  1121.             BackStyle       =   0  'Transparent
  1122.             BorderStyle     =   1  'Fixed Single
  1123.             Caption         =   "IDLE..."
  1124.             BeginProperty Font 
  1125.                Name            =   "Arial"
  1126.                Size            =   8.25
  1127.                Charset         =   0
  1128.                Weight          =   400
  1129.                Underline       =   0   'False
  1130.                Italic          =   0   'False
  1131.                Strikethrough   =   0   'False
  1132.             EndProperty
  1133.             Height          =   255
  1134.             Left            =   1560
  1135.             TabIndex        =   21
  1136.             Top             =   1560
  1137.             Width           =   1455
  1138.          End
  1139.          Begin VB.Label lblRHost2 
  1140.             AutoSize        =   -1  'True
  1141.             BackStyle       =   0  'Transparent
  1142.             Caption         =   "REMOTE HOST :"
  1143.             BeginProperty Font 
  1144.                Name            =   "Arial"
  1145.                Size            =   8.25
  1146.                Charset         =   0
  1147.                Weight          =   700
  1148.                Underline       =   0   'False
  1149.                Italic          =   0   'False
  1150.                Strikethrough   =   0   'False
  1151.             EndProperty
  1152.             ForeColor       =   &H00FF0000&
  1153.             Height          =   210
  1154.             Left            =   1560
  1155.             TabIndex        =   22
  1156.             Top             =   960
  1157.             Width           =   1230
  1158.          End
  1159.          Begin VB.Label lblPause2 
  1160.             AutoSize        =   -1  'True
  1161.             BackStyle       =   0  'Transparent
  1162.             Caption         =   "PAUSE :"
  1163.             BeginProperty Font 
  1164.                Name            =   "Arial"
  1165.                Size            =   8.25
  1166.                Charset         =   0
  1167.                Weight          =   700
  1168.                Underline       =   0   'False
  1169.                Italic          =   0   'False
  1170.                Strikethrough   =   0   'False
  1171.             EndProperty
  1172.             ForeColor       =   &H00FF0000&
  1173.             Height          =   210
  1174.             Left            =   0
  1175.             TabIndex        =   26
  1176.             Top             =   960
  1177.             Width           =   615
  1178.          End
  1179.          Begin VB.Label lblKeep2 
  1180.             AutoSize        =   -1  'True
  1181.             BackStyle       =   0  'Transparent
  1182.             Caption         =   "KEEP OPEN :"
  1183.             BeginProperty Font 
  1184.                Name            =   "Arial"
  1185.                Size            =   8.25
  1186.                Charset         =   0
  1187.                Weight          =   700
  1188.                Underline       =   0   'False
  1189.                Italic          =   0   'False
  1190.                Strikethrough   =   0   'False
  1191.             EndProperty
  1192.             ForeColor       =   &H00FF0000&
  1193.             Height          =   210
  1194.             Left            =   1560
  1195.             TabIndex        =   24
  1196.             Top             =   0
  1197.             Width           =   945
  1198.          End
  1199.          Begin VB.Label lblConTime2 
  1200.             AutoSize        =   -1  'True
  1201.             BackStyle       =   0  'Transparent
  1202.             Caption         =   "CONNECT TIME :"
  1203.             BeginProperty Font 
  1204.                Name            =   "Arial"
  1205.                Size            =   8.25
  1206.                Charset         =   0
  1207.                Weight          =   700
  1208.                Underline       =   0   'False
  1209.                Italic          =   0   'False
  1210.                Strikethrough   =   0   'False
  1211.             EndProperty
  1212.             ForeColor       =   &H00FF0000&
  1213.             Height          =   210
  1214.             Left            =   0
  1215.             TabIndex        =   28
  1216.             Top             =   0
  1217.             Width           =   1290
  1218.          End
  1219.       End
  1220.       Begin MSComctlLib.TabStrip tabsScan 
  1221.          Height          =   3135
  1222.          Left            =   120
  1223.          TabIndex        =   29
  1224.          Top             =   120
  1225.          Width           =   4815
  1226.          _ExtentX        =   8493
  1227.          _ExtentY        =   5530
  1228.          HotTracking     =   -1  'True
  1229.          _Version        =   393216
  1230.          BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
  1231.             NumTabs         =   3
  1232.             BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
  1233.                Caption         =   "Scan All Ports"
  1234.                Object.ToolTipText     =   "Select this tab to scan all ports on the remote host machine."
  1235.                ImageVarType    =   2
  1236.             EndProperty
  1237.             BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
  1238.                Caption         =   "Scan Range Of Ports"
  1239.                Object.ToolTipText     =   "Select this tab to scan a range of ports on the remote host machine."
  1240.                ImageVarType    =   2
  1241.             EndProperty
  1242.             BeginProperty Tab3 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
  1243.                Caption         =   "Scan Few Ports"
  1244.                Object.ToolTipText     =   "Select this tab to scan just a few ports on the remote host machine."
  1245.                ImageVarType    =   2
  1246.             EndProperty
  1247.          EndProperty
  1248.          MousePointer    =   99
  1249.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  1250.             Name            =   "Arial"
  1251.             Size            =   8.25
  1252.             Charset         =   0
  1253.             Weight          =   700
  1254.             Underline       =   0   'False
  1255.             Italic          =   0   'False
  1256.             Strikethrough   =   0   'False
  1257.          EndProperty
  1258.          MouseIcon       =   "frmScan.frx":29CC
  1259.       End
  1260.    End
  1261. Attribute VB_Name = "frmScan"
  1262. Attribute VB_GlobalNameSpace = False
  1263. Attribute VB_Creatable = False
  1264. Attribute VB_PredeclaredId = True
  1265. Attribute VB_Exposed = False
  1266. Option Explicit
  1267. 'DECLARE TAB ONE STOP SWITCH VARIABLE.
  1268. Dim StopScan As Boolean
  1269. 'DECLARE TAB TWO STOP SWITCH VARIABLE.
  1270. Dim ScanComplete As Boolean
  1271. 'DECLARE TAB THREE STOP SWITCH VARIABLE.
  1272. Dim EndScan As Boolean
  1273. 'PAUSE SUB.
  1274. Private Sub Pause(Duration As Long)
  1275. Dim Current As Long
  1276. Current& = Timer
  1277. Do Until Timer - Current& >= Duration&
  1278. DoEvents
  1279. End Sub
  1280. 'WINSOCK TIME OUT SUB.
  1281. Private Function DidWinSockTimeOut(TimeOut As Long, Connector As Winsock) As Boolean
  1282. 'RETURNS TRUE IF WINSOCK TIMES OUT, FALSE IF WINSOCK CONNECTS.
  1283. Dim StartTime As Long, TimedOut As Boolean
  1284. StartTime& = Timer
  1285. Do Until Connector.State = sckConnected Or TimedOut = True
  1286.     DoEvents
  1287.     If Timer - StartTime& >= TimeOut& Then: TimedOut = True
  1288. If TimedOut = True Then
  1289.     DidWinSockTimeOut = True
  1290.     DidWinSockTimeOut = False
  1291. End If
  1292. End Function
  1293. 'DUPLICATE LIST ITEM SUB.
  1294. Private Function CompareToList(YourListBox As ListBox, CompareTo As String) As Integer
  1295. 'SEARCHES A LISTBOX FOR A SPECIFIC STRING.
  1296. 'RETURNS 1 IF STRING IS FOUND ON LIST ... 0 IF NOT.
  1297. Dim NextItem As Integer, ListEntry As String, ListIndexNum As Integer
  1298. CompareTo$ = UCase$(CompareTo$)
  1299. For NextItem% = 1 To YourListBox.ListCount
  1300.     ListEntry$ = YourListBox.List(ListIndexNum%)
  1301.     ListEntry$ = UCase$(ListEntry$)
  1302.     If ListEntry$ = CompareTo$ Then
  1303.         CompareToList% = 1
  1304.         Exit Function
  1305.     End If
  1306.     ListIndexNum% = ListIndexNum% + 1
  1307. Next NextItem%
  1308. CompareToList% = 0&
  1309. End Function
  1310. Private Sub btnAddPort_Click()
  1311. 'ADD PORT TO SCAN FOR LIST.
  1312. Dim NewPort As String, Compare As Integer
  1313. 'PROMPT USER.
  1314. NewPort$ = InputBox("Enter the port number that you wish to scan for below.", " Ports To Scan For")
  1315. If NewPort$ <> "" Then
  1316.     'PORT ENTERED IS TO LOW OR CONTAINS NON NUMERICAL CHARACTERS.
  1317.     If Val(NewPort$) < 1 Then
  1318.         MsgBox "Ports entered cannot contain alphabetic characters or be lower than one !", vbApplicationModal + vbCritical + vbOKOnly, " Invalid Port"
  1319.         Exit Sub
  1320.     End If
  1321.     'PORT ENTERED IS TOO HIGH.
  1322.     If Val(NewPort$) > 32767 Then
  1323.         MsgBox "Ports entered cannot be higher than 32767 !", vbApplicationModal + vbCritical + vbOKOnly, " Invalid Port"
  1324.         Exit Sub
  1325.     End If
  1326.     'COMPARE NEW PORT TO LIST.
  1327.     Compare% = CompareToList(lstScanFor1, NewPort$)
  1328.     'IF ITS THERE, PROMPT AND EXIT.
  1329.     If Compare% = 1 Then
  1330.         MsgBox "Port number " & NewPort$ & " has already been added to the list !", vbApplicationModal + vbCritical + vbOKOnly, " Duplicate Port"
  1331.         Exit Sub
  1332.     End If
  1333.     'IF ITS NOT THERE, ADD IT.
  1334.     lstScanFor1.AddItem Trim$(NewPort$)
  1335. End If
  1336. End Sub
  1337. Private Sub btnReset1_Click()
  1338. Dim Reset1 As Integer
  1339. 'PROMPT USER.
  1340. Reset1% = MsgBox("Are you sure you want to reset your scanner settings ?", vbApplicationModal + vbDefaultButton1 + vbQuestion + vbYesNo, " Reset Scanner Settings")
  1341. 'CHECK RESPONSE TO PROMPT.
  1342. If Reset1% = 6 Then
  1343.     'RESET TAB ONE.
  1344.     txtRHost1.Text = Connector1.LocalIP
  1345.     scrConTime1.Value = 1
  1346.     scrPause1.Value = 1
  1347.     scrKeep1.Value = 1
  1348.     lstOpen1.Clear
  1349. End If
  1350. End Sub
  1351. Private Sub btnReset2_Click()
  1352. Dim Reset2 As Integer
  1353. 'PROMPT USER.
  1354. Reset2% = MsgBox("Are you sure you want to reset your scanner settings ?", vbApplicationModal + vbDefaultButton1 + vbQuestion + vbYesNo, " Reset Scanner Settings")
  1355. 'CHECK RESPONSE TO PROMPT.
  1356. If Reset2% = 6 Then
  1357.     'RESET TAB TWO.
  1358.     txtRHost2.Text = Connector1.LocalIP
  1359.     scrConTime2.Value = 1
  1360.     scrPause2.Value = 1
  1361.     scrKeep2.Value = 1
  1362.     lstScanFor1.Clear
  1363.     txtPortsOpen.Text = ""
  1364. End If
  1365. End Sub
  1366. Private Sub btnReset3_Click()
  1367. Dim Reset3 As Integer
  1368. 'PROMPT USER.
  1369. Reset3% = MsgBox("Are you sure you want to reset your scanner settings ?", vbApplicationModal + vbDefaultButton1 + vbQuestion + vbYesNo, " Reset Scanner Settings")
  1370. 'CHECK RESPONSE TO PROMPT.
  1371. If Reset3% = 6 Then
  1372.     'RESET TAB THREE.
  1373.     txtRHost3.Text = Connector1.LocalIP
  1374.     scrStart.Value = 1
  1375.     scrEnd.Value = 1
  1376.     scrConTime3.Value = 1
  1377.     scrPause3.Value = 1
  1378.     scrKeep3.Value = 1
  1379.     lstOpen2.Clear
  1380. End If
  1381. End Sub
  1382. Private Sub btnScan1_Click()
  1383. Dim TimesUp As Boolean, ScanPort As Integer, KeepTime As Long
  1384. Dim Openings As Integer, CompareNow As Integer
  1385. 'CHECK FOR REMOTE HOST.
  1386. If txtRHost1.Text = "" Then
  1387.     MsgBox "You must enter a valid remote host to scan !", vbApplicationModal + vbCritical + vbOKOnly, " Invalid Remote Host"
  1388.     Exit Sub
  1389. End If
  1390. 'SET STOP SWITCH.
  1391. StopScan = False
  1392. 'LOCK SETTINGS CONTROLS.
  1393. tabsScan.Enabled = False
  1394. txtRHost1.Locked = True
  1395. txtRHost1.MousePointer = 1
  1396. scrConTime1.Enabled = False
  1397. scrPause1.Enabled = False
  1398. scrKeep1.Enabled = False
  1399. btnScan1.Enabled = False
  1400. btnReset1.Enabled = False
  1401. 'ENABLE STOP BUTTON.
  1402. btnStop1.Enabled = True
  1403. 'SET FOCUS TO STOP BUTTON.
  1404. btnStop1.SetFocus
  1405. 'SET THE REMOTE HOST.
  1406. Connector1.RemoteHost = Trim$(txtRHost1.Text)
  1407. 'BEGIN IP SCAN.
  1408. Do: DoEvents
  1409.     'SET STATUS BAR.
  1410.     If StopScan = False Then: lblStatus1.Caption = "SCANNING..."
  1411.     'GO TO NEXT PORT.
  1412.     ScanPort% = ScanPort% + 1
  1413.     'TITLE BAR AS STATUS.
  1414.     Caption = " - Excessive Force IP Scanner - " & Trim$(Str$(ScanPort%)) & " -"
  1415.     'SET REMOTE PORT.
  1416.     Connector1.RemotePort = ScanPort%
  1417.     'TRAP ERRORS.
  1418.     On Error Resume Next
  1419.     'ATTEMPT CONNECTION TO REMOTE HOST.
  1420.     Connector1.Connect
  1421.     'INITIATE TCP/IP CONNECTION TIMEOUT.
  1422.     TimesUp = DidWinSockTimeOut(Val(Trim$(Left$(txtConTime1.Text, 3))), Connector1)
  1423.     'CHECK CONNECTION STATUS.
  1424.     If TimesUp = True Then
  1425.         'TRAP ERRORS.
  1426.         On Error Resume Next
  1427.         'MAKE SURE THE CONNECTION IS CLOSED.
  1428.         Connector1.Close
  1429.         'SET STATUS BAR.
  1430.         If StopScan = False Then: lblStatus1.Caption = "TIMED OUT..."
  1431.         'ADD SECONDS TO TIME KEEPER.
  1432.         KeepTime& = KeepTime& + Val(Trim$(Left$(txtConTime1.Text, 3)))
  1433.     Else
  1434.         'SET STATUS BAR.
  1435.         If StopScan = False Then: lblStatus1.Caption = "CONNECTED..."
  1436.         'USERS KEEP OPEN.
  1437.         If txtKeep1.Text <> "none" Then
  1438.             'PAUSE(USER INPUT)
  1439.             Call Pause(Trim$(Val(Left$(txtKeep1.Text, 3))))
  1440.             'ADD SECONDS TO TIME KEEPER.
  1441.             KeepTime& = KeepTime& + Trim$(Val(Left$(txtKeep1.Text, 3)))
  1442.         End If
  1443.         'CHECK IF CONNECTION IS STILL AVAILABLE.
  1444.         If Connector1.State = sckConnected Then
  1445.             'TRAP ERRORS
  1446.             On Error Resume Next
  1447.             'CLOSE THE CONNECTION.
  1448.             Connector1.Close
  1449.             'SET STATUS BAR.
  1450.             If StopScan = False Then: lblStatus1.Caption = "VALID PORT..."
  1451.             'COMPARE NEW PORT TO OPEN PORT LIST.
  1452.             CompareNow% = CompareToList(lstOpen1, Trim$(Str$(ScanPort%)))
  1453.             'IF ITS NOT THERE, ADD IT.
  1454.             If CompareNow% = 0& Then: lstOpen1.AddItem Trim$(Str$(ScanPort%))
  1455.             'ADD ONE TO OPENING COUNTER.
  1456.             Openings% = Openings% + 1
  1457.         End If
  1458.     End If
  1459.     'USER SET PAUSE.
  1460.     Call Pause(Val(Trim$(Left$(txtPause1.Text, 3))))
  1461.     'ADD SECONDS TO TIME KEEPER.
  1462.     KeepTime& = KeepTime& + Val(Trim$(Left$(txtPause1.Text, 3)))
  1463. 'CHECK CONDITIONS.
  1464. Loop Until ScanPort% = 32767 Or StopScan = True
  1465. 'SET STATUS BAR.
  1466. lblStatus1.Caption = "COMPLETE..."
  1467. 'RESET TITLE BAR CAPTION.
  1468. Caption = " - Excessive Force IP Scanner - G0DLiKE -"
  1469. 'DISPLAY SCAN STATISTICS.
  1470. If KeepTime& >= 60 Then
  1471.     'TRANSLATE TIME ELAPSED TO MINUTES IF SIXTY OR OVER.
  1472.     KeepTime& = KeepTime& \ 60
  1473.     'FORMAT MESSAGE BOX.
  1474.     If KeepTime& = 1 Then
  1475.         MsgBox "- Remote Host = " & txtRHost1.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(ScanPort%)) & vbCrLf & "- Openings Found = " & Trim$(Str$(Openings%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(KeepTime&)) & " minute", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1476.     Else
  1477.         MsgBox "- Remote Host = " & txtRHost1.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(ScanPort%)) & vbCrLf & "- Openings Found = " & Trim$(Str$(Openings%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(KeepTime&)) & " minutes", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1478.     End If
  1479.     'LEAVE AS SECONDS IF LESS THAN SIXTY.
  1480.     MsgBox "- Remote Host = " & txtRHost1.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(ScanPort%)) & vbCrLf & "- Openings Found = " & Trim$(Str$(Openings%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(KeepTime&)) & " seconds", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1481. End If
  1482. 'DISABLE STOP BUTTON.
  1483. btnStop1.Enabled = False
  1484. 'UNLOCK SETTINGS CONTROLS.
  1485. tabsScan.Enabled = True
  1486. txtRHost1.Locked = False
  1487. txtRHost1.MousePointer = 0
  1488. scrConTime1.Enabled = True
  1489. scrPause1.Enabled = True
  1490. scrKeep1.Enabled = True
  1491. btnScan1.Enabled = True
  1492. btnReset1.Enabled = True
  1493. 'SET FOCUS TO CONNECT TIME.
  1494. scrConTime1.SetFocus
  1495. 'SET STATUS BAR.
  1496. lblStatus1.Caption = "IDLE..."
  1497. End Sub
  1498. Private Sub btnScan2_Click()
  1499. Dim TimedOut As Boolean, ScanTotal As Integer, ListIndexNum As Integer
  1500. Dim Elapsed As Long, Opened As Integer, Scanned As Long
  1501. Dim CompareThem As Integer
  1502. 'CHECK FOR REMOTE HOST.
  1503. If txtRHost2.Text = "" Then
  1504.     MsgBox "You must enter a valid remote host to scan !", vbApplicationModal + vbCritical + vbOKOnly, " Invalid Remote Host"
  1505.     Exit Sub
  1506. End If
  1507. 'CHECK FOR PORTS TO SCAN.
  1508. If lstScanFor1.ListCount = 0& Then
  1509.     MsgBox "You must enter at least one port to scan !", vbApplicationModal + vbCritical + vbOKOnly, " No Ports Listed"
  1510.     Exit Sub
  1511. End If
  1512. 'SET STOP SWITCH.
  1513. ScanComplete = False
  1514. 'SET SCAN TOTAL.
  1515. ScanTotal% = lstScanFor1.ListCount
  1516. 'LOCK SETTINGS CONTROLS.
  1517. tabsScan.Enabled = False
  1518. txtRHost2.Locked = True
  1519. txtRHost2.MousePointer = 1
  1520. scrConTime2.Enabled = False
  1521. scrPause2.Enabled = False
  1522. scrKeep2.Enabled = False
  1523. lstScanFor1.Enabled = False
  1524. btnScan2.Enabled = False
  1525. btnAddPort.Enabled = False
  1526. btnReset2.Enabled = False
  1527. 'ENABLE STOP BUTTON.
  1528. btnStop2.Enabled = True
  1529. 'SET FOCUS TO STOP BUTTON.
  1530. btnStop2.SetFocus
  1531. 'SET THE REMOTE HOST.
  1532. Connector1.RemoteHost = Trim$(txtRHost2.Text)
  1533. 'BEGIN IP SCAN.
  1534. Do: DoEvents
  1535.     'SET STATUS BAR.
  1536.     If ScanComplete = False Then: lblStatus2.Caption = "SCANNING..."
  1537.     'TITLE BAR AS STATUS.
  1538.     Caption = " - Excessive Force IP Scanner - " & lstScanFor1.List(ListIndexNum%) & " -"
  1539.     'SET REMOTE PORT.
  1540.     Connector1.RemotePort = Val(lstScanFor1.List(ListIndexNum%))
  1541.     'TRAP ERRORS.
  1542.     On Error Resume Next
  1543.     'ATTEMPT CONNECTION TO REMOTE HOST.
  1544.     Connector1.Connect
  1545.     'INITIATE TCP/IP CONNECTION TIMEOUT.
  1546.     TimedOut = DidWinSockTimeOut(Val(Trim$(Left$(txtConTime2.Text, 3))), Connector1)
  1547.     'CHECK CONNECTION STATUS.
  1548.     If TimedOut = True Then
  1549.         'TRAP ERRORS.
  1550.         On Error Resume Next
  1551.         'MAKE SURE THE CONNECTION IS CLOSED.
  1552.         Connector1.Close
  1553.         'SET STATUS BAR.
  1554.         If ScanComplete = False Then: lblStatus2.Caption = "TIMED OUT..."
  1555.         'ADD SECONDS TO TIME KEEPER.
  1556.         Elapsed& = Elapsed& + Val(Trim$(Left$(txtConTime2.Text, 3)))
  1557.     Else
  1558.         'SET STATUS BAR.
  1559.         If ScanComplete = False Then: lblStatus2.Caption = "CONNECTED..."
  1560.         'USERS KEEP OPEN.
  1561.         If txtKeep2.Text <> "none" Then
  1562.             'PAUSE(USER INPUT)
  1563.             Call Pause(Val(Trim$(Left$(txtKeep2.Text, 3))))
  1564.             'ADD SECONDS TO TIME KEEPER.
  1565.             Elapsed& = Elapsed& + Val(Trim$(Left$(txtKeep2.Text, 3)))
  1566.         End If
  1567.         'CHECK IF CONNECTION IS STILL AVAILABLE.
  1568.         If Connector1.State = sckConnected Then
  1569.             'TRAP ERRORS
  1570.             On Error Resume Next
  1571.             'CLOSE THE CONNECTION.
  1572.             Connector1.Close
  1573.             'SET STATUS BAR.
  1574.             If ScanComplete = False Then: lblStatus2.Caption = "VALID PORT..."
  1575.             'COMPARE NEW PORT TO OPEN PORTS LIST.
  1576.             If InStr(txtPortsOpen.Text, lstScanFor1.List(ListIndexNum%)) = 0& Then
  1577.                 'IF ITS NOT THERE, ADD IT.
  1578.                 txtPortsOpen.Text = txtPortsOpen.Text & lstScanFor1.List(ListIndexNum%) & vbCrLf
  1579.             End If
  1580.             'ADD ONE TO OPENING COUNTER.
  1581.             Opened% = Opened% + 1
  1582.         End If
  1583.     End If
  1584.     'USER SET PAUSE.
  1585.     Call Pause(Val(Trim$(Left$(txtPause2.Text, 3))))
  1586.     'ADD ONE TO SCAN COUNTER.
  1587.     Scanned& = Scanned& + 1
  1588.     'ADD SECONDS TO TIME KEEPER.
  1589.     Elapsed& = Elapsed& + Val(Trim$(Left$(txtPause2.Text, 3)))
  1590.     'INCREASE LIST INDEX BY ONE.
  1591.     ListIndexNum% = ListIndexNum% + 1
  1592. 'CHECK CONDITIONS.
  1593. Loop Until ListIndexNum% > ScanTotal% - 1 Or ScanComplete = True
  1594. 'SET STATUS BAR.
  1595. lblStatus2.Caption = "COMPLETE..."
  1596. 'RESET TITLE BAR CAPTION.
  1597. Caption = " - Excessive Force IP Scanner - G0DLiKE -"
  1598. 'DISPLAY SCAN STATISTICS.
  1599. If Elapsed& >= 60 Then
  1600.     'TRANSLATE TIME ELAPSED TO MINUTES IF SIXTY OR OVER.
  1601.     Elapsed& = Elapsed& \ 60
  1602.     'FORMAT MESSAGE BOX.
  1603.     If Elapsed& = 1 Then
  1604.         MsgBox "- Remote Host = " & txtRHost2.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(Scanned&)) & vbCrLf & "- Openings Found = " & Trim$(Str$(Opened%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(Elapsed&)) & " minute", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1605.     Else
  1606.         MsgBox "- Remote Host = " & txtRHost2.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(Scanned&)) & vbCrLf & "- Openings Found = " & Trim$(Str$(Opened%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(Elapsed&)) & " minutes", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1607.     End If
  1608.     'LEAVE AS SECONDS IF LESS THAN SIXTY.
  1609.     MsgBox "- Remote Host = " & txtRHost2.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(Scanned&)) & vbCrLf & "- Openings Found = " & Trim$(Str$(Opened%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(Elapsed&)) & " seconds", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1610. End If
  1611. 'DISABLE STOP BUTTON.
  1612. btnStop2.Enabled = False
  1613. 'UNLOCK SETTINGS CONTROLS.
  1614. tabsScan.Enabled = True
  1615. txtRHost2.Locked = False
  1616. txtRHost2.MousePointer = 0
  1617. scrConTime2.Enabled = True
  1618. scrPause2.Enabled = True
  1619. scrKeep2.Enabled = True
  1620. lstScanFor1.Enabled = True
  1621. btnScan2.Enabled = True
  1622. btnAddPort.Enabled = True
  1623. btnReset2.Enabled = True
  1624. 'SET FOCUS TO CONNECT TIME.
  1625. scrConTime2.SetFocus
  1626. 'SET STATUS BAR.
  1627. lblStatus2.Caption = "IDLE..."
  1628. End Sub
  1629. Private Sub btnScan3_Click()
  1630. Dim NoMoreTime As Boolean, StartingPort As Long, TimeSpent As Long
  1631. Dim OpenedUp As Integer, ComparePorts As Integer, NumScanned As Long
  1632. 'CHECK FOR REMOTE HOST.
  1633. If txtRHost3.Text = "" Then
  1634.     MsgBox "You must enter a valid remote host to scan !", vbApplicationModal + vbCritical + vbOKOnly, " Invalid Remote Host"
  1635.     Exit Sub
  1636. End If
  1637. 'MAKE SURE RANGE IS FROM LOW TO HIGH.
  1638. If Val(txtStart.Text) > Val(txtEnd.Text) Then
  1639.     MsgBox "Range scans must go from the lowest port to the highest port !", vbApplicationModal + vbCritical + vbOKOnly, " Invalid Range"
  1640.     Exit Sub
  1641. End If
  1642. 'SET STOP SWITCH.
  1643. EndScan = False
  1644. 'SET STARTING PORT.
  1645. StartingPort& = Val(txtStart.Text)
  1646. 'LOCK SETTINGS CONTROLS.
  1647. tabsScan.Enabled = False
  1648. txtRHost3.Locked = True
  1649. txtRHost3.MousePointer = 1
  1650. scrStart.Enabled = False
  1651. scrEnd.Enabled = False
  1652. scrConTime3.Enabled = False
  1653. scrPause3.Enabled = False
  1654. scrKeep3.Enabled = False
  1655. btnScan3.Enabled = False
  1656. btnReset3.Enabled = False
  1657. 'ENABLE STOP BUTTON.
  1658. btnStop3.Enabled = True
  1659. 'SET FOCUS TO STOP BUTTON.
  1660. btnStop3.SetFocus
  1661. 'SET THE REMOTE HOST.
  1662. Connector1.RemoteHost = Trim$(txtRHost3.Text)
  1663. 'BEGIN IP SCAN.
  1664. Do: DoEvents
  1665.     'SET STATUS BAR.
  1666.     If EndScan = False Then: lblStatus3.Caption = "SCANNING..."
  1667.     'TITLE BAR AS STATUS.
  1668.     Caption = " - Excessive Force IP Scanner - " & Trim$(Str$(StartingPort&)) & " -"
  1669.     'SET REMOTE PORT.
  1670.     Connector1.RemotePort = StartingPort&
  1671.     'TRAP ERRORS.
  1672.     On Error Resume Next
  1673.     'ATTEMPT CONNECTION TO REMOTE HOST.
  1674.     Connector1.Connect
  1675.     'INITIATE TCP/IP CONNECTION TIMEOUT.
  1676.     NoMoreTime = DidWinSockTimeOut(Val(Trim$(Left$(txtConTime3.Text, 3))), Connector1)
  1677.     'CHECK CONNECTION STATUS.
  1678.     If NoMoreTime = True Then
  1679.         'TRAP ERRORS.
  1680.         On Error Resume Next
  1681.         'MAKE SURE THE CONNECTION IS CLOSED.
  1682.         Connector1.Close
  1683.         'SET STATUS BAR.
  1684.         If EndScan = False Then: lblStatus3.Caption = "TIMED OUT..."
  1685.         'ADD SECONDS TO TIME KEEPER.
  1686.         TimeSpent& = TimeSpent& + Val(Trim$(Left$(txtConTime3.Text, 3)))
  1687.     Else
  1688.         'SET STATUS BAR.
  1689.         If EndScan = False Then: lblStatus3.Caption = "CONNECTED..."
  1690.         'USERS KEEP OPEN.
  1691.         If txtKeep3.Text <> "none" Then
  1692.             'PAUSE(USER INPUT)
  1693.             Call Pause(Val(Trim$(Left$(txtKeep3.Text, 3))))
  1694.             'ADD SECONDS TO TIME KEEPER.
  1695.             TimeSpent& = TimeSpent& + Val(Trim$(Left$(txtKeep3.Text, 3)))
  1696.         End If
  1697.         'CHECK IF CONNECTION IS STILL AVAILABLE.
  1698.         If Connector1.State = sckConnected Then
  1699.             'TRAP ERRORS
  1700.             On Error Resume Next
  1701.             'CLOSE THE CONNECTION.
  1702.             Connector1.Close
  1703.             'SET STATUS BAR.
  1704.             If EndScan = False Then: lblStatus3.Caption = "VALID PORT..."
  1705.             'COMPARE NEW PORT TO OPEN PORT LIST.
  1706.             ComparePorts% = CompareToList(lstOpen2, Trim$(Str$(StartingPort&)))
  1707.             'IF ITS NOT THERE, ADD IT.
  1708.             If ComparePorts% = 0& Then: lstOpen2.AddItem Trim$(Str$(StartingPort&))
  1709.             'ADD ONE TO OPENING COUNTER.
  1710.             OpenedUp% = OpenedUp% + 1
  1711.         End If
  1712.     End If
  1713.     'USER SET PAUSE.
  1714.     Call Pause(Val(Trim$(Left$(txtPause3.Text, 3))))
  1715.     'ADD SECONDS TO TIME KEEPER.
  1716.     TimeSpent& = TimeSpent& + Val(Trim$(Left$(txtPause3.Text, 3)))
  1717.     'GO TO NEXT PORT.
  1718.     StartingPort& = StartingPort& + 1
  1719.     'ADD ONE TO SCAN COUNTER.
  1720.     NumScanned& = NumScanned& + 1
  1721. 'CHECK CONDITIONS.
  1722. Loop Until StartingPort& > Val(txtEnd.Text) Or EndScan = True
  1723. 'SET STATUS BAR.
  1724. lblStatus3.Caption = "COMPLETE..."
  1725. 'RESET TITLE BAR CAPTION.
  1726. Caption = " - Excessive Force IP Scanner - G0DLiKE -"
  1727. 'DISPLAY SCAN STATISTICS.
  1728. If TimeSpent& >= 60 Then
  1729.     'TRANSLATE TIME ELAPSED TO MINUTES IF SIXTY OR OVER.
  1730.     TimeSpent& = TimeSpent& \ 60
  1731.     'FORMAT MESSAGE BOX.
  1732.     If TimeSpent& = 1 Then
  1733.         MsgBox "- Remote Host = " & txtRHost3.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(NumScanned&)) & vbCrLf & "- Openings Found = " & Trim$(Str$(OpenedUp%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(TimeSpent&)) & " minute", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1734.     Else
  1735.         MsgBox "- Remote Host = " & txtRHost3.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(NumScanned&)) & vbCrLf & "- Openings Found = " & Trim$(Str$(OpenedUp%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(TimeSpent&)) & " minutes", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1736.     End If
  1737.     'LEAVE AS SECONDS IF LESS THAN SIXTY.
  1738.     MsgBox "- Remote Host = " & txtRHost3.Text & vbCrLf & "- Ports Scanned = " & Trim$(Str$(NumScanned&)) & vbCrLf & "- Openings Found = " & Trim$(Str$(OpenedUp%)) & vbCrLf & "- Time Elapsed = " & Trim$(Str$(TimeSpent&)) & " seconds", vbApplicationModal + vbInformation + vbOKOnly, " IP Scan Complete !"
  1739. End If
  1740. 'DISABLE STOP BUTTON.
  1741. btnStop3.Enabled = False
  1742. 'UNLOCK SETTINGS CONTROLS.
  1743. tabsScan.Enabled = True
  1744. txtRHost3.Locked = False
  1745. txtRHost3.MousePointer = 0
  1746. scrStart.Enabled = True
  1747. scrEnd.Enabled = True
  1748. scrConTime3.Enabled = True
  1749. scrPause3.Enabled = True
  1750. scrKeep3.Enabled = True
  1751. btnScan3.Enabled = True
  1752. btnReset3.Enabled = True
  1753. 'SET FOCUS TO STARTING PORT.
  1754. scrStart.SetFocus
  1755. 'SET STATUS BAR.
  1756. lblStatus3.Caption = "IDLE..."
  1757. End Sub
  1758. Private Sub btnStop1_Click()
  1759. 'STOP TAB ONE PORT SCAN.
  1760. StopScan = True
  1761. 'SET STATUS BAR.
  1762. lblStatus1.Caption = "STOPPING..."
  1763. End Sub
  1764. Private Sub btnStop2_Click()
  1765. 'STOP TAB TWO PORT SCAN.
  1766. ScanComplete = True
  1767. 'SET STATUS BAR.
  1768. lblStatus2.Caption = "STOPPING..."
  1769. End Sub
  1770. Private Sub btnStop3_Click()
  1771. 'STOP TAB THREE PORT SCAN.
  1772. EndScan = True
  1773. 'SET STATUS BAR.
  1774. lblStatus3.Caption = "STOPPING..."
  1775. End Sub
  1776. Private Sub Connector1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
  1777. 'TRAP ERRORS.
  1778. On Error Resume Next
  1779. 'MAKE SURE CONNECTION IS CLOSED.
  1780. Connector1.Close
  1781. End Sub
  1782. Private Sub Form_Load()
  1783. Dim Answer As Integer
  1784. 'SPLASH BOX.
  1785. Answer% = MsgBox("- Excessive Force IP Scanner" & vbCrLf & "- Coded By G0DLiKE" & vbCrLf & "- Copyright 1999 IMN icon INC" & vbCrLf & "- IMNiconIncorporated@juno.com", vbApplicationModal + vbDefaultButton1 + vbInformation + vbOKCancel, " Welcome !")
  1786. If Answer% <> 1 Then: End
  1787. 'GET LOCAL HOST FOR ALL TABS.
  1788. txtRHost1.Text = Connector1.LocalIP
  1789. txtRHost2.Text = Connector1.LocalIP
  1790. txtRHost3.Text = Connector1.LocalIP
  1791. End Sub
  1792. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  1793. 'UNLOAD IP SCANNER.
  1794. Dim Result As Integer
  1795. 'PROMPT USER.
  1796. Result% = MsgBox("Are you sure you want to unload G0DLiKE's Excessive Force IP Scanner ?", vbApplicationModal + vbDefaultButton1 + vbQuestion + vbYesNo, " Unload")
  1797. 'CHECK RESPONSE TO PROMPT.
  1798. If Result% = 6 Then
  1799.     Unload Me
  1800.     Cancel% = 1
  1801. End If
  1802. End Sub
  1803. Private Sub Form_Unload(Cancel As Integer)
  1804. 'UNLOAD.
  1805. Unload Me
  1806. End Sub
  1807. Private Sub lstScanFor1_DblClick()
  1808. 'DOUBLE CLICK TO REMOVE.
  1809. Dim MsgReturn As Integer
  1810. MsgReturn% = MsgBox("Are you sure you want to remove port number " & lstScanFor1.List(lstScanFor1.ListIndex) & " ?", vbApplicationModal + vbDefaultButton1 + vbQuestion + vbYesNo, " Remove Port")
  1811. If MsgReturn% = 6 Then: lstScanFor1.RemoveItem lstScanFor1.ListIndex
  1812. End Sub
  1813. Private Sub lstScanFor1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1814. 'SCAN FOR LIST TTT.
  1815. If lstScanFor1.ListCount = 0 Then
  1816.     'IF LIST IS BLANK SO IS TTT.
  1817.     lstScanFor1.ToolTipText = ""
  1818.     'IF NOT, SET TTT.
  1819.     lstScanFor1.ToolTipText = "Double click a port number to remove it from the list."
  1820. End If
  1821. End Sub
  1822. Private Sub scrConTime1_Change()
  1823. 'CHECK CONNECTION TIME VALUE.
  1824. If scrConTime1.Value >= 2 Then
  1825.     'IF ITS TWO OR GREATER...
  1826.     txtConTime1.Text = Str(scrConTime1.Value) & " seconds"
  1827.     'IF ITS ONE...
  1828.     txtConTime1.Text = "1 second"
  1829. End If
  1830. End Sub
  1831. Private Sub scrConTime2_Change()
  1832. 'CHECK CONNECTION TIME VALUE.
  1833. If scrConTime2.Value >= 2 Then
  1834.     'IF ITS TWO OR GREATER...
  1835.     txtConTime2.Text = Str(scrConTime2.Value) & " seconds"
  1836.     'IF ITS ONE...
  1837.     txtConTime2.Text = "1 second"
  1838. End If
  1839. End Sub
  1840. Private Sub scrConTime3_Change()
  1841. 'CHECK CONNECTION TIME VALUE.
  1842. If scrConTime3.Value >= 2 Then
  1843.     'IF ITS TWO OR GREATER...
  1844.     txtConTime3.Text = Str(scrConTime3.Value) & " seconds"
  1845.     'IF ITS ONE...
  1846.     txtConTime3.Text = "1 second"
  1847. End If
  1848. End Sub
  1849. Private Sub scrEnd_Change()
  1850. 'RANGE SCANNER ENDING POINT.
  1851. txtEnd.Text = Str$(scrEnd.Value)
  1852. End Sub
  1853. Private Sub scrKeep1_Change()
  1854. 'CHECK KEEP OPEN TIME VALUE.
  1855. If scrKeep1.Value >= 2 Then
  1856.     'IF ITS TWO OR GREATER...
  1857.     txtKeep1.Text = Str(scrKeep1.Value) & " seconds"
  1858. ElseIf scrKeep1.Value = 1 Then
  1859.     'IF ITS ONE...
  1860.     txtKeep1.Text = "1 second"
  1861. ElseIf scrKeep1.Value = 0& Then
  1862.     'IF ITS ZERO...
  1863.     txtKeep1.Text = "none"
  1864. End If
  1865. End Sub
  1866. Private Sub scrKeep2_Change()
  1867. 'CHECK KEEP OPEN TIME VALUE.
  1868. If scrKeep2.Value >= 2 Then
  1869.     'IF ITS TWO OR GREATER...
  1870.     txtKeep2.Text = Str(scrKeep2.Value) & " seconds"
  1871. ElseIf scrKeep2.Value = 1 Then
  1872.     'IF ITS ONE...
  1873.     txtKeep2.Text = "1 second"
  1874. ElseIf scrKeep2.Value = 0& Then
  1875.     'IF ITS ZERO...
  1876.     txtKeep2.Text = "none"
  1877. End If
  1878. End Sub
  1879. Private Sub scrKeep3_Change()
  1880. 'CHECK KEEP OPEN TIME VALUE.
  1881. If scrKeep3.Value >= 2 Then
  1882.     'IF ITS TWO OR GREATER...
  1883.     txtKeep3.Text = Str(scrKeep3.Value) & " seconds"
  1884. ElseIf scrKeep3.Value = 1 Then
  1885.     'IF ITS ONE...
  1886.     txtKeep3.Text = "1 second"
  1887. ElseIf scrKeep3.Value = 0& Then
  1888.     'IF ITS ZERO...
  1889.     txtKeep3.Text = "none"
  1890. End If
  1891. End Sub
  1892. Private Sub scrPause1_Change()
  1893. 'CHECK USER PAUSE VALUE.
  1894. If scrPause1.Value >= 2 Then
  1895.     'IF ITS TWO OR GREATER...
  1896.     txtPause1.Text = Str(scrPause1.Value) & " seconds"
  1897.     'IF ITS ONE...
  1898.     txtPause1.Text = "1 second"
  1899. End If
  1900. End Sub
  1901. Private Sub scrPause2_Change()
  1902. 'CHECK USER PAUSE VALUE.
  1903. If scrPause2.Value >= 2 Then
  1904.     'IF ITS TWO OR GREATER...
  1905.     txtPause2.Text = Str(scrPause2.Value) & " seconds"
  1906.     'IF ITS ONE...
  1907.     txtPause2.Text = "1 second"
  1908. End If
  1909. End Sub
  1910. Private Sub scrPause3_Change()
  1911. 'CHECK USER PAUSE VALUE.
  1912. If scrPause3.Value >= 2 Then
  1913.     'IF ITS TWO OR GREATER...
  1914.     txtPause3.Text = Str(scrPause3.Value) & " seconds"
  1915.     'IF ITS ONE...
  1916.     txtPause3.Text = "1 second"
  1917. End If
  1918. End Sub
  1919. Private Sub scrStart_Change()
  1920. 'RANGE SCANNER STARTING PORT.
  1921. txtStart.Text = Str$(scrStart.Value)
  1922. End Sub
  1923. Private Sub tabsScan_Click()
  1924. 'HANDLE CLICKING OF TAB ONE.
  1925. If tabsScan.SelectedItem.Index = 1 Then
  1926.     If fraTab1.Visible = True Then
  1927.         Exit Sub
  1928.     ElseIf fraTab2.Visible = True Then
  1929.         fraTab2.Visible = False
  1930.         fraTab1.Visible = True
  1931.         'SET TAB ORDER.
  1932.         scrConTime1.TabIndex = 0
  1933.         scrPause1.TabIndex = 1
  1934.         scrKeep1.TabIndex = 2
  1935.         txtRHost1.TabIndex = 3
  1936.         lstOpen1.TabIndex = 4
  1937.         btnScan1.TabIndex = 5
  1938.         btnStop1.TabIndex = 6
  1939.         btnReset1.TabIndex = 7
  1940.         tabsScan.TabIndex = 8
  1941.         'SET FOCUS TO FIRST CONTROL.
  1942.         scrConTime1.SetFocus
  1943.     ElseIf fraTab3.Visible = True Then
  1944.         fraTab3.Visible = False
  1945.         fraTab1.Visible = True
  1946.         'SET TAB ORDER.
  1947.         scrConTime1.TabIndex = 0
  1948.         scrPause1.TabIndex = 1
  1949.         scrKeep1.TabIndex = 2
  1950.         txtRHost1.TabIndex = 3
  1951.         lstOpen1.TabIndex = 4
  1952.         btnScan1.TabIndex = 5
  1953.         btnStop1.TabIndex = 6
  1954.         btnReset1.TabIndex = 7
  1955.         tabsScan.TabIndex = 8
  1956.         'SET FOCUS TO FIRST CONTROL.
  1957.         scrConTime1.SetFocus
  1958.     End If
  1959. End If
  1960. 'HANDLE CLICKING OF TAB TWO.
  1961. If tabsScan.SelectedItem.Index = 2 Then
  1962.     If fraTab3.Visible = True Then
  1963.         Exit Sub
  1964.     ElseIf fraTab1.Visible = True Then
  1965.         fraTab1.Visible = False
  1966.         fraTab3.Visible = True
  1967.         'SET TAB ORDER.
  1968.         scrStart.TabIndex = 0
  1969.         scrEnd.TabIndex = 1
  1970.         scrKeep3.TabIndex = 2
  1971.         scrConTime3.TabIndex = 3
  1972.         scrPause3.TabIndex = 4
  1973.         lstOpen2.TabIndex = 5
  1974.         txtRHost3.TabIndex = 6
  1975.         btnScan3.TabIndex = 7
  1976.         btnStop3.TabIndex = 8
  1977.         btnReset3.TabIndex = 9
  1978.         tabsScan.TabIndex = 10
  1979.         'SET FOCUS TO FIRST CONTROL.
  1980.         scrStart.SetFocus
  1981.     ElseIf fraTab2.Visible = True Then
  1982.         fraTab2.Visible = False
  1983.         fraTab3.Visible = True
  1984.         'SET TAB ORDER.
  1985.         scrStart.TabIndex = 0
  1986.         scrEnd.TabIndex = 1
  1987.         scrKeep3.TabIndex = 2
  1988.         scrConTime3.TabIndex = 3
  1989.         scrPause3.TabIndex = 4
  1990.         lstOpen2.TabIndex = 5
  1991.         txtRHost3.TabIndex = 6
  1992.         btnScan3.TabIndex = 7
  1993.         btnStop3.TabIndex = 8
  1994.         btnReset3.TabIndex = 9
  1995.         tabsScan.TabIndex = 10
  1996.         'SET FOCUS TO FIRST CONTROL.
  1997.         scrStart.SetFocus
  1998.     End If
  1999. End If
  2000. 'HANDLE CLICKING OF TAB THREE.
  2001. If tabsScan.SelectedItem.Index = 3 Then
  2002.     If fraTab2.Visible = True Then
  2003.         Exit Sub
  2004.     ElseIf fraTab1.Visible = True Then
  2005.         fraTab1.Visible = False
  2006.         fraTab2.Visible = True
  2007.         'SET TAB ORDER.
  2008.         scrConTime2.TabIndex = 0
  2009.         scrPause2.TabIndex = 1
  2010.         scrKeep2.TabIndex = 2
  2011.         txtRHost2.TabIndex = 3
  2012.         lstScanFor1.TabIndex = 4
  2013.         btnScan2.TabIndex = 5
  2014.         btnStop2.TabIndex = 6
  2015.         btnAddPort.TabIndex = 7
  2016.         btnReset2.TabIndex = 8
  2017.         tabsScan.TabIndex = 9
  2018.         'SET FOCUS TO FIRST CONTROL.
  2019.         scrConTime2.SetFocus
  2020.     ElseIf fraTab3.Visible = True Then
  2021.         fraTab3.Visible = False
  2022.         fraTab2.Visible = True
  2023.         'SET TAB ORDER.
  2024.         scrConTime2.TabIndex = 0
  2025.         scrPause2.TabIndex = 1
  2026.         scrKeep2.TabIndex = 2
  2027.         txtRHost2.TabIndex = 3
  2028.         lstScanFor1.TabIndex = 4
  2029.         btnScan2.TabIndex = 5
  2030.         btnStop2.TabIndex = 6
  2031.         btnAddPort.TabIndex = 7
  2032.         btnReset2.TabIndex = 8
  2033.         tabsScan.TabIndex = 9
  2034.         'SET FOCUS TO FIRST CONTROL.
  2035.         scrConTime2.SetFocus
  2036.     End If
  2037. End If
  2038. End Sub
  2039.