Go to file
Andrea Cardaci 8eaf595fe6 Make interactive execute whenever possible
Here the trick is to restore those file descriptors (0, 1, 2) that have been
redirected (`dup2`) by the parent process.

First we need to determine which one has been redirected, for example by looking
at `ls -l /proc/$$/fd/`. Then we can use `0<&x`, `1>&x` or `2>&x` to restore 0,
1 or 2 respectively, where `x` is any file descriptor number that points to the
TTY.

It may happen that no file descriptor is unchanged, in that case we can use
`tty` to perform the redirection: sh <$(tty) >$(tty) 2>$(tty)
2018-09-07 01:11:06 +02:00
_data Rephrase sudo functions 2018-08-24 14:34:09 +01:00
_gtfobins Make interactive execute whenever possible 2018-09-07 01:11:06 +02:00
_includes Indent and simplify HTML snippets 2018-05-29 21:52:10 +02:00
_layouts Reverse title components order so to work well with narrow tabs too 2018-06-05 19:44:13 +02:00
assets Fix examples style 2018-06-05 00:22:30 +02:00
scripts Add a simple YAML schema validation test 2018-08-31 15:50:54 +02:00
_config.yml Add a simple YAML schema validation test 2018-08-31 15:50:54 +02:00
.gitignore First commit 2018-05-21 20:14:41 +01:00
.travis.yml Fix TravisCI 2018-08-31 18:18:08 +02:00
.yamllint Fix YAMLs according to YAMLlint 2018-07-16 15:01:50 +02:00
contribute.md Fix contribute.md markdown 2018-05-31 12:24:57 +02:00
CONTRIBUTING.md Update link in the CONTRIBUTING 2018-05-21 22:11:01 +02:00
functions.md First commit 2018-05-21 20:14:41 +01:00
Gemfile First commit 2018-05-21 20:14:41 +01:00
Gemfile.lock First commit 2018-05-21 20:14:41 +01:00
index.md Minor reword 2018-05-30 18:33:15 +01:00
Makefile Add a simple YAML schema validation test 2018-08-31 15:50:54 +02:00
README.md Add Travis CI support 2018-07-16 15:55:16 +02:00

GTFOBins Build Status

GTFOBins is a curated list of Unix binaries that can be exploited by an attacker to bypass local security restrictions.

Browse the project here.