-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathoptions.html
More file actions
executable file
·627 lines (555 loc) · 17.7 KB
/
options.html
File metadata and controls
executable file
·627 lines (555 loc) · 17.7 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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>debugHunter - Settings</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css">
<style>
:root {
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--bg-hover: #30363d;
--border-color: #30363d;
--text-primary: #f0f6fc;
--text-secondary: #8b949e;
--text-muted: #6e7681;
--accent: #a371f7;
--accent-hover: #8957e5;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--info: #58a6ff;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.5;
padding: 0;
min-height: 100vh;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 32px 24px;
}
/* Header */
.header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 32px;
padding-bottom: 24px;
border-bottom: 1px solid var(--border-color);
}
.header-icon {
width: 48px;
height: 48px;
background: var(--accent);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
.header-text h1 {
font-size: 24px;
font-weight: 600;
margin-bottom: 4px;
}
.header-text p {
color: var(--text-secondary);
font-size: 14px;
}
/* Sections */
.section {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
margin-bottom: 24px;
overflow: hidden;
}
.section-header {
display: flex;
align-items: center;
gap: 12px;
padding: 16px 20px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-color);
}
.section-header i {
font-size: 16px;
color: var(--accent);
}
.section-header h2 {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.section-content {
padding: 20px;
}
/* Form Groups */
.form-group {
margin-bottom: 24px;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-group label {
display: block;
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
color: var(--text-primary);
}
.form-group .description {
font-size: 12px;
color: var(--text-muted);
margin-top: 6px;
line-height: 1.4;
}
/* Range Inputs */
.range-container {
display: flex;
align-items: center;
gap: 16px;
}
.range-container input[type="range"] {
flex: 1;
height: 6px;
background: var(--bg-tertiary);
border-radius: 3px;
appearance: none;
cursor: pointer;
}
.range-container input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 18px;
height: 18px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
transition: transform 0.15s ease;
}
.range-container input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.1);
}
.range-value {
min-width: 60px;
padding: 6px 12px;
background: var(--bg-tertiary);
border-radius: 6px;
font-size: 13px;
font-weight: 500;
text-align: center;
color: var(--accent);
}
/* Checkboxes */
.checkbox-group {
display: flex;
flex-direction: column;
gap: 12px;
}
.checkbox-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px;
background: var(--bg-tertiary);
border-radius: 8px;
cursor: pointer;
transition: background 0.15s ease;
}
.checkbox-item:hover {
background: var(--bg-hover);
}
.checkbox-item input[type="checkbox"] {
appearance: none;
width: 20px;
height: 20px;
min-width: 20px;
background: var(--bg-primary);
border: 2px solid var(--border-color);
border-radius: 4px;
cursor: pointer;
position: relative;
margin-top: 2px;
}
.checkbox-item input[type="checkbox"]:checked {
background: var(--accent);
border-color: var(--accent);
}
.checkbox-item input[type="checkbox"]:checked::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 12px;
font-weight: bold;
}
.checkbox-content {
flex: 1;
}
.checkbox-content .title {
font-size: 14px;
font-weight: 500;
margin-bottom: 2px;
}
.checkbox-content .desc {
font-size: 12px;
color: var(--text-muted);
}
/* Select */
select {
width: 100%;
padding: 10px 14px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font-size: 14px;
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
}
select:focus {
outline: none;
border-color: var(--accent);
}
/* Text Input */
input[type="text"], input[type="number"] {
width: 100%;
padding: 10px 14px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font-size: 14px;
}
input[type="text"]:focus, input[type="number"]:focus {
outline: none;
border-color: var(--accent);
}
input[type="text"]::placeholder {
color: var(--text-muted);
}
/* Textarea */
textarea {
width: 100%;
padding: 12px 14px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font-size: 13px;
font-family: "SFMono-Regular", Consolas, monospace;
resize: vertical;
min-height: 100px;
}
textarea:focus {
outline: none;
border-color: var(--accent);
}
/* Whitelist */
.whitelist-container {
margin-top: 12px;
}
.whitelist-items {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 12px;
}
.whitelist-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: var(--bg-tertiary);
border-radius: 6px;
}
.whitelist-item span {
font-size: 13px;
font-family: "SFMono-Regular", Consolas, monospace;
}
.whitelist-item button {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 4px 8px;
border-radius: 4px;
transition: all 0.15s ease;
}
.whitelist-item button:hover {
background: var(--danger);
color: white;
}
.add-form {
display: flex;
gap: 8px;
}
.add-form input {
flex: 1;
}
.add-form button {
padding: 10px 20px;
background: var(--accent);
border: none;
border-radius: 8px;
color: white;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background 0.15s ease;
}
.add-form button:hover {
background: var(--accent-hover);
}
/* Info Box */
.info-box {
display: flex;
gap: 12px;
padding: 14px;
background: rgba(88, 166, 255, 0.1);
border: 1px solid rgba(88, 166, 255, 0.3);
border-radius: 8px;
margin-top: 16px;
}
.info-box i {
color: var(--info);
font-size: 16px;
margin-top: 2px;
}
.info-box p {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.5;
}
/* Status indicator */
.status-saved {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
background: rgba(63, 185, 80, 0.15);
border-radius: 4px;
font-size: 11px;
color: var(--success);
opacity: 0;
transition: opacity 0.3s ease;
}
.status-saved.show {
opacity: 1;
}
/* Divider */
.divider {
height: 1px;
background: var(--border-color);
margin: 20px 0;
}
/* Footer */
.footer {
text-align: center;
padding: 24px;
color: var(--text-muted);
font-size: 12px;
}
.footer a {
color: var(--accent);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<div class="header">
<div class="header-icon">
<i class="fas fa-bug"></i>
</div>
<div class="header-text">
<h1>debugHunter Settings</h1>
<p>Configure detection behavior and reduce false positives</p>
</div>
</div>
<!-- Detection Mode -->
<div class="section">
<div class="section-header">
<i class="fas fa-crosshairs"></i>
<h2>Detection Strategy</h2>
</div>
<div class="section-content">
<div class="form-group">
<label>Detection Mode</label>
<select id="detectionMode">
<option value="smart">Smart (Recommended) - Multi-factor analysis</option>
<option value="aggressive">Aggressive - More findings, more FPs</option>
<option value="conservative">Conservative - Fewer FPs, may miss some</option>
<option value="keywords-only">Keywords Only - Only flag debug indicators</option>
</select>
<p class="description">Smart mode combines multiple signals: status code changes, content length, debug keywords, and similarity.</p>
</div>
<div class="divider"></div>
<div class="form-group">
<label>Detection Requirements</label>
<div class="checkbox-group">
<label class="checkbox-item">
<input type="checkbox" id="requireDebugIndicators" checked>
<div class="checkbox-content">
<div class="title">Require Debug Indicators</div>
<div class="desc">Only flag responses that contain debug keywords (stack traces, secrets, error messages)</div>
</div>
</label>
<label class="checkbox-item">
<input type="checkbox" id="detectStatusChanges" checked>
<div class="checkbox-content">
<div class="title">Detect Status Code Changes</div>
<div class="desc">Flag when a parameter changes the HTTP status (e.g., 403→200, 200→500)</div>
</div>
</label>
<label class="checkbox-item">
<input type="checkbox" id="detectHeaderChanges" checked>
<div class="checkbox-content">
<div class="title">Detect Response Header Changes</div>
<div class="desc">Flag when response headers reveal debug info (X-Debug, X-Powered-By, Server)</div>
</div>
</label>
<label class="checkbox-item">
<input type="checkbox" id="filterDynamicContent" checked>
<div class="checkbox-content">
<div class="title">Filter Dynamic Content</div>
<div class="desc">Remove timestamps, CSRF tokens, and session IDs before comparing responses</div>
</div>
</label>
</div>
</div>
</div>
</div>
<!-- Thresholds -->
<div class="section">
<div class="section-header">
<i class="fas fa-sliders-h"></i>
<h2>Thresholds</h2>
</div>
<div class="section-content">
<div class="form-group">
<label>Similarity Threshold <span class="status-saved" id="similaritySaved"><i class="fas fa-check"></i> Saved</span></label>
<div class="range-container">
<input type="range" id="similarityThreshold" min="0.5" max="0.99" step="0.01" value="0.90">
<span class="range-value" id="similarityValue">0.90</span>
</div>
<p class="description">How similar two responses must be to be considered "the same". Lower = more aggressive (more FPs). Used as secondary check in Smart mode.</p>
</div>
<div class="divider"></div>
<div class="form-group">
<label>Minimum Content Length Difference <span class="status-saved" id="lengthSaved"><i class="fas fa-check"></i> Saved</span></label>
<div class="range-container">
<input type="range" id="minLengthDiff" min="50" max="2000" step="50" value="200">
<span class="range-value" id="lengthValue">200</span>
</div>
<p class="description">Minimum bytes difference to consider a response "changed". Higher = fewer false positives from minor dynamic content.</p>
</div>
<div class="divider"></div>
<div class="form-group">
<label>Check Interval (minutes) <span class="status-saved" id="intervalSaved"><i class="fas fa-check"></i> Saved</span></label>
<div class="range-container">
<input type="range" id="checkInterval" min="1" max="1440" step="1" value="480">
<span class="range-value" id="intervalValue">480</span>
</div>
<p class="description">How often to re-check the same URL. Default: 480 minutes (8 hours).</p>
</div>
</div>
</div>
<!-- Dynamic Content Filters -->
<div class="section">
<div class="section-header">
<i class="fas fa-filter"></i>
<h2>Dynamic Content Filters</h2>
</div>
<div class="section-content">
<div class="form-group">
<label>Patterns to Remove Before Comparison</label>
<textarea id="dynamicPatterns" placeholder="One regex pattern per line..."></textarea>
<p class="description">Regex patterns for dynamic content to strip before comparing responses. Examples: timestamps, CSRF tokens, nonces.</p>
</div>
<div class="info-box">
<i class="fas fa-lightbulb"></i>
<p>
<strong>Default patterns include:</strong> Unix timestamps, ISO dates, UUIDs, CSRF tokens, session IDs, nonces, and common cache busters.
Add custom patterns here if you're seeing false positives from specific dynamic content.
</p>
</div>
</div>
</div>
<!-- Rate Limiting -->
<div class="section">
<div class="section-header">
<i class="fas fa-tachometer-alt"></i>
<h2>Rate Limiting</h2>
</div>
<div class="section-content">
<div class="form-group">
<label>Base Delay Between Requests (ms) <span class="status-saved" id="delaySaved"><i class="fas fa-check"></i> Saved</span></label>
<div class="range-container">
<input type="range" id="baseDelay" min="100" max="2000" step="100" value="300">
<span class="range-value" id="delayValue">300</span>
</div>
<p class="description">Minimum delay between requests to the same domain. Auto-increases on rate limiting.</p>
</div>
<div class="divider"></div>
<div class="form-group">
<label>Max Concurrent Checks</label>
<select id="maxConcurrent">
<option value="1">1 - Safest, slowest</option>
<option value="2">2 - Balanced</option>
<option value="3" selected>3 - Default</option>
<option value="5">5 - Faster, riskier</option>
</select>
<p class="description">How many different check types can run in parallel (params, headers, paths).</p>
</div>
</div>
</div>
<!-- Whitelist -->
<div class="section">
<div class="section-header">
<i class="fas fa-shield-alt"></i>
<h2>Whitelist</h2>
</div>
<div class="section-content">
<div class="form-group">
<label>Whitelisted Domains</label>
<p class="description">Domains to skip scanning. Supports wildcards (*.example.com).</p>
<div class="whitelist-container">
<div class="whitelist-items" id="whitelistItems"></div>
<form class="add-form" id="addWhitelistForm">
<input type="text" id="newWhitelistDomain" placeholder="example.com or *.example.com">
<button type="submit"><i class="fas fa-plus"></i> Add</button>
</form>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="footer">
<p>debugHunter v2.0.1 • <a href="https://github.com/devploit/debugHunter" target="_blank">GitHub</a> • Exposing what should stay hidden</p>
</div>
</div>
<script src="options.js"></script>
</body>
</html>