From 0d47952611198ef6b1163f366dc03922d20b1475 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:42:04 +0200 Subject: Adding upstream version 7.94+git20230807.3be01efb1+dfsg. Signed-off-by: Daniel Baumann --- zenmap/test/diff_test1 | 10 +++++ zenmap/test/diff_test2 | 11 +++++ zenmap/test/nmap-output-error.xml | 33 +++++++++++++++ zenmap/test/run_tests.py | 18 ++++++++ zenmap/test/xml_test1.xml | 19 +++++++++ zenmap/test/xml_test10.xml | 82 +++++++++++++++++++++++++++++++++++++ zenmap/test/xml_test11.xml | 86 +++++++++++++++++++++++++++++++++++++++ zenmap/test/xml_test12.xml | 12 ++++++ zenmap/test/xml_test13.xml | 25 ++++++++++++ zenmap/test/xml_test14.xml | 24 +++++++++++ zenmap/test/xml_test15.xml | 22 ++++++++++ zenmap/test/xml_test16.xml | 14 +++++++ zenmap/test/xml_test17.xml | 15 +++++++ zenmap/test/xml_test2.xml | 19 +++++++++ zenmap/test/xml_test3.xml | 27 ++++++++++++ zenmap/test/xml_test4.xml | 41 +++++++++++++++++++ zenmap/test/xml_test5.xml | 44 ++++++++++++++++++++ zenmap/test/xml_test6.xml | 68 +++++++++++++++++++++++++++++++ zenmap/test/xml_test7.xml | 41 +++++++++++++++++++ zenmap/test/xml_test8.xml | 41 +++++++++++++++++++ zenmap/test/xml_test9.xml | 84 ++++++++++++++++++++++++++++++++++++++ 21 files changed, 736 insertions(+) create mode 100644 zenmap/test/diff_test1 create mode 100644 zenmap/test/diff_test2 create mode 100644 zenmap/test/nmap-output-error.xml create mode 100644 zenmap/test/run_tests.py create mode 100644 zenmap/test/xml_test1.xml create mode 100644 zenmap/test/xml_test10.xml create mode 100644 zenmap/test/xml_test11.xml create mode 100644 zenmap/test/xml_test12.xml create mode 100644 zenmap/test/xml_test13.xml create mode 100644 zenmap/test/xml_test14.xml create mode 100644 zenmap/test/xml_test15.xml create mode 100644 zenmap/test/xml_test16.xml create mode 100644 zenmap/test/xml_test17.xml create mode 100644 zenmap/test/xml_test2.xml create mode 100644 zenmap/test/xml_test3.xml create mode 100644 zenmap/test/xml_test4.xml create mode 100644 zenmap/test/xml_test5.xml create mode 100644 zenmap/test/xml_test6.xml create mode 100644 zenmap/test/xml_test7.xml create mode 100644 zenmap/test/xml_test8.xml create mode 100644 zenmap/test/xml_test9.xml (limited to 'zenmap/test') diff --git a/zenmap/test/diff_test1 b/zenmap/test/diff_test1 new file mode 100644 index 0000000..4d2f415 --- /dev/null +++ b/zenmap/test/diff_test1 @@ -0,0 +1,10 @@ +# nmap 3.75 scan initiated Sat Jul 16 11:29:44 2005 as: nmap -oX /tmp/tmpXBsQcL -oN /tmp/tmpepjBH8 10.0.0.138 +Interesting ports on SpeedTouch.canopo (10.0.0.138): +(The 1659 ports scanned but not shown below are in state: closed) +PORT STATE SERVICE +21/tcp open ftp +23/tcp open telnet +80/tcp open http +1723/tcp open pptp + +# Nmap run completed at Sat Jul 16 11:29:46 2005 -- 1 IP address (1 host up) scanned in 2.258 seconds diff --git a/zenmap/test/diff_test2 b/zenmap/test/diff_test2 new file mode 100644 index 0000000..7e865f8 --- /dev/null +++ b/zenmap/test/diff_test2 @@ -0,0 +1,11 @@ +# nmap 3.75 scan initiated Sat Jul 16 11:31:58 2005 as: nmap -oX /tmp/tmpg71nwK -oN /tmp/tmptq82bS localhost +Interesting ports on localhost.localdomain (127.0.0.1): +(The 1658 ports scanned but not shown below are in state: closed) +PORT STATE SERVICE +80/tcp open http +111/tcp open rpcbind +631/tcp open ipp +6346/tcp open gnutella +32776/tcp open sometimes-rpc15 + +# Nmap run completed at Sat Jul 16 11:32:01 2005 -- 1 IP address (1 host up) scanned in 2.788 seconds diff --git a/zenmap/test/nmap-output-error.xml b/zenmap/test/nmap-output-error.xml new file mode 100644 index 0000000..e18dc32 --- /dev/null +++ b/zenmap/test/nmap-output-error.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + diff --git a/zenmap/test/run_tests.py b/zenmap/test/run_tests.py new file mode 100644 index 0000000..486ffab --- /dev/null +++ b/zenmap/test/run_tests.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +import unittest + +if __name__ == "__main__": + import sys + import glob + import os + if not hasattr(unittest.defaultTestLoader, "discover"): + print("Python unittest discovery missing. Requires Python 3.0 or newer.") # noqa + sys.exit(0) + + os.chdir("..") + suite = unittest.defaultTestLoader.discover( + start_dir=glob.glob("build/lib*")[0], + pattern="*.py" + ) + unittest.TextTestRunner().run(suite) diff --git a/zenmap/test/xml_test1.xml b/zenmap/test/xml_test1.xml new file mode 100644 index 0000000..888b664 --- /dev/null +++ b/zenmap/test/xml_test1.xml @@ -0,0 +1,19 @@ + + + + + + + +
+ + + + + + + + + + + diff --git a/zenmap/test/xml_test10.xml b/zenmap/test/xml_test10.xml new file mode 100644 index 0000000..e3c4662 --- /dev/null +++ b/zenmap/test/xml_test10.xml @@ -0,0 +1,82 @@ + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + diff --git a/zenmap/test/xml_test11.xml b/zenmap/test/xml_test11.xml new file mode 100644 index 0000000..ef7cb91 --- /dev/null +++ b/zenmap/test/xml_test11.xml @@ -0,0 +1,86 @@ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/zenmap/test/xml_test12.xml b/zenmap/test/xml_test12.xml new file mode 100644 index 0000000..0d35ee9 --- /dev/null +++ b/zenmap/test/xml_test12.xml @@ -0,0 +1,12 @@ + + + + + + +
+ + + + + diff --git a/zenmap/test/xml_test13.xml b/zenmap/test/xml_test13.xml new file mode 100644 index 0000000..15a3044 --- /dev/null +++ b/zenmap/test/xml_test13.xml @@ -0,0 +1,25 @@ + + + + + + + + +
+ + + + + + + + + + + + + + + + diff --git a/zenmap/test/xml_test14.xml b/zenmap/test/xml_test14.xml new file mode 100644 index 0000000..3b50c63 --- /dev/null +++ b/zenmap/test/xml_test14.xml @@ -0,0 +1,24 @@ + + + + + + + + +
+ + + + + + + + + + + + + + + diff --git a/zenmap/test/xml_test15.xml b/zenmap/test/xml_test15.xml new file mode 100644 index 0000000..087e6f0 --- /dev/null +++ b/zenmap/test/xml_test15.xml @@ -0,0 +1,22 @@ + + + + + + + + +
+ + + + + + + + + + + + + diff --git a/zenmap/test/xml_test16.xml b/zenmap/test/xml_test16.xml new file mode 100644 index 0000000..3c786d1 --- /dev/null +++ b/zenmap/test/xml_test16.xml @@ -0,0 +1,14 @@ + + +Starting Nmap 5.59BETA1 ( http://nmap.org ) at 2011-08-12 14:50 CDT +Nmap scan report for scanme.nmap.org (74.207.244.221) +Host is up (0.38s latency). +rDNS record for 74.207.244.221: li86-221.members.linode.com +Not shown: 97 closed ports +PORT STATE SERVICE +22/tcp open ssh +53/tcp open domain +80/tcp open http + +Nmap done: 1 IP address (1 host up) scanned in 3.84 seconds +
\ No newline at end of file diff --git a/zenmap/test/xml_test17.xml b/zenmap/test/xml_test17.xml new file mode 100644 index 0000000..afec223 --- /dev/null +++ b/zenmap/test/xml_test17.xml @@ -0,0 +1,15 @@ + + +Starting Nmap 5.59BETA1 ( http://nmap.org ) at 2011-08-12 14:48 CDT +Nmap scan report for scanme.nmap.org (74.207.244.221) +Host is up (0.25s latency). +rDNS record for 74.207.244.221: li86-221.members.linode.com +Not shown: 96 closed ports +PORT STATE SERVICE +53/udp open domain +68/udp open|filtered dhcpc +123/udp open ntp +5060/udp open|filtered sip + +Nmap done: 1 IP address (1 host up) scanned in 105.83 seconds +
\ No newline at end of file diff --git a/zenmap/test/xml_test2.xml b/zenmap/test/xml_test2.xml new file mode 100644 index 0000000..a8c0fe7 --- /dev/null +++ b/zenmap/test/xml_test2.xml @@ -0,0 +1,19 @@ + + + + + + + +
+ + + + + + + + + + + diff --git a/zenmap/test/xml_test3.xml b/zenmap/test/xml_test3.xml new file mode 100644 index 0000000..bcfaf24 --- /dev/null +++ b/zenmap/test/xml_test3.xml @@ -0,0 +1,27 @@ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + diff --git a/zenmap/test/xml_test4.xml b/zenmap/test/xml_test4.xml new file mode 100644 index 0000000..acade61 --- /dev/null +++ b/zenmap/test/xml_test4.xml @@ -0,0 +1,41 @@ + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + + + diff --git a/zenmap/test/xml_test5.xml b/zenmap/test/xml_test5.xml new file mode 100644 index 0000000..9a54970 --- /dev/null +++ b/zenmap/test/xml_test5.xml @@ -0,0 +1,44 @@ + + + + + + + +
+
+ + + + + + + +
+
+ + + + + + + +
+
+ + + + + + + +
+ + + + + + + + + diff --git a/zenmap/test/xml_test6.xml b/zenmap/test/xml_test6.xml new file mode 100644 index 0000000..710987b --- /dev/null +++ b/zenmap/test/xml_test6.xml @@ -0,0 +1,68 @@ + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+ + + + + + + + + + + diff --git a/zenmap/test/xml_test7.xml b/zenmap/test/xml_test7.xml new file mode 100644 index 0000000..46ab054 --- /dev/null +++ b/zenmap/test/xml_test7.xml @@ -0,0 +1,41 @@ + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + + + diff --git a/zenmap/test/xml_test8.xml b/zenmap/test/xml_test8.xml new file mode 100644 index 0000000..90bcc58 --- /dev/null +++ b/zenmap/test/xml_test8.xml @@ -0,0 +1,41 @@ + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + + + diff --git a/zenmap/test/xml_test9.xml b/zenmap/test/xml_test9.xml new file mode 100644 index 0000000..48485ed --- /dev/null +++ b/zenmap/test/xml_test9.xml @@ -0,0 +1,84 @@ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3