BruteLogin Recommendations

Anonymous
timer Asked: Oct 19th, 2018
account_balance_wallet $50

Question Description

Review the bruteLogin function on p. 58 of Ch. 2, "Penetration Testing with Python," of Violent Python: A Cookbook for Hackers, Forensic Analysts, Penetration Testers and Security Engineers.

You have been hired by a company to provide consultation on security and provide recommendations. Using Microsoft® Word, write a 1-page document explaining how the username and password are extracted from the password file. Describe what would happen if the script fails to open the password file.

Recommend and provide additional code that would better handle cases where the password file might not open.

Submit your assignment using the Assignment Files tab.

BruteLogin Recommendations
brutelogin_function.jpg

Unformatted Attachment Preview

For this assignment you are asked to be a security consultant and give an explanation on how the user name and password were extracted, and how to improve the open() method. I would explain how the Python function 'split' works. As far as open goes, you do not need to include a .py file for me to run. I would first explain how you would use the try/except/else construct and give an example of it in your document. For example: """ Write a simple line to a file and read it back. """ try: file = open("myFile.txt", "w") file.write("This is the first line") except IOError: print "IO Error" else: print "File opened for write" file.close() try: file = open("aFile.txt", "r") contents = file.read() print contents except IOError: print "File not found" else: print "File opened for read" file.close() Please don't include the whole bruteLogin() method, just write some valid Python code around the open() method. Explain what is returned from the open() method and what happens if you do not check it. ...
Purchase answer to see full attachment

Tutor Answer

ProfOscar
School: UIUC

...

flag Report DMCA
Review

Anonymous
Thank you! Reasonably priced given the quality not just of the tutors but the moderators too. They were helpful and accommodating given my needs.

Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors