QuestionQ94

Attacks and Exploits

A penetration tester is planning a password-spraying attack against a known list of users for the company "example." The tester uses the following commands:

  1. pw-inspector -i $allwords | tee $pass
  2. spray365.py spray -ep $plan
  3. users="~/user.txt"; allwords="~/words.txt"; pass="~/passwords.txt"; plan="~/spray.plan"
  4. spray365.py generate --password_file $pass --user file $user --domain "example.com" --execution_plan $plan
  5. cewl -m 5 "http://www.example.com" -w $allwords

Which order of commands is correct?

  • A 3, 4, 1, 2, 5
  • B 3, 1, 2, 5, 4
  • C 2, 3, 1, 4, 5
  • D 3, 5, 1, 4, 2
Explanation

The workflow requires variables to be defined before use, a target-specific word list to be collected before it can be filtered into a password list, and the execution plan to be generated before it can be supplied to the spraying command. CeWL writes the crawled words to the file specified by -w, and pw-inspector reads the resulting word list to produce the password input used for plan generation.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!