Exemple #1
0
	def getAbnormalities(self):
		'''
		Se c'è qualche campo che non rispetta le specifiche, ritorna un messaggio contenente le anormalità nei pacchetti
		'''
		#definisco il controllore di pacchetti
		controlloreErrori = FourWayHandshakeConsistenceChecker(self.p1.scapyForm,self.p2.scapyForm,self.p3.scapyForm,self.p4.scapyForm)
		#ritorno le anormalità nei pacchetti
		return controlloreErrori.getAbnormalities()
Exemple #2
0
	def checkMacAddresses(self):
		'''
		Controlla che i mac address siano corrispondenti
		'''
		#definisco il controllore di pacchetti
		controlloreErrori = FourWayHandshakeConsistenceChecker(self.p1.scapyForm,self.p2.scapyForm,self.p3.scapyForm,self.p4.scapyForm)
		#controlla la coerenza sui mac_addres
		controlloreErrori.macAddressConsistence()