Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Attached Files: badIP_list.txt (22.808 KB) server_logs.txt(599 B) Statement: There are two files. One file, badIP_list.txt has a listing of known bad IP addresses. These addresses

image text in transcribed
Attached Files: badIP_list.txt (22.808 KB) server_logs.txt(599 B) Statement: There are two files. One file, "badIP_list.txt" has a listing of known bad IP addresses. These addresses were extracted from Talos Threat Hunting listings for 26 Jul 2018. The second file, "server_logs.txt", is a listing of IP addresses pulled off of your firewall logs. representing computers which have attempted entry into your network through network services, such as http, ssh and ftp. You will find which bad actors have attempted to enter your network for the purpose of tuning your firewalls and IDS's. Challenge: Write a program which reads in both files and checks the IP addresses from your server logs against the know bad IP's. If there is a match, write the bad IP address to a file titled "filter_list.txt". List unique IP's, do not list duplicates. Also, at the end of the "filter_list.txt" there should be a total of "Known bad IP's detected", and the percentage of IP addresses from your logs which are bad. (Divide the number of bad IP's by the number of total IP's) The output should read exactly like that below EXACTLY: Date : xx/xx/xxxx Name : Last, First Major: xxxxx Server logs contained these known bad IP addresses : XXX.XX.XXX.XX XXX.X.XXX.XXX etc. Total unique known bad IP's detected: XX Percentage of bad IP addresses in server logs: xx 9% Other Requirements: Documentation: Incorporate programming style as described here: "Python Style Guide Test and debug your Program: Create sample input data, run the program, then check your answers with a calculator or Excel. If something did not match up, then fix your program. . Program must execute and produce correct output. Read this page again to be sure you covered all requirements See the Programming Project Rubric for grading principles. Your name and desired profession should be at the top of each output data file Column data should be neatly aligned. Columns should have heading titles

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

What is operatiing system?

Answered: 1 week ago