Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how do you do this please add code im very confused I am using powershell ISE # Now you are ready to begin testing each

how do you do this please add code im very confused
image text in transcribed
image text in transcribed
I am using powershell ISE
# Now you are ready to begin testing each password for your brute force attack! Write a foreach loop method to itereate through each common password in the password file. (Hint: You should be calling the variable that contains all passwords) # YOUR CODE BELOW HERE { 50 51 52 53 54 55 el 56 57 58 59 60 61 62 # You will need to build an array of user credentials to attack with #1. Create an empty array. # 2. Add your victim's username variable to the array. HINT: To add items to an array you must use - operator # 3. Add a potential password to the array. # YOUR CODE BELOW HERE ### IMPORTANT ** DO NOT MODIFY THIS SCRIPT 3 # ## 11 5 Spwash"C9-7-06-94-16-2F-76-52-42-5C-B4-94-A1-DD-F5-SE" 6 Smd - New-Object TypeName system. Security.Cryptography.MDSCryptoService Provider Sutf8-new-object-TypeName System.Text. UTF8Encoding function login 10 E Param 12 [Rarameter (mandatory-Strue)) 13 String] Susername, [String]Spassword) 14 15 Shash - [System.BitConverter]::ToString(Smids.ComputeHash(Sutf8. GetBytes(Spassword))) 16 if($username-eq "Luke" -and Shash -eq Spwas) 17 18 return "Access Granted" 19 else return "Access Denied" 22 23 3 } 26 Togin -username Sargs [0] -password Saros (1) # Now you are ready to begin testing each password for your brute force attack! Write a foreach loop method to itereate through each common password in the password file. (Hint: You should be calling the variable that contains all passwords) # YOUR CODE BELOW HERE { 50 51 52 53 54 55 el 56 57 58 59 60 61 62 # You will need to build an array of user credentials to attack with #1. Create an empty array. # 2. Add your victim's username variable to the array. HINT: To add items to an array you must use - operator # 3. Add a potential password to the array. # YOUR CODE BELOW HERE ### IMPORTANT ** DO NOT MODIFY THIS SCRIPT 3 # ## 11 5 Spwash"C9-7-06-94-16-2F-76-52-42-5C-B4-94-A1-DD-F5-SE" 6 Smd - New-Object TypeName system. Security.Cryptography.MDSCryptoService Provider Sutf8-new-object-TypeName System.Text. UTF8Encoding function login 10 E Param 12 [Rarameter (mandatory-Strue)) 13 String] Susername, [String]Spassword) 14 15 Shash - [System.BitConverter]::ToString(Smids.ComputeHash(Sutf8. GetBytes(Spassword))) 16 if($username-eq "Luke" -and Shash -eq Spwas) 17 18 return "Access Granted" 19 else return "Access Denied" 22 23 3 } 26 Togin -username Sargs [0] -password Saros (1)

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions