mirror of https://github.com/secdev/scapy.git
NMAP: test more functions
This commit is contained in:
parent
6a783f4af4
commit
b2eefdb627
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue