コード例 #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')