Linux

List of useful tricks and utility for Linux.

Interactive shells

Sometimes, after exploiting a vulnerability, you get a shell that is not very interactive and that can break after a bad manipulation. Here are some tools and techniques that you can use to upgrade to a more interactive shell.

rlwrap

rlwrap is a "readline wrapper", a small utility that uses the GNU Readline library to allow the editing of keyboard input for any command.

Installation

git clone https://github.com/hanslub42/rlwrap.git
cd rlwrap
./configure;
make
sudo make install

Usage

rlwrap [-options] <command> <args>
# Example: get an interactive reverse shell
rlwrap nc -lvnp <IP> <PORT>

Github: https://github.com/hanslub42/rlwrap

Last updated