mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Merge #2088: Update Zenmap to Python 3 and PyGObject
Note: Ndiff build will be broken until subsequent changes are made. Deprecation warnings will need to be addressed in future changes. Closes #2088
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# ***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||
# * *
|
||||
@@ -438,16 +438,16 @@ def get_script_entries(scripts_dir, nselib_dir):
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
for entry in get_script_entries(sys.argv[1], sys.argv[2]):
|
||||
print "*" * 75
|
||||
print "Filename:", entry.filename
|
||||
print "Categories:", entry.categories
|
||||
print "License:", entry.license
|
||||
print "Author:", entry.author
|
||||
print "URL:", entry.url
|
||||
print "Description:", entry.description
|
||||
print "Arguments:", [x[0] for x in entry.arguments]
|
||||
print "Output:"
|
||||
print entry.output
|
||||
print "Usage:"
|
||||
print entry.usage
|
||||
print "*" * 75
|
||||
print("*" * 75)
|
||||
print("Filename:", entry.filename)
|
||||
print("Categories:", entry.categories)
|
||||
print("License:", entry.license)
|
||||
print("Author:", entry.author)
|
||||
print("URL:", entry.url)
|
||||
print("Description:", entry.description)
|
||||
print("Arguments:", [x[0] for x in entry.arguments])
|
||||
print("Output:")
|
||||
print(entry.output)
|
||||
print("Usage:")
|
||||
print(entry.usage)
|
||||
print("*" * 75)
|
||||
|
||||
Reference in New Issue
Block a user