-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathScannerDefine.cs
More file actions
executable file
·60 lines (53 loc) · 1.59 KB
/
Copy pathScannerDefine.cs
File metadata and controls
executable file
·60 lines (53 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
namespace ST.Library.Network
{
public delegate void IcmpEventHandler(object sender,IcmpEventArgs e);
public delegate void ScanEventHandler(object sender, ScanEventArgs e);
internal class ScanTaskInfo
{
public uint TaskID;
public int Retry;
public int RunedRetry;
public int Port;
public EndPoint EndPoint;
public bool IsStarted;
public bool IsTotalTimeout;
public DateTime StartTime;
public DateTime LastTime;
public int Timeout;
public int TotalTimeout;
}
internal class TCPScanTaskInfo : ScanTaskInfo
{
public Socket Socket;
public bool CanConnect;
public ProbeInfo CurrentProbe;
public Queue<ProbeInfo> SendProbes;
public SocketAsyncEventArgs RecvSAE;
}
internal class SYNScanTaskInfo : ScanTaskInfo
{
public byte[] SYNPacket;
public int Probes;
public bool IsUseNullProbe;
public uint SEQ;
public uint UIP;
}
internal class UDPScanTaskInfo : ScanTaskInfo
{
//public ProbeInfo CurrentProbe;
public List<byte[]> SendDatas;
public Queue<byte[]> SendDatasQueue;
//public Queue<ProbeInfo> SendProbes;
}
internal class SmbScanTaskInfo : ScanTaskInfo {
public int Step;
public Socket Socket;
public bool CanConnect;
public SocketAsyncEventArgs RecvSAE;
}
}