1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-24 09:41:53 +01:00
GTFOBins.github.io/_includes/get_gtfobin.html
2026-01-23 19:23:16 +01:00

10 lines
485 B
HTML

{%- comment -%} lookup a gtfobin by name and return it via the return_gtfobin and return_gtfobin_name variables {%- endcomment -%}
{%- for _gtfobin in site.gtfobins -%}
{%- capture _gtfobin_name -%}{%- include get_gtfobin_name.html path=_gtfobin.path -%}{%- endcapture -%}
{%- if _gtfobin_name == include.name -%}
{%- assign return_gtfobin_name = _gtfobin_name -%}
{%- assign return_gtfobin = _gtfobin -%}
{%- break -%}
{%- endif -%}
{%- endfor -%}