#find all IP addresses for invalid logins, then see which IPs are also used for scanning def compareInvalidIPs(): return True 3. The getinvalidLogins() method should find all IP addresses that are...


#find all IP addresses for invalid logins, then see which IPs are also used for scanning



def compareInvalidIPs():



    return True



3. The getinvalidLogins() method should find all IP addresses that are used for both invalid logins AND are blocked by the firewall. To get the invalid logins, you should use the log/auth.log file. For compareInvalidIPs, you should first extract all gzipped versions of auth.log* (meaning auth.log, auth.log.0, auth.log.1, etc.) using the extractLogFiles() method that you implement. Similarly, you will extract all gzipped versions of ufw.log* using the extractLogFiles() method for firewall logs. You will then compare the IPs found in each version.



Here is the output for my solution code when executing the if __name__=="__main__" code branch. Your output should be similar.



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here