diff --git a/ida-plugin.json b/ida-plugin.json index c4fcecb..bbc0030 100644 --- a/ida-plugin.json +++ b/ida-plugin.json @@ -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" @@ -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." + } + ] } } diff --git a/plugin/virustotal/config.py b/plugin/virustotal/config.py index 0931e56..4562a69 100644 --- a/plugin/virustotal/config.py +++ b/plugin/virustotal/config.py @@ -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 \ No newline at end of file