NMAP: test more functions

This commit is contained in:
Guillaume Valadon 2018-01-17 11:38:18 +01:00
parent 6a783f4af4
commit b2eefdb627
1 changed files with 8 additions and 0 deletions

View File

@ -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: