enotkrutoy commited on
Commit
ffa2056
·
verified ·
1 Parent(s): f6cc2d5

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +122 -130
index.html CHANGED
@@ -2,106 +2,101 @@
2
  <html lang="ru">
3
  <head>
4
  <meta charset="UTF-8">
5
- <title>Поиск в Google</title>
6
  <style>
7
  body {
8
  background-color: #1a1a1a;
9
- color: #ffffff;
10
  font-family: 'Courier New', monospace;
11
  margin: 0;
12
- padding: 0;
13
  }
14
 
15
  .container {
16
- max-width: 800px;
17
- margin: 20px auto;
18
  text-align: center;
19
  padding: 20px;
20
  border-radius: 10px;
21
  background-color: #2d2d2d;
22
- box-shadow: 0 0 15px rgba(0,0,0,0.3);
23
  }
24
 
25
- .search-input {
26
  width: 80%;
27
- padding: 12px 20px;
28
- margin: 8px 0;
29
- display: inline-block;
30
- border: 1px solid rgba(255,255,255,0.1);
31
- border-radius: 4px;
32
- box-sizing: border-box;
33
  background-color: #333333;
34
- color: #ffffff;
35
- font-family: 'Courier New', monospace;
36
  }
37
 
38
- .search-input:focus {
39
- outline: none;
40
- border-color: #4CAF50;
 
 
 
 
 
41
  }
42
 
43
  .search-button {
44
- width: 15%;
45
- background-color: #4CAF50;
46
- color: white;
47
- padding: 14px 20px;
48
- margin: 8px 0;
49
  border: none;
50
- border-radius: 4px;
51
  cursor: pointer;
52
- transition: background-image 0.3s;
53
- background-image: linear-gradient(to bottom, #4CAF50, #45a049);
54
- font-family: 'Courier New', monospace;
55
  }
56
 
57
  .search-button:hover {
58
- background-image: linear-gradient(to bottom, #45a049, #4CAF50);
 
59
  }
60
 
61
  .examples {
62
- margin-top: 30px;
63
  padding: 20px;
64
  background-color: #333333;
65
  border-radius: 10px;
 
66
  }
67
 
68
  .examples h2 {
69
- color: #4CAF50;
70
  margin-bottom: 20px;
71
- font-family: 'Courier New', monospace;
72
  }
73
 
74
  .examples-list {
75
- list-style-type: none;
76
  padding: 0;
77
  }
78
 
79
  .examples-list li {
80
- margin: 10px 0;
81
  padding: 15px;
 
82
  background-color: #2d2d2d;
83
  border-radius: 5px;
 
84
  cursor: pointer;
85
  transition: all 0.3s;
86
- border: 1px solid rgba(76, 175, 80, 0.2);
87
  }
88
 
89
  .examples-list li:hover {
90
  background-color: #333333;
91
  transform: translateX(5px);
92
- box-shadow: 2px 2px 5px rgba(76, 175, 80, 0.2);
93
- }
94
-
95
- .examples-list li strong {
96
- color: #4CAF50;
97
- font-family: 'Courier New', monospace;
98
  }
99
 
100
  .copy-indicator {
101
  position: absolute;
102
  right: 10px;
103
  top: 10px;
104
- color: #4CAF50;
105
  font-size: 14px;
106
  opacity: 0;
107
  transition: opacity 0.3s;
@@ -111,61 +106,96 @@
111
  opacity: 1;
112
  }
113
 
114
- .select-pages {
115
- width: 100px;
116
- padding: 8px;
117
- margin: 10px 0;
118
  background-color: #333333;
119
- color: #4CAF50;
120
- border: 1px solid #4CAF50;
121
- border-radius: 4px;
122
- font-family: 'Courier New', monospace;
123
- }
124
-
125
- .select-pages:focus {
126
- outline: none;
127
- border-color: #4CAF50;
128
- box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
129
  }
130
 
131
- img {
132
- width: 100px;
133
  margin: 10px;
 
 
 
134
  border-radius: 5px;
135
- box-shadow: 0 0 10px rgba(0,0,0,0.3);
 
 
 
 
 
 
136
  }
137
  </style>
138
  </head>
139
  <body>
140
  <div class="container">
141
- <img src="https://i.pinimg.com/originals/bc/e4/c0/bce4c082e2a1c2ec016351228f782a4a.gif" alt="Hack logo"/>
142
- <form id="searchForm">
143
- <input id="searchInput" type="text" class="search-input" placeholder="Введите ваш запрос для поиска"/>
144
- <button type="submit" class="search-button">Поиск</button>
145
- </form>
146
- <select id="pagesSelect" class="select-pages">
147
- <option value="1" selected>1 страница</option>
148
- <option value="2">2 страницы</option>
149
- <option value="3">3 страницы</option>
150
- <option value="4">4 страницы</option>
151
- <option value="5">5 страниц</option>
152
- <option value="6">6 страниц</option>
153
- <option value="7">7 страниц</option>
154
- <option value="8">8 страниц</option>
155
- <option value="9">9 страниц</option>
156
- <option value="10">10 страниц</option>
157
- </select>
158
- <div id="message"></div>
 
159
 
160
  <div class="examples">
161
- <h2>Примеры запросов для поиска уязвимостей</h2>
162
  <ul class="examples-list">
163
  <li onclick="copyToClipboard('intitle:index.of filetype:php')">
164
  <strong>Поиск открытых директорий:</strong><br>
165
  intitle:index.of filetype:php
166
  <span class="copy-indicator">скопировано</span>
167
  </li>
168
- <!-- Добавлены остальные примеры -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  </ul>
170
  </div>
171
  </div>
@@ -173,65 +203,27 @@
173
  <script>
174
  function copyToClipboard(text) {
175
  navigator.clipboard.writeText(text).then(() => {
176
- const indicator = event.target.querySelector('.copy-indicator');
177
- indicator.classList.add('show');
178
- setTimeout(() => indicator.classList.remove('show'), 2000);
 
 
179
  });
180
  }
181
 
182
- document.getElementById('searchForm').addEventListener('submit', function(e) {
183
- e.preventDefault();
184
  const searchQuery = document.getElementById('searchInput').value;
185
- searchGoogle(searchQuery);
186
- });
187
-
188
- function searchGoogle(search) {
189
- if (typeof search !== 'string' || search.trim() === '') {
190
- console.error('Поисковый запрос должен быть строкой и не должен быть пустым.');
191
- return;
192
- }
193
-
194
- const words = search.split(" ").filter(Boolean);
195
- const wordsCount = words.length;
196
- if (wordsCount >= 32) {
197
- console.error('Количество слов в поисковом запросе должно быть меньше 32.');
198
- return;
199
- }
200
-
201
- const o = 32 - wordsCount;
202
- if (o <= 0) {
203
- console.error('Ошибка в расчете o.');
204
  return;
205
  }
206
 
207
- const template = "site:*.*.%NUM%.* |";
208
- let query = "";
209
- const urls = [];
210
- const maxUrls = 10; // Ограничение количества URL для предотвращения блокировки
211
-
212
- try {
213
- for (let i = 0; i < Math.floor(256 / o) && i < maxUrls; i++) {
214
- query = "";
215
- for (let ii = 0; ii < (257 - (i * o)); ii++) {
216
- query += template.replace("%NUM%", ii);
217
- }
218
- query = query.slice(0, -1);
219
- query = `(${search}) (${query})`;
220
- const url = `https://www.google.com/search?q=${encodeURIComponent(query)}`;
221
- urls.push(url);
222
- }
223
-
224
- // Открываем URL с задержкой для предотвращения блокировки
225
- urls.forEach((url, index) => {
226
- setTimeout(() => {
227
- window.open(url, '_blank', 'noreferrer');
228
- }, index * 1000); // Задержка 1 секунда между открытием вкладок
229
- });
230
-
231
- } catch (error) {
232
- console.error('Произошла ошибка:', error);
233
- }
234
  }
235
  </script>
236
  </body>
237
- </html>
 
2
  <html lang="ru">
3
  <head>
4
  <meta charset="UTF-8">
5
+ <title>Google Dorking Tool</title>
6
  <style>
7
  body {
8
  background-color: #1a1a1a;
9
+ color: #00ff00;
10
  font-family: 'Courier New', monospace;
11
  margin: 0;
12
+ padding: 20px;
13
  }
14
 
15
  .container {
16
+ max-width: 1200px;
17
+ margin: 0 auto;
18
  text-align: center;
19
  padding: 20px;
20
  border-radius: 10px;
21
  background-color: #2d2d2d;
22
+ box-shadow: 0 0 20px rgba(0,255,0,0.2);
23
  }
24
 
25
+ .search-box {
26
  width: 80%;
27
+ margin: 20px auto;
28
+ padding: 20px;
 
 
 
 
29
  background-color: #333333;
30
+ border-radius: 10px;
31
+ border: 1px solid #00ff00;
32
  }
33
 
34
+ .search-input {
35
+ width: 80%;
36
+ padding: 10px;
37
+ margin: 10px;
38
+ font-family: 'Courier New', monospace;
39
+ background-color: #444;
40
+ border: 1px solid #00ff00;
41
+ border-radius: 5px;
42
  }
43
 
44
  .search-button {
45
+ padding: 10px 20px;
46
+ margin: 10px;
47
+ font-family: 'Courier New', monospace;
48
+ background-color: #00ff00;
49
+ color: #1a1a1a;
50
  border: none;
51
+ border-radius: 5px;
52
  cursor: pointer;
53
+ transition: all 0.3s;
 
 
54
  }
55
 
56
  .search-button:hover {
57
+ background-color: #00cc00;
58
+ transform: scale(1.05);
59
  }
60
 
61
  .examples {
62
+ margin: 20px auto;
63
  padding: 20px;
64
  background-color: #333333;
65
  border-radius: 10px;
66
+ border: 1px solid #00ff00;
67
  }
68
 
69
  .examples h2 {
70
+ color: #00ff00;
71
  margin-bottom: 20px;
 
72
  }
73
 
74
  .examples-list {
75
+ list-style: none;
76
  padding: 0;
77
  }
78
 
79
  .examples-list li {
 
80
  padding: 15px;
81
+ margin: 10px 0;
82
  background-color: #2d2d2d;
83
  border-radius: 5px;
84
+ border: 1px solid #00ff00;
85
  cursor: pointer;
86
  transition: all 0.3s;
 
87
  }
88
 
89
  .examples-list li:hover {
90
  background-color: #333333;
91
  transform: translateX(5px);
92
+ box-shadow: 2px 2px 5px rgba(0,255,0,0.2);
 
 
 
 
 
93
  }
94
 
95
  .copy-indicator {
96
  position: absolute;
97
  right: 10px;
98
  top: 10px;
99
+ color: #00ff00;
100
  font-size: 14px;
101
  opacity: 0;
102
  transition: opacity 0.3s;
 
106
  opacity: 1;
107
  }
108
 
109
+ .pagination {
110
+ margin: 20px auto;
111
+ padding: 10px;
 
112
  background-color: #333333;
113
+ border-radius: 5px;
114
+ border: 1px solid #00ff00;
 
 
 
 
 
 
 
 
115
  }
116
 
117
+ .pages-select {
118
+ padding: 8px;
119
  margin: 10px;
120
+ background-color: #444;
121
+ color: #00ff00;
122
+ border: 1px solid #00ff00;
123
  border-radius: 5px;
124
+ font-family: 'Courier New', monospace;
125
+ }
126
+
127
+ .pages-select:focus {
128
+ outline: none;
129
+ border-color: #00ff00;
130
+ box-shadow: 0 0 5px rgba(0,255,0,0.3);
131
  }
132
  </style>
133
  </head>
134
  <body>
135
  <div class="container">
136
+ <div class="search-box">
137
+ <input type="text" class="search-input" placeholder="Введите ваш Google Dork..." id="searchInput">
138
+ <button class="search-button" onclick="performSearch()">Поиск</button>
139
+ </div>
140
+
141
+ <div class="pagination">
142
+ <select class="pages-select" id="pagesSelect">
143
+ <option value="1" selected>1 страница</option>
144
+ <option value="2">2 страницы</option>
145
+ <option value="3">3 страницы</option>
146
+ <option value="4">4 страницы</option>
147
+ <option value="5">5 страниц</option>
148
+ <option value="6">6 страниц</option>
149
+ <option value="7">7 страниц</option>
150
+ <option value="8">8 страниц</option>
151
+ <option value="9">9 страниц</option>
152
+ <option value="10">10 страниц</option>
153
+ </select>
154
+ </div>
155
 
156
  <div class="examples">
157
+ <h2>Примеры Google Dorking запросов</h2>
158
  <ul class="examples-list">
159
  <li onclick="copyToClipboard('intitle:index.of filetype:php')">
160
  <strong>Поиск открытых директорий:</strong><br>
161
  intitle:index.of filetype:php
162
  <span class="copy-indicator">скопировано</span>
163
  </li>
164
+ <li onclick="copyToClipboard('filetype:txt intext:"password"')">
165
+ <strong>Поиск файлов с паролями:</strong><br>
166
+ filetype:txt intext:"password"
167
+ <span class="copy-indicator">скопировано</span>
168
+ </li>
169
+ <li onclick="copyToClipboard('filetype:conf inurl:config')">
170
+ <strong>Поиск конфигурационных файлов:</strong><br>
171
+ filetype:conf inurl:config
172
+ <span class="copy-indicator">скопировано</span>
173
+ </li>
174
+ <li onclick="copyToClipboard('filetype:log intext:"error"')">
175
+ <strong>Поиск файлов с логами:</strong><br>
176
+ filetype:log intext:"error"
177
+ <span class="copy-indicator">скопировано</span>
178
+ </li>
179
+ <li onclick="copyToClipboard('inurl:.* -intext:github')">
180
+ <strong>Поиск скрытых файлов:</strong><br>
181
+ inurl:.* -intext:github
182
+ <span class="copy-indicator">скопировано</span>
183
+ </li>
184
+ <li onclick="copyToClipboard('filetype:json intext:"api_key"')">
185
+ <strong>Поиск API ключей:</strong><br>
186
+ filetype:json intext:"api_key"
187
+ <span class="copy-indicator">скопировано</span>
188
+ </li>
189
+ <li onclick="copyToClipboard('filetype:sql intext:"users"')">
190
+ <strong>Поиск резервных копий баз данных:</strong><br>
191
+ filetype:sql intext:"users"
192
+ <span class="copy-indicator">скопировано</span>
193
+ </li>
194
+ <li onclick="copyToClipboard('filetype:env intext:"DB_PASSWORD"')">
195
+ <strong>Поиск файлов .env:</strong><br>
196
+ filetype:env intext:"DB_PASSWORD"
197
+ <span class="copy-indicator">скопировано</span>
198
+ </li>
199
  </ul>
200
  </div>
201
  </div>
 
203
  <script>
204
  function copyToClipboard(text) {
205
  navigator.clipboard.writeText(text).then(() => {
206
+ const indicators = document.querySelectorAll('.copy-indicator');
207
+ indicators.forEach(indicator => {
208
+ indicator.classList.add('show');
209
+ setTimeout(() => indicator.classList.remove('show'), 2000);
210
+ });
211
  });
212
  }
213
 
214
+ function performSearch() {
 
215
  const searchQuery = document.getElementById('searchInput').value;
216
+ const pages = document.getElementById('pagesSelect').value;
217
+
218
+ if (searchQuery.trim() === '') {
219
+ alert('Введите запрос для поиска!');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  return;
221
  }
222
 
223
+ // Логика для поиска по Google с учетом количества страниц
224
+ console.log('Поиск по запросу:', searchQuery);
225
+ console.log('Количество страниц:', pages);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  }
227
  </script>
228
  </body>
229
+ </html>