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