Linux Fundamentals - Filter Contents

Hello there,
I am currently stuck with the last question :“**Use cURL from your Pwnbox (not the target machine) to obtain the source code of the “https://www.inlanefreight.com” website and filter all unique paths of that domain. Submit the number of these paths as the answer. **”

I tried different things, but it always tells me

curl: (28) Failed to connect to www.inlanefreight.com port 443 after 133641ms: Couldn’t connect to server

I am doing it from a new terminal which is not connect to htb-student server and the most basic command I used is:

curl https://www.inlanefreight.com

another is

curl https://www.inlanefreight.com > htb.txt && cat htb.txt | tr " " “\n” | cut -d"‘" -f2 | cut -d’"’ -f2 | grep “www.inlanefreight.com” | sort -u | wc -l 2>/dev/null

Is it something that I did wrong/missed or is it a bug/problem with the pwnbox?

1 Like