Ejemplo n.º 1
0
 def test_name_LIST(self):
     methods = NmapScanMethods()
     assert 'LIST' == methods.get_name_of_method('-sL')
Ejemplo n.º 2
0
 def test_name_SYN(self):
     methods = NmapScanMethods()
     assert 'SYN' == methods.get_name_of_method('-sS')
Ejemplo n.º 3
0
 def test_name_UDP(self):
     methods = NmapScanMethods()
     assert 'UDP' == methods.get_name_of_method('-sU')
Ejemplo n.º 4
0
 def test_name_SCTP_COOKIE(self):
     methods = NmapScanMethods()
     assert 'SCTP_COOKIE' == methods.get_name_of_method('-sZ')
Ejemplo n.º 5
0
 def test_name_TCP_NULL(self):
     methods = NmapScanMethods()
     assert 'TCP_NULL' == methods.get_name_of_method('-sN')
Ejemplo n.º 6
0
 def test_name_IP(self):
     methods = NmapScanMethods()
     assert 'IP' == methods.get_name_of_method('-sO')
Ejemplo n.º 7
0
 def test_name_SCTP_INIT(self):
     methods = NmapScanMethods()
     assert 'SCTP_INIT' == methods.get_name_of_method('-sY')
Ejemplo n.º 8
0
 def test_name_XMAS(self):
     methods = NmapScanMethods()
     assert 'XMAS' == methods.get_name_of_method('-sX')
Ejemplo n.º 9
0
 def test_name_TCP(self):
     methods = NmapScanMethods()
     assert 'TCP' == methods.get_name_of_method('')
Ejemplo n.º 10
0
 def test_name_MAIMON(self):
     methods = NmapScanMethods()
     assert 'MAIMON' == methods.get_name_of_method('-sM')
Ejemplo n.º 11
0
 def test_name_FIN(self):
     methods = NmapScanMethods()
     assert 'FIN' == methods.get_name_of_method('-sF')
Ejemplo n.º 12
0
 def test_name_WINDOW(self):
     methods = NmapScanMethods()
     assert 'WINDOW' == methods.get_name_of_method('-sW')
Ejemplo n.º 13
0
 def test_name_ACK(self):
     methods = NmapScanMethods()
     assert 'ACK' == methods.get_name_of_method('-sA')
Ejemplo n.º 14
0
 def test_name_CONNECT(self):
     methods = NmapScanMethods()
     assert 'CONNECT' == methods.get_name_of_method('-sT')
Ejemplo n.º 15
0
 def test_name_PING(self):
     methods = NmapScanMethods()
     assert 'PING' == methods.get_name_of_method('-sn')
Ejemplo n.º 16
0
 def test_error_on_unknown_scan_method(self):
     with pytest.raises(NmapScanMethodUnknownException) as excinfo:
         methods = NmapScanMethods()
         methods.get_name_of_method('foo')