1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-01-19 14:01:33 +01:00
GTFOBins.github.io/api.json
2024-09-14 09:14:56 +02:00

24 lines
904 B
JSON

---
---
{
"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 %}
}
}