-
Notifications
You must be signed in to change notification settings - Fork 1
/
api.json
23 lines (23 loc) · 904 Bytes
/
api.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
---
{
"functions": {{ site.data.functions | jsonify -}},
"contexts": {{ site.data.contexts | jsonify -}},
"executables": {
{% for gtfobin in site.gtfobins -%}
{%- capture name -%}{%- include get_gtfobin_name.html path=gtfobin.path -%}{%- endcapture -%}
{{ name | jsonify -}}: {
{%- assign root_fields = 'comment,functions,alias' | split: ',' -%}
{%- assign comma = false -%}
{%- for field in root_fields -%}
{%- if gtfobin[field] -%}
{%- if comma -%},{%- endif -%}
{%- assign comma = true -%}
{{- field | jsonify -}}: {{- gtfobin[field] | jsonify -}}
{%- endif -%}
{%- endfor -%}
}
{%- unless forloop.last -%},{%- endunless %}
{% endfor %}
}
}