Python Host Scripting
Write a python script that meets the following criteria: (Please NOTE: For FULL credit these objectives must be accomplished in the context of completing the assigned task of searching a log file for invalid logins. Creating a random array, variable, loop, etc. for no other purpose than to demonstrate it will only count for 80% of that element);
successfully create file and save in VIM (40 points) — include screenshots to demonstrate
includes a comment with your name and date (10 points)
Includes descriptive commenting throughout the script (20 points)
Utilizes a Debugging method we discussed (10 points)
loads the os module (20 points)
Demonstrates the proper declaration and use of at least one variable. (20 points)
Demonstrates the proper declaration and use of at least one list or dictionary. (20 points)
Demonstrates the proper use of a for loop. (30 points)
Demonstrates the proper use of an if-else statement (30 points)
Demonstrate proper use of a function ( 30 points)
Reads the log file provided below (you can upload it or copy and paste into a file on pythonanywhere) (20 points)
Uses a regular expression to look for “Failed password for invalid user” and return the usernames for all failed logins in the file. (20 points)
Raise an alert of some kind if more than 3 failed passwords are found (10 points)
writes the usernames of the failed logins to a file (20 points)
extra credit given for any other worthy demonstrations of your knowledge (extra modules, routines, etc.)
ex: output to a JSON or CSV file
300 points total for this script
You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | topic title | discipline | academic level | pages | delivered |
---|---|---|---|---|---|
6
|
Writer's choice
|
Business
|
University
|
2
|
1 hour 32 min
|
7
|
Wise Approach to
|
Philosophy
|
College
|
2
|
2 hours 19 min
|
8
|
1980's and 1990
|
History
|
College
|
3
|
2 hours 20 min
|
9
|
pick the best topic
|
Finance
|
School
|
2
|
2 hours 27 min
|
10
|
finance for leisure
|
Finance
|
University
|
12
|
2 hours 36 min
|