Q: 5
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?
Options
Discussion
Its A. Had something like this in a mock before and A seemed to do the trick for basic link grabbing.
C imo, since wget actually pulls the HTML from the target website and piping it to grep lets you filter out the links. The syntax isn't perfect but it's closest to standard usage. Unless I'm missing something obvious, C makes most sense here.
C
Honestly I'd mark C, since it's closest to what actually grabs and filters links in a Linux shell.
B
C tbh, looks closest since wget downloads the page and piping to grep finds the links. The syntax isn't perfect but that's basically the right sequence. Seen similar pipes in exam reports, but if anyone sees something off, let me know.
Not B, C. C uses wget to actually download the HTML before grepping for tags, which is what you need here. The other options either have broken commands or skip pulling page content. Unless I missed something small.
Pretty sure C is what they want, since wget pulls the HTML and you can pipe it to grep for filtering links. This is similar to examples shown in the official course labs. Maybe double-check with a practice test if uncertain.
Probably C here. wget grabs the site content so you can actually filter links out with grep. The others either don't fetch live data or the pipe syntax is off. Pretty sure that's what they're looking for.
C , saw a similar pipe on practice tests fetching links with wget and grep. Fits what you'd use on Linux.
Be respectful. No spam.