Answer the question
In order to leave comments, you need to log in
How to use curl?
I got into a difficult job for myself, I don’t have enough experience from the word “completely”
I need help to go this way:
“on a laptop, look at what domains resolve inside, pull the curl and see where the connection goes (ip that it is trying to connect to), then ping this ip for example and telnet to ports 80 and 443"
Can someone paint a diagram of how to do this? Step by step
Otherwise, Google drives me into the understanding that I will stupidly get bogged down in a quagmire. I understand that I will rezber, but for a long time ...
Answer the question
In order to leave comments, you need to log in
1. nslookup domain.ru Resolve check
2. curl domain.ru | grep "http://" - check which domains it connects to
3. curl domai.ru | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" - or which IPs it connects to
4. telnet domain.ru 80
with caution)
curl -I will help you - it will show the headers given by the server. You can see the redirects - where the connection actually goes. Then you follow the redirection and track where you will be transferred next.
Where you see the code 200, it means that you have reached the destination server. Now we run curl without the I key, we get the html code. Analyze it, you will see what else is hooked up... well, and so on...
telnet to the port - here you need to know the http protocol and correctly form requests...
Shl. Are you sure this is your job? )
dig ya.ru (dig ya.ru @dns1.yandex.net to ask a specific DNS server)
ping ya.ru
curl -IL ya.ru
telnet ya.ru 80
telnet ya.ru 443
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question