-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
134 lines (120 loc) · 4.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<title>Bug Bounty Programs Feed</title>
<style>
body {
font-size: 14px;
}
</style>
</head>
<header>
<br>
<h1>Bug Bounty Program Feed</h2>
<p>Data sourced from <a href="https://github.com/arkadiyt/bounty-targets-data" target="_blank" rel="noopener noreferrer"> @arkadiyt on GitHub. </a></p>
</header>
<body>
<div class="container mt-5">
<!-- Domains Table -->
<h2>All Program Domains</h2>
</p><i>Includes Intigriti, YesWeHack, HackenProof, BugCrowd, HackerOne and Federacy. Review scope before testing:</i></p>
<select id="domainsRowCount" class="form-select mb-3">
<option value="25">Show 25</option>
<option value="50">Show 50</option>
<option value="100">Show 100</option>
<option value="200">Show 200</option>
<option value="400">Show 400</option>
</select>
<table class="table table-striped table-responsive" id="domainsTable"></table>
<!-- Wildcards Table -->
<h2>All Wildcards</h2>
</p><i>Includes Intigriti, YesWeHack, HackenProof, BugCrowd, HackerOne and Federacy. Review scope before testing:</i></p>
<select id="wildcardsRowCount" class="form-select mb-3">
<option value="25">Show 25</option>
<option value="50">Show 50</option>
<option value="100">Show 100</option>
<option value="200">Show 200</option>
<option value="400">Show 400</option>
</select>
<table class="table table-striped table-responsive" id="wildcardsTable"></table>
<!-- Hackerone Table -->
<h2>Hackerone Data</h2>
<select id="hackeroneRowCount" class="form-select mb-3">
<option value="25">Show 25</option>
<option value="50">Show 50</option>
<option value="100">Show 100</option>
<option value="200">Show 200</option>
<option value="400">Show 400</option>
</select>
<table class="table table-striped table-responsive" id="hackeroneTable"></table>
<!-- Bugcrowd Table -->
<h2>Bugcrowd</h2>
<select id="bugcrowdRowCount" class="form-select mb-3">
<option value="25">Show 10</option>
<option value="50">Show 50</option>
<option value="100">Show 100</option>
<option value="200">Show 200</option>
<option value="400">Show 400</option>
</select>
<table class="table table-striped table-responsive" id="bugcrowdTable"></table>
</div>
<script> document.addEventListener("DOMContentLoaded", function() {
async function fetchData(apiUrl, tableId, rowCountId, isJson = true, defaultRowCount = 25) {
const response = await fetch(apiUrl);
let data = isJson ? await response.json() : await response.text().then(text => text.split('\n'));
const element = document.getElementById(rowCountId);
if (element !== null) {
populateTable(data, tableId, defaultRowCount);
element.addEventListener('change', function() {
populateTable(data, tableId, parseInt(this.value));
});
}
}
function populateTable(data, tableId, rowCount) {
const table = document.getElementById(tableId);
let keys;
if (tableId === 'bugcrowdTable' || tableId === 'hackeroneTable') {
keys = Object.keys(data[0]).filter(key => key !== 'id');
if (tableId === 'hackeroneTable' || tableId === 'hackeroneTable' ) {
const preferredOrder = ['name', 'url', 'website', 'targets'];
keys = preferredOrder.concat(keys.filter(key => !preferredOrder.includes(key)));
}
} else {
keys = ['Entry'];
}
let header = '<thead><tr>';
keys.forEach(key => header += `<th>${key.replace(/_/g, ' ').toUpperCase()}</th>`);
header += '</tr></thead>';
table.innerHTML = header;
let rows = '';
for (let i = 0; i < rowCount; i++) {
const row = data[i];
if (!row) break;
rows += '<tr>';
keys.forEach(key => {
if (key === 'targets') {
const inScopeUrls = row[key]?.in_scope.map(scope => scope.target || scope.asset_identifier).join(', ');
rows += `<td>${inScopeUrls}</td>`;
} else if (key === 'Entry') {
rows += `<td>${row}</td>`;
} else {
rows += `<td>${row[key]}</td>`;
}
});
rows += '</tr>';
}
table.innerHTML += rows;
}
fetchData('https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/main/data/bugcrowd_data.json', 'bugcrowdTable', 'bugcrowdRowCount');
fetchData('https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/main/data/hackerone_data.json', 'hackeroneTable', 'hackeroneRowCount');
fetchData('https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/main/data/domains.txt', 'domainsTable', 'domainsRowCount', false);
fetchData('https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/main/data/wildcards.txt', 'wildcardsTable', 'wildcardsRowCount', false);
});
</script>
</body>
<footer>
</footer>
</html>