APT Tool

We are using Ubuntu OS. You can install any tools using apt.

Script

tools/scripts/igt/nmap.sh
#!/bin/bash

# Include shells
source ./core/scripts/libs/config.sh

if command -v nmap &> /dev/null
then
    echo_yellow "Nmap is already installed!"
else
    echo "Installing Nmap..."
    try apt install nmap -y
    echo_green "Successfully installed!"
fi

Fixture

tools/fixtures/tools/igt.json
{
  "model": "tools.tool",
  "pk": null,
  "fields": {
    "name": "Nmap",
    "run": "nmap",
    "script": "igt/nmap.sh",
    "category_slug": "igt",
    "git_repo": "https://github.com/nmap/nmap",
    "website": "https://nmap.org",
    "short_desc": "Nmap - the Network Mapper"
  }
}