Title here
Summary here
Spider supports all types of Go tools.
If you want to install Go package using go install
, then follow this example:
#!/bin/bash
# Include shells
source ./core/scripts/install/languages/go.sh
echo "Installing Hakrawler..."
try go install github.com/hakluke/hakrawler@latest
echo_green "Successfully installed!"
{
"model": "tools.tool",
"pk": null,
"fields": {
"name": "Hakrawler",
"run": "~/go/bin/hakrawler",
"script": "igt/hakrawler.sh",
"category_slug": "igt",
"git_repo": "https://github.com/hakluke/hakrawler",
"website": "https://hakluke.com",
"short_desc": "Simple, fast web crawler designed for easy, quick discovery of endpoints and assets within a web application."
}
}
You can also build from Git repository:
#!/bin/bash
# Tool
export tool_language="go"
export tool_directory="tooldir"
export branch_name="main"
export has_dependencies=true
export git_repo="https://github.com/username/toolname"
# Install
source ./core/scripts/libs/install.sh
{
"model": "tools.tool",
"pk": null,
"fields": {
"name": "Tool Name",
"lang": "go",
"directory": "tooldir",
"run": "tool.py",
"script": "others/tool.sh",
"category_slug": "others",
"git_repo": "https://github.com/username/toolname",
"short_desc": "Short description"
}
}