From b2eefdb627efb31d5e2db6b8ba594810196f29f5 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon Date: Wed, 17 Jan 2018 11:38:18 +0100 Subject: [PATCH] NMAP: test more functions --- test/nmap.uts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/nmap.uts b/test/nmap.uts index 3c64e7416..2c3d508d2 100644 --- a/test/nmap.uts +++ b/test/nmap.uts @@ -9,6 +9,14 @@ = Module loading load_module('nmap') += Test functions + +d = nmap_udppacket_sig(IP()/UDP(), IP(raw(IP()/ICMP(type=3, code=2)/IPerror()/UDPerror()))) +assert len(d) == 9 + +d = nmap_tcppacket_sig(IP()/TCP()) +assert len(d) == 5 + = Fetch database from __future__ import print_function try: