Repository navigation
Expand file tree
/
Copy pathcontributors.html
More file actions
62 lines (60 loc) · 3.16 KB
/
Copy pathcontributors.html
File metadata and controls
62 lines (60 loc) · 3.16 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
---
layout: page
title: Contributors
---
<script>
async function findGitHubContributors() {
const PATTERN = /<([^>]+)>; rel="next"/
let next_page = 'https://api.github.com/repos/LOLBAS-project/LOLBAS/contributors?anon=false';
while(next_page){
let githubApi = await fetch(next_page)
next_page = (PATTERN.exec(githubApi.headers.get("link")) || [null, null])[1];
let contributors = await (githubApi).json();
contributors.forEach(function (contributor) {
var div = document.createElement('div');
div.innerHTML = '<a href="https://github.com/' + contributor['login'] + '"><img src="https://avatars.githubusercontent.com/u/' + contributor['id'] + '?s=16&v=4" alt="Avatar of ' + contributor['login'] + '" class="external-favicon"></a> <a href="https://github.com/LOLBAS-project/LOLBAS/commits?author=' + contributor['login'] + '">' + contributor['login'] + '</a>';
document.getElementById("contributors").appendChild(div);
});
}
}
findGitHubContributors();
</script>
<p>We thank everyone who has contributed to this project via our <a href="https://www.github.com/LOLBAS-Project/LOLBAS">GitHub repository</a>:</p>
<div id="contributors"></div>
<p>We are also grateful to all who provided resources, such as research articles, blogs, and documentation, that enabled the creation of new entries for this project:</p>
<p>
<table id="bin-table">
<thead>
<tr>
<th style="width:80%">Website</th>
<th style="width:20%">Number of references</th>
</tr>
</thead>
<tbody>
{%- assign resources_url_all = '' | split: ',' -%}
{%- assign sites_expand = 'twitter.com,github.com,gist.github.com,medium.com,slideshare.net' | split: ',' -%}
{%- for file in site.lolbas -%}
{%- for resource in file.Resources -%}
{% assign base_url_ = resource.Link | downcase | replace: "www.","" | split: '//' | last | split: '/' -%}
{% assign base_url = base_url_[0] -%}
{% if base_url != null and base_url != "" -%}
{% if sites_expand contains base_url -%}
{% assign base_url = base_url_[0] | append: '/' | append: base_url_[1] -%}
{% endif -%}
{% assign resources_url_all = resources_url_all | push: base_url -%}
{% endif -%}
{%- endfor -%}
{%- endfor -%}
{%- assign resources_url = resources_url_all | group_by_exp: "item", "item" | sort: 'size' | reverse
| group_by: "size" -%}
{%- for count in resources_url -%}
{%- assign items = count.items | sort: 'name' -%}
{%- for elem in items -%}
<tr>
<td><img src="https://icons.duckduckgo.com/ip3/{{ elem.name | split:'/' | first | url_encode }}.ico" class="external-favicon" alt="Favicon of {{elem.name | split:'/' | first | escape }}"> <a href="https://{{ elem.name |escape }}">{{ elem.name | escape }}</a></td>
<td>{{ count.name }}</td>
</tr>
{%- endfor -%}
{%- endfor -%}
</tbody>
</table>