
Stækka Metasploit - Extenting Metasploit
This Msf plugin extends Metasploit for some missing features and modules allowing interaction with other/custom exploits/ways of getting shell access. The current focus here is Linux/Unix support.
TTY support: starting a shell from Metasploit allowing interaction with TTY support and session migration into Metasploit. This allows custom ways of gaining a shell (private non-metasploit exploits) and to use this shell as Metasploit session for executing post exploitation modules. There is also another SSH module for using a TTY shell while interacting with the session.
Performance hacks: For improving performance caching has been added allowing to cache command output of often used commands (like uname) or files. For searching files it is possible to run "find" once and to store the results. This can be re-used for many search requests (find all files with *shadow*, find all suid files, ...etc). For recursive downloads tar can be used which speeds up downloads.
Setting environment and loading it for further usage (can be any shell profile/startup)
export STAEKKA_PATH=$HOME/.staekka/
echo 'export STAEKKA_PATH=$HOME/.staekka/' >>$HOME/.profile
Copy it into installation directory
cp -r staekka $STAEKKA_PATH
Copy Metasploit plugins
mkdir -p $HOME/.msf4/plugins/
cp $STAEKKA_PATH/plugins/staekka.rb $HOME/.msf4/plugins/
cp $STAEKKA_PATH/plugins/info_path.rb $HOME/.msf4/plugins/
Installation of dependencies (gem installation without root required)
gem install --user bindata
gem install --user minitar
gem install --user ruby-termios
Or installation of dependencies via bundler
cd $STAEKKA_PATH
bundle install
$ export STAEKKA_PATH=$HOME/.staekka/
$ cd ../metasploit-framework/
$ ./msfconsole
msf > load staekka
msf > use auxiliary/shell/interactive
msf auxiliary(interactive) > info
Stækka: Icelandic word for (enlarge/expand/grow). This plugin extends Metasploit for some features.
Sometimes msfconsole shows "\r" Fix: Use the system Readline library instead of RbReadline
msfconsole -L