subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
VENDOR_CACHE_FILE = Path.home() / '.config' / 'netmap' / 'vendor_cache.json' DB_FILE.parent.mkdir(parents=True, exist_ok=True) NMAP_PATH = subprocess.run(['which', 'nmap'], capture_output=True, text=True).stdout.strip() or 'nmap' def load_vendor_cache():
- Confidence
- 82% confidence
- Finding
- NMAP_PATH = subprocess.run(['which', 'nmap'], capture_output=True, text=True).stdout.strip() or 'nmap'
