Exemple #1
0
 def test_privileges_LIST(self):
     methods = NmapScanMethods()
     assert not methods.require_root('-sL')
Exemple #2
0
 def test_privileges_TCP_NULL(self):
     methods = NmapScanMethods()
     assert methods.require_root('-sN')
Exemple #3
0
 def test_privileges_UDP(self):
     methods = NmapScanMethods()
     assert methods.require_root('-sU')
Exemple #4
0
 def test_privileges_SCTP_COOKIE(self):
     methods = NmapScanMethods()
     assert methods.require_root('-sZ')
Exemple #5
0
 def test_privileges_TCP(self):
     methods = NmapScanMethods()
     assert not methods.require_root('')
Exemple #6
0
 def test_privileges_SCTP_INIT(self):
     methods = NmapScanMethods()
     assert methods.require_root('-sY')
Exemple #7
0
 def test_privileges_MAIMON(self):
     methods = NmapScanMethods()
     assert methods.require_root('-sM')
Exemple #8
0
 def test_privileges_WINDOW(self):
     methods = NmapScanMethods()
     assert methods.require_root('-sW')
Exemple #9
0
 def test_privileges_CONNECT(self):
     methods = NmapScanMethods()
     assert not methods.require_root('-sT')
Exemple #10
0
 def test_privileges_PING(self):
     methods = NmapScanMethods()
     assert not methods.require_root('-sn')