1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Make Ndiff install as a Python module as well as script

Discussion: http://seclists.org/nmap-dev/2013/q4/19
This commit is contained in:
dmiller
2013-10-17 19:20:49 +00:00
parent a7b0fea687
commit 1e6db2b22c
5 changed files with 27 additions and 5 deletions

21
ndiff/scripts/ndiff Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env python
# Ndiff
#
# This programs reads two Nmap XML files and displays a list of their
# differences.
#
# Copyright 2008 Insecure.Com LLC
# Ndiff is distributed under the same license as Nmap. See the file COPYING or
# http://nmap.org/data/COPYING. See http://nmap.org/book/man-legal.html for more
# details.
#
# David Fifield
# based on a design by Michael Pattrick
import ndiff
import sys
if __name__ == "__main__":
sys.excepthook = ndiff.excepthook
sys.exit(ndiff.main())