Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion ida-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"idaVersions": ">=8",
"description": "Integrates VirusTotal's powerful analysis capabilities directly into your reverse engineering workflow.",
"license": "Apache 2.0",
"logoPath": "plugin/virustotal/vt_ida/ui/resources/vt_logo.png",
"categories": [
"ui-ux-and-visualization",
"integration-with-third-parties-interoperability"
Expand All @@ -24,6 +25,25 @@
"authors": [{
"name": "Gerardo Fernandez",
"email": "gerardofn@virustotal.com"
}]
}],
"settings": [
{
"name": "VirusTotal Api Key",
"key": "api_key",
"title": "VirusTotal API Key for Code Insight",
"type": "string",
"required": false,
"documentation": "Your VirusTotal API key is required to access Code Insight features. You can obtain an API key by creating a free account on VirusTotal's website."
},
{
"name": "Enable Debug Mode",
"key": "debug",
"title": "Enable Debug Mode",
"type": "boolean",
"default": false,
"required": false,
"documentation": "Enable debug mode to log detailed information for troubleshooting purposes."
}
]
}
}
12 changes: 12 additions & 0 deletions plugin/virustotal/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@
API_KEY = '' # Mandatory for CodeInsight
DEBUG = False

try:
import ida_settings

vt_api_key = ida_settings.get_current_plugin_setting("api_key")
if vt_api_key:
API_KEY = vt_api_key

vt_debug = ida_settings.get_current_plugin_setting("debug")
if vt_debug is not None:
DEBUG = bool(vt_debug)
except:
pass