-
Notifications
You must be signed in to change notification settings - Fork 234
/
index.html
194 lines (194 loc) · 10 KB
/
index.html
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta charset="utf8">
<link href="https://fonts.cdnfonts.com/css/iranian-sans" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<style type="text/css">
body {
font-family: 'Iranian Sans', sans-serif;
font-size: 14px;
direction: rtl;
}
</style>
</head>
<body id="body">
<div class="container border rounded-2 mt-2 border-dark">
<div class="row">
<div class="col-12 p-2 text-center border-bottom border-dark text-primary">
<span class="lang-field lang-fa fw-bold">پیدا کردن آیپی تمیز کلادفلر</span>
<span class="lang-field lang-en fw-bold">Cloudflare's Clean IP Scanner</span>
<span class="lang-field lang-cn fw-bold">Cloudflare IP 扫描器</span>
<div class="btn-group float-end" role="group" dir="ltr">
<button id="btn-fa" class="btn btn-lang btn-outline-primary btn-sm rounded-2" type="button">FA</button>
<button id="btn-en" class="btn btn-lang btn-outline-primary btn-sm rounded-2" type="button">EN</button>
<button id="btn-cn" class="btn btn-lang btn-outline-primary btn-sm rounded-2" type="button">CN</button>
</div>
</div>
</div>
<div class="row my-2">
<label for="max-latency" class="col-sm-12 col-md-4 col-lg-2 col-form-label">
<span class="lang-field lang-fa">تاخیر مجاز:</span>
<span class="lang-field lang-en">Max. Latency:</span>
<span class="lang-field lang-cn">最大延迟:</span>
</label>
<div class="col-sm-12 col-md-8 col-lg-2">
<input class="form-control" type="number" id="max-latency" min="50" max="3000" step="50" value="500">
</div>
<label for="protocol" class="col-sm-12 col-md-4 col-lg-2 col-form-label">
<span class="lang-field lang-fa">پروتکل:</span>
<span class="lang-field lang-en">Protocol:</span>
<span class="lang-field lang-cn">协议:</span>
</label>
<div class="col-sm-12 col-md-8 col-lg-2">
<select class="form-control" id="protocol">
<option value="http" selected>HTTP</option>
<option value="https">HTTPS</option>
</select>
</div>
<label for="port-no" class="col-sm-12 col-md-4 col-lg-2 col-form-label">
<span class="lang-field lang-fa">پورت:</span>
<span class="lang-field lang-en">Port:</span>
<span class="lang-field lang-cn">端口号:</span>
</label>
<div class="col-sm-12 col-md-8 col-lg-2">
<select class="form-control" id="port-no"></select>
</div>
</div>
<div class="row my-2">
<label for="max-ip" class="col-sm-12 col-md-4 col-lg-2 col-form-label">
<span class="lang-field lang-fa">تعداد آیپی:</span>
<span class="lang-field lang-en">No. of IPs:</span>
<span class="lang-field lang-cn">IP数量:</span>
</label>
<div class="col-sm-12 col-md-8 col-lg-2">
<input class="form-control" type="number" id="max-ip" min="1" max="5000" value="5">
</div>
<label for="ip-regex" class="col-sm-12 col-md-4 col-lg-2 col-form-label">
<span class="lang-field lang-fa">عبارت منظم:</span>
<span class="lang-field lang-en">Regular expression:</span>
<span class="lang-field lang-cn">正则表达式:</span>
</label>
<div class="col-sm-12 col-md-8 col-lg-6">
<input type="text" class="form-control" dir="ltr" id="ip-regex" placeholder="^104\.17\.|^141\.">
</div>
</div>
<div class="row my-2">
<label for="ip-include" class="col-sm-12 col-md-4 col-lg-2 col-form-label">
<span class="lang-field lang-fa">فقط از این رنج آیپی:</span>
<span class="lang-field lang-en">Ranges to include:</span>
<span class="lang-field lang-cn">包括的IP范围:</span>
</label>
<div class="col-sm-12 col-md-8 col-lg-4">
<input type="text" class="form-control" dir="ltr" id="ip-include" placeholder="104.17.166.0/24,172.64.59.0/24">
</div>
<label for="ip-exclude" class="col-sm-12 col-md-4 col-lg-2 col-form-label">
<span class="lang-field lang-fa">بهجز این رنج آیپی:</span>
<span class="lang-field lang-en">Ranges to exclude:</span>
<span class="lang-field lang-cn">排除的IP范围</span>
</label>
<div class="col-sm-12 col-md-8 col-lg-4">
<input type="text" class="form-control" dir="ltr" id="ip-exclude" placeholder="8,103.22">
</div>
</div>
<div class="row my-2">
<div class="btn-group col-xs-3 col-lg-4 my-1" role="group">
<button type="button" class="btn btn-info" data-bs-toggle="modal" data-bs-target="#ip-ranges-modal">
<span class="lang-field lang-fa">مشاهدهی رنج آیپیها</span>
<span class="lang-field lang-en">View IP ranges</span>
<span class="lang-field lang-cn">查看IP范围</span>
</button>
<div class="modal fade" id="ip-ranges-modal" tabindex="-1" aria-labelledby="ip-ranges-modal-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ip-ranges-modal-label">
<span class="lang-field lang-fa">رنج آیپیها</span>
<span class="lang-field lang-en">IP ranges</span>
<span class="lang-field lang-cn">IP范围</span>
</h5>
</div>
<div class="modal-body">
<table dir="ltr" class="table table-striped text-center">
<tbody id="ip-ranges-body"></tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
<span class="lang-field lang-fa">بستن</span>
<span class="lang-field lang-en">Close</span>
<span class="lang-field lang-cn">关闭</span>
</button>
<button type="button" class="btn btn-primary" onclick="copyToClipboard(cfIPv4.join(`\n`))">
<span class="lang-field lang-fa">کپی</span>
<span class="lang-field lang-en">Copy</span>
<span class="lang-field lang-cn">复制</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="btn-group col-xs-3 col-lg-4"></div>
<div class="btn-group col-xs-6 col-lg-4 my-1" role="group">
<button id="btn-start" class="btn btn-success btn-sm rounded-2 fw-bold" disabled type="button" onclick="startScan()">
<span class="lang-field lang-fa">شروع</span>
<span class="lang-field lang-en">Start</span>
<span class="lang-field lang-cn">开始</span>
</button>
<button id="btn-cancel" class="btn btn-outline-secondary btn-sm rounded-2 fw-bold d-none" type="button" onclick="cancelScan()">
<span class="lang-field lang-fa">لغو</span>
<span class="lang-field lang-en">Cancel</span>
<span class="lang-field lang-cn">取消</span>
</button>
<button id="btn-reset" class="btn btn-outline-danger btn-sm rounded-2 fw-bold" type="button" onclick="resetDefaults()">
<span class="lang-field lang-fa">تنظیم دوباره پیشفرضها</span>
<span class="lang-field lang-en">Reset defaults</span>
<span class="lang-field lang-cn">重置默认值</span>
</button>
</div>
</div>
<div class="row my-2 border-bottom border-dark py-3">
<div id="start-hint" class="col-xs-12 col-lg-5 text-danger fw-bold py-1">
<span class="lang-field lang-fa">قبل از شروع vpn خود را خاموش کنید!</span>
<span class="lang-field lang-en">Turn off your VPN before start!</span>
<span class="lang-field lang-cn">在开始之前请先关闭你的VPN!</span>
</div>
<div class="col col-xs-2 col-lg-1 py-1" id="test-no"></div>
<div class="col col-xs-6 col-lg-3 py-1" id="ip-no"></div>
<div class="col col-xs-1 col-lg-1 py-1" id="ip-try"></div>
<div class="col col-xs-3 col-lg-2 py-1" id="ip-latency"></div>
</div>
<table class="table table-striped" dir="ltr">
<thead>
<tr>
<th width="35">
#
</th>
<th style="min-width: 150px;">
<span class="lang-field lang-fa">آیپی</span>
<span class="lang-field lang-en">IP</span>
<span class="lang-field lang-cn">IP</span>
</th>
<th>
<span class="lang-field lang-fa">تاخیر</span>
<span class="lang-field lang-en">Latency</span>
<span class="lang-field lang-cn">延迟</span>
</th>
<th width="70">
<div class="btn-group" role="group" dir="ltr">
<button class="btn btn-outline-secondary btn-sm" onclick="downloadAsCSV()"><img height="20px" src="assets/icon-csv.png" /></button>
<button class="btn btn-outline-secondary btn-sm" onclick="downloadAsJSON()"><img height="20px" src="assets/icon-json.png" /></button>
<button class="btn btn-outline-secondary btn-sm" onclick="copyAllToClipboard()"><img height="20px" src="assets/icon-copy.png" /></button>
</div>
</th>
</tr>
</thead>
<tbody id="result">
</tbody>
</table>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script src="./script.js"></script>
</html>