-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknock.ps1.ini
111 lines (94 loc) · 1.73 KB
/
knock.ps1.ini
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
; D:\Ëè÷íàÿ\0scripts\ps\knock\knock-2.ps1.cfgôàéë êîíôèãóðàöèè äëÿ øàãîâ PORT KNOCKING
; â icmp length = ðåàëüíûé + 28 áàéò
; íàïðèìåð â Mikrotik`e åñëè ïàêåò äîëæåí áûòü 44, òîãäà length ä.á. 44-28 - 16
; Ñåêöèè â ôàéëå äâóõ âèäîâ:
; 1) Îäèí øàã. Îïèñàíèå îäíîãî øàãà äëÿ ïîðò knock. Ïðîòîêîë (icmp, udp, tcp)
; è äàííûå äëÿ ýòîãî øàãà (port äëÿ udp, tcp è äëèíà ïàêåòà äëÿ icmp)
; 2) Ñïèñîê øàãîâ. Ñïèñîê øàãîâ èç ñåêöèé 1-ãî òèïà
; 1) Îäèí øàã:
; [step]
; proto=tcp, ïî óìîë÷àíèþ udp
; port=nnnn, çíà÷åíèå îò 1-65535, ïîðò äëÿ tcp, udp
; length=nn, äëèíà ïàêåòà icmp, ðåàëüíûé + 28 áàéò çàãîëîâîê
; 2) Ñïèñîê øàãîâ:
; [steps]
; 1=step1
; 2=step12
; 3=step13
; 4=step14
; Èìÿ ïàðàìåòðà(÷èñëîâîãî) óêàçûâàåò ïîðÿäîê îòïðàâêè ïàêåòà. Çíà÷åíèå èìÿ ñåêöèè òèïà "Îäèí øàã" ñ äàííûìè ïàêåòà îòïðàâêè
;
[default]
host=$($paramHost)
proto=udp
lenght=60
[steps1]
1=step1
3=step2
2=step10
4=step280u
5=step19
;==============================
[home-12h]
1=step57u
2=step87u
3=step62u
4=step28u
[step1]
port=57
length=56
proto=u
[step87u]
port=87
[step280u]
port=280
[step62u]
port=62
;==============================
;==============================
[home-24h]
1=step574u
2=step891t
3=step622t
4=step28u
[step574u]
proto=udp
port=574
[step891t]
proto=tcp
port=891
[step622t]
proto=tcp
port=622
[step28u]
port=28
;==============================
;==============================
[home-icmp-1h]
1=step44i
2=step71i
3=step15i
4=step1i
5=step8i
7
[step44i]
; â icmp length = ðåàëüíûé + 28 áàéò
; ò.å. åñëè ïàêåò â ðîóòåðå äîëæåí áûòü 44, òîãäà length ä.á. 44-28 - 16
proto=icmp
length=44
[step71i]
proto=icmp
length=71
[step15i]
proto=icmp
length=15
[step1i]
proto=icmp
length=1
[step5i]
proto=icmp
length=5
[step8i]
proto=icmp
length=8
;==============================