If not, it may not be running a typical web server. If this comes back with a response containing HTTP/1.0 200 OK, it's running a web server on port 80. echo -e "GET HTTP/1.0\n\n" | nc 80 | less Here's a simple example of how I'd determine if was hosting a live web server using netcat. You have to know what port a web server runs on, the name of the server, the protocol, everything. That means you have to understand http if you want to find out if it's running a web server, smtp if it's running a mail sender, etc. To use netcat to learn more, you need to pass it the correct data to elicit a valid response. This will tell you if it's listening on port 80, the web port, but it won't tell you anything else about the server. Using netcat, you can query a server like this: nc -z 80 To identify if a server is running, you only need to determine if the port is open for requests.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |