Skip to content
Snippets Groups Projects
Commit f22febc0 authored by Dirk Loss's avatar Dirk Loss
Browse files

Default path for nmap-os-fingerprints on Windows

parent 1eaf474d
No related branches found
No related tags found
No related merge requests found
...@@ -3,10 +3,17 @@ ...@@ -3,10 +3,17 @@
## Copyright (C) Philippe Biondi <phil@secdev.org> ## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license ## This program is published under a GPLv2 license
import os
from scapy.data import KnowledgeBase from scapy.data import KnowledgeBase
from scapy.config import conf from scapy.config import conf
from scapy.arch import WINDOWS
conf.nmap_base ="/usr/share/nmap/nmap-os-fingerprints" if WINDOWS:
conf.nmap_base=os.environ["ProgramFiles"] + "\\nmap\\nmap-os-fingerprints"
else:
conf.nmap_base ="/usr/share/nmap/nmap-os-fingerprints"
###################### ######################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment