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