A Study of Intrusion Detection Systems