stefanasemota / stefan-detector Goto Github PK
View Code? Open in Web Editor NEWHacker detection system A system provided by a company allows customers to sign in using their username and password. There is a requirement for an automated system to be developed to help identify attempts to hack the system and compromise accounts. Activity log files are recorded and the new system will need to process these logs to identify suspicious activity. Write a Java (or Groovy or Scala) program implementing the HackerDetector interface (outlined below) which defines a single method 'parseLine'. The method should take one line of the log file at a time and return the IP address if any suspicious activity is identified or null if the activity appears to be normal.