Python Tool

Spider supports all types of Python tools.

Python Package

If you want to install Python package using pip install, then follow this example. It is almost similar to APT tool.

Script

tools/scripts/others/cyberonix.sh
#!/bin/bash

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

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

Fixture

tools/fixtures/tools/others.json
{
  "model": "tools.tool",
  "pk": null,
  "fields": {
    "name": "Cyberonix",
    "run": "cyberonix",
    "script": "others/cyberonix.sh",
    "category_slug": "others",
    "short_desc": "Short description"
  }
}

Python Build

You can also build from Git repository:

Script

others/waymore.sh
#!/bin/bash

# Tool
export tool_language="python"
export tool_directory="waymore"
export branch_name="main"
export has_dependencies=true
export git_repo="https://github.com/xnl-h4ck3r/waymore"

# Install
source ./core/scripts/libs/install.sh

Fixture

igt.json
{
  "model": "tools.tool",
  "pk": null,
  "fields": {
    "name": "WayMore",
    "lang": "python",
    "directory": "waymore",
    "run": "waymore.py",
    "script": "others/waymore.sh",
    "category_slug": "others",
    "git_repo": "https://github.com/xnl-h4ck3r/waymore",
    "short_desc": "Find way more from the Wayback Machine!"
  }
}