center-for-threat-informed-defense / caldera_pathfinder

Pathfinder is a plugin for mapping network vulnerabilities, scanned by CALDERA or imported by a supported network scanner, and translating those scans into adversaries for network traversal.
https://caldera.mitre.org/
Apache License 2.0
121 stars 26 forks source link

Add a trailing slash to the script name if it is a directory #27

Closed mrengstrom closed 3 years ago

mrengstrom commented 3 years ago

This is to comply with a change in nmap v7.9.0 to enforce a trailing slash for directories in script names

https://seclists.org/nmap-announce/2020/1

[GH#2051] Restrict Nmap's search path for scripts and data files.
NMAPDATADIR, defined on Unix and Linux as ${prefix}/share/nmap, will not be
searched on Windows, where it was previously defined as C:\Nmap .
Additionally, the --script option will not interpret names as directory
names unless they are followed by a '/'. [Daniel Miller]