From 37d26c61f17d72c8333c055a46c9a08d9a7a5127 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Thu, 11 Jul 2024 00:35:34 +0200 Subject: [PATCH] Allow to serve the site from a sub directory --- _includes/function_list.html | 4 ++-- _includes/gtfobins_table.html | 2 +- _includes/page_title.html | 2 +- _layouts/common.html | 4 ++-- _layouts/gtfobin.html | 9 +++++---- index.md | 8 ++++---- model.md | 2 +- 7 files changed, 16 insertions(+), 15 deletions(-) diff --git a/_includes/function_list.html b/_includes/function_list.html index 84351ad..9fa3806 100644 --- a/_includes/function_list.html +++ b/_includes/function_list.html @@ -11,7 +11,7 @@ {% include get_contexts_label.html examples=_examples %}
  • - {{ _function.label }} + {{ _function.label }}
  • {% endfor %} @@ -38,7 +38,7 @@ {% unless _inherited_functions contains _function_name %}{% continue %}{% endunless %}
  • - {{ _function.label }} + {{ _function.label }}
  • {% endfor %} diff --git a/_includes/gtfobins_table.html b/_includes/gtfobins_table.html index c283868..6fe0928 100644 --- a/_includes/gtfobins_table.html +++ b/_includes/gtfobins_table.html @@ -50,7 +50,7 @@ {% comment %} render the row {% endcomment %} - {{ gtfobin_name }} + {{ gtfobin_name }} {% include function_list.html gtfobin=original_gtfobin functions=gtfobin.functions %} {% endfor %} diff --git a/_includes/page_title.html b/_includes/page_title.html index e0b3b1f..f965d66 100644 --- a/_includes/page_title.html +++ b/_includes/page_title.html @@ -1,6 +1,6 @@

    {% if page.url != '/' %} - .. / + .. / {% endif %} {{ include.title }}
    diff --git a/_layouts/common.html b/_layouts/common.html index b16c352..f55d910 100644 --- a/_layouts/common.html +++ b/_layouts/common.html @@ -12,8 +12,8 @@ {{ title }} - - + + diff --git a/_layouts/gtfobin.html b/_layouts/gtfobin.html index 7fdd5f9..6934817 100644 --- a/_layouts/gtfobin.html +++ b/_layouts/gtfobin.html @@ -17,7 +17,7 @@ {% assign gtfobin = return_gtfobin %} {% comment %} render a message about being an alias {% endcomment %} -

    This is an alias of {{ return_gtfobin_name }}.

    +

    This is an alias of {{ return_gtfobin_name }}.

    {% else %} {% assign gtfobin = original_gtfobin %} {% endif %} @@ -61,14 +61,15 @@

    {{- function.label -}}

    {% comment %} add a link to the inheriting executable and display the functions {% endcomment %} {% if function_name == "inherit" %} + {% include get_gtfobin.html name=example.from %} + {% assign gtfobin = return_gtfobin %} +
    Functions

    - Inherits from {{ example.from | escape }}, thus possibly granting the following functions: + Inherits from {{ example.from | escape }}, thus possibly granting the following functions:

    - {% include get_gtfobin.html name=example.from %} - {% assign gtfobin = return_gtfobin %} {% include function_list.html gtfobin=gtfobin functions=gtfobin.functions %}

    diff --git a/index.md b/index.md index 25ca74d..1d592e4 100644 --- a/index.md +++ b/index.md @@ -4,13 +4,13 @@ title: GTFOBins description: GTFOBins is a curated list of Unix-like executables that can be used to bypass local security restrictions in misconfigured systems. --- -![GTFOBins logo](/assets/logo.png){:.logo} +![GTFOBins logo]({% link /assets/logo.png %}){:.logo} {{ page.description }} -The project [collects](/model/) legitimate functions of Unix-like executables that can be abused to ~~get the f**k~~ break out restricted shells, escalate or maintain elevated privileges, transfer files, spawn bind and reverse shells, and facilitate other post-exploitation tasks. +The project [collects]({% link model.md %}) legitimate functions of Unix-like executables that can be abused to ~~get the f**k~~ break out restricted shells, escalate or maintain elevated privileges, transfer files, spawn bind and reverse shells, and facilitate other post-exploitation tasks. -GTFOBins is a joint effort by [Emilio Pinna][norbemi] and [Andrea Cardaci][cyrus_and], and many other [contributors][]. Everyone con [get involved](/contributing/) by providing additional entries and techniques! +GTFOBins is a joint effort by [Emilio Pinna][norbemi] and [Andrea Cardaci][cyrus_and], and many other [contributors][]. Everyone con [get involved]({% link CONTRIBUTING.md %}) by providing additional entries and techniques! If you are looking for Windows binaries you should visit [LOLBAS][]. @@ -18,7 +18,7 @@ If you are looking for Windows binaries you should visit [LOLBAS][]. [GitHub][] | -[Get involved](/contributing/) +[Get involved]({% link CONTRIBUTING.md %}) | [Contributors][contributors] {:.centered} diff --git a/model.md b/model.md index e4c5088..df9ea48 100644 --- a/model.md +++ b/model.md @@ -4,7 +4,7 @@ title: Data model description: Functions and contexts of the GTFOBins executables. --- -An executable may support one or more [function](#functions) by providing a number of *examples* for their use, each example may support a number of [contexts](#contexts) that determine the ability of that example to work in that particular condition. +An executable may support one or more _function_ by providing a number of *examples* for their use, each example may support a number of _contexts_ that determine the ability of that example to work in that particular condition. ## Functions