Netcat - Banner Grabbing

Banner Grabbing Using netcat!




To gather more information about a service running on a system’s open port we are going to use a known technique, known as banner grabbing and netcat network tool.
 nc -nvv x.x.x.x 80
-n        Suppress name/port resolutions
-v        Verbose
You will get an answer like this:
Connection to 85.25.132.39 80 port [tcp/*] succeeded!
if the connection was established.
Then type the following command:
HEAD / HTTP/1.0
To get the http headers:
HTTP/1.1 200 OK
Date: …..
Server: …..
Last-Modified: …..
ETag: ……
Accept-Ranges: bytes
Content-Length: ….
Vary: Accept-Encoding
Content-Type: text/html
Connection: close


0 comments: