Skip to content

OWTF Installation Backend

Viyat Bhalodia edited this page Feb 10, 2018 · 6 revisions

** THIS IS DEPRECATED **

Introduction

With the aim of supporting as many linux distributions as possible, OWTF tries to make the installation procedure as smooth as possible. But it is a challenging task to provide install scripts for different distributions and control them accordingly.

Architecture

The stuff needed by OWTF is divided into three categories (in the order of their installation):

  • Some restricted tools and dictionaries which are distro-independent => These are installed using basic commands
  • Some utilities and tools which are distro dependent => These are installed using distro specific commands
  • Python libraries required by OWTF => OWTF uses pip to install these libraries
Distro-Independent

These are present in install/restricted.cfg. Example

[SSL cipher Check]
directory = %(RootDir)s/tools/restricted/ssl/ssl-cipher-check
command = wget http://unspecific.com/ssl/ssl-cipher-check.pl; chmod 700 *
  • The directory is used to check if the tool is already installed
  • If not, command is executed inside the directory
  • If there are too many commands to run, a script can also be called like
[CMS Explorer]
directory = %(RootDir)s/tools/restricted/cms-explorer
command = sh %(RootDir)s/install/update_convert_cms_explorer_dicts.sh %(RootDir)s
Distro-Dependent
  • Different distributions have different install scripts. It is recommended to create a directory for a distro inside install/ and place all relevent install & patch scripts inside it.
  • Register the distribution in install/linux-distributions.cfg. Example
[Kali Linux]
install = sh %(RootDir)s/install/kali/install.sh %(RootDir)s

NOTE: Only one command should be provided for a distribution in config file, so it should be ensured that all other scripts are called from it. Check the install scripts of kali for more help :P

OWTF Python Libraries
  • Pip is used to install owtf libraries, all these are present in install/owtf.pip

Clone this wiki locally