Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how do you do this please add code im very confused 39 # Second, a variable is needed that stores the victim's username. HINT: Luke

how do you do this please add code im very confused
image text in transcribed
image text in transcribed
39 # Second, a variable is needed that stores the victim's username. HINT: Luke 40 # YOUR CODE BELOW HERE 41 Svictim 42 43 # Now you are ready to design your function. 44 # Your function name will need 2 parameters. 45 # One for the username and one for the password list 46 # YOUR CODE BELOW HERE 47 48 of 49 50 # Now you are ready to begin testing each password for your brute force attack! 51 # Write a foreach loop method to itereate through each common password in the password file. 52 # (Hint: You should be calling the variable that contains all passwords) 53 # YOUR CODE BELOW HERE I 54 55 C { ##### IMPORTANT ####### # DO NOT MODIFY THIS SCRIPT ######## ## # OOONOWN 12 1 $pwHash "C9-7F-06-94-16-25-76-52-42-5C-B4-94-A1-DD-F5-5E Smd - New-object TypeName System. Security.Cryptography.MDSCryptoServiceProvider Sutf8-new-object-TypeName System.Text. UTF8Encoding 9 function login 10 0 11 Param [Rarameter (mandatory Strue) 13 [String]Susername, [String] Spassword) 14 15 Shash- [System.BitConverter).ToString(5mds.ComputeHash(Sutf8. GetBytes($password))). 16 if ($username-eq "Luke- and Shash -eq SpwHash"> 17 18 return Access Granted 19 20 eise 21 22 return Access Denied PE 3 24 26 Login -username Sargs [o] -password Saras (1) 27 HH i 0 LOEN NEN 25 39 # Second, a variable is needed that stores the victim's username. HINT: Luke 40 # YOUR CODE BELOW HERE 41 Svictim 42 43 # Now you are ready to design your function. 44 # Your function name will need 2 parameters. 45 # One for the username and one for the password list 46 # YOUR CODE BELOW HERE 47 48 of 49 50 # Now you are ready to begin testing each password for your brute force attack! 51 # Write a foreach loop method to itereate through each common password in the password file. 52 # (Hint: You should be calling the variable that contains all passwords) 53 # YOUR CODE BELOW HERE I 54 55 C { ##### IMPORTANT ####### # DO NOT MODIFY THIS SCRIPT ######## ## # OOONOWN 12 1 $pwHash "C9-7F-06-94-16-25-76-52-42-5C-B4-94-A1-DD-F5-5E Smd - New-object TypeName System. Security.Cryptography.MDSCryptoServiceProvider Sutf8-new-object-TypeName System.Text. UTF8Encoding 9 function login 10 0 11 Param [Rarameter (mandatory Strue) 13 [String]Susername, [String] Spassword) 14 15 Shash- [System.BitConverter).ToString(5mds.ComputeHash(Sutf8. GetBytes($password))). 16 if ($username-eq "Luke- and Shash -eq SpwHash"> 17 18 return Access Granted 19 20 eise 21 22 return Access Denied PE 3 24 26 Login -username Sargs [o] -password Saras (1) 27 HH i 0 LOEN NEN 25

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

1. What are the peculiarities of viruses ?

Answered: 1 week ago

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago

Question

1. What are the major sources of stress in your life?

Answered: 1 week ago