Certified Ethical Hacker v11 312-50v11 – Question177

You start performing a penetration test against a specific website and have decided to start from grabbing all the links from the main page.
What is the best Linux pipe to achieve your milestone?

A.
wget https://site.com | grep "<a href="http" | grep "site.com"
B. curl -s https://site.com | grep "<a href="http" | grep "site.com" | cut -d """ -f 2
C. dirb https://site.com | grep "site"
D. wget https://site.com | cut -d "http"

Correct Answer: A