Thursday, February 1, 2018

Banner Grabbing Explained For Beginners

What Is A Banner?

Well we try to connect to a port (i.e. the service running on that port) then it responds to our request and the header of the packet sent by the service in response contains some information about the service and this is called Banner.

What Is Banner Grabbing

The processor of fetching banner of a service is called Banner Grabbing. Most common services that we are likely to grab banner for are Hyper Text Transfer Protocol (HTTP) which runs on port 80, Simple Mail Transfer Protocol (SMTP) which runs on port 25 and File Transfer Protocol (FTP) which runs on port 21.
Why We Need Banner Grabbing?
Well these banners can reveal a lot of sensitive information about the services running on the target machine.
For example you if you are able to grab banner for FTP you may find out the FTP Client in use by the target machine. This type of information about the services will help us to choose the right exploits.

How To Do Banner Grabbing

You can do banner grabbing with telnet or netcat but I will be using Netcat because my computer my rules. *trying to be funny*
Well I have a target here: 103.25.131.117
So first thing I will do is a port scan with nmap because before banner grabbing I would need to know which ports are open on target machine.
So here is the result of the port scan:






Now lets try to grab the banner for HTTP,
Open terminal and enter nc -v 103.25.131.117 80
Here, nc stands for netcat, -v is an option which tells the program to be more verbose i.e. to show the output in detail, 103.25.131.117 is our target server (you can also use a domain as a target) and 80 is the target port.
So here is what we got:



Its a Microsoft-HTTPAPI/2.0 server.
Some people be like hey I know about banner grabbing. I read about it on some blog and they used GET HTTP instead of GET HTTP 1/1.
Well if you are thinking the same then look at this:



See? You can try to enter anything and the output will be same.
Now lets grab the banner for FTP
Open terminal and enter nc -v 103.25.131.117 21
And in no time I have this:



So see? They are running the native Microsoft FTP Service and believe me this information comes in handy when you try to exploit the target.
Well this is how you grab banners but who got time for grabbing banners one by one?
This is why some wise guy created a nmap script for lazy (smart) guys like me.
NMap has a script which looks for open ports and tries to grab banner for them.
To use the script I will pass the following command to the terminal nmap -sV –script=banner 103.25.131.117
It will take a bit longer than a normal scan but it worths it.
Now lets look at the results:

nmap banner

See? Its so easy and effective and it also guessed that target machine is probably running windows.
So that’s all folks. I hope you enjoyed this article.

2 comments:

  1. Do you need to increase your credit score?
    Do you intend to upgrade your school grade?
    Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
    Do you need any information concerning any database.
    Do you need to retrieve deleted files?
    Do you need to clear your criminal records or DMV?
    Do you want to remove any site or link from any blog?
    you should contact this hacker, he is reliable and good at the hack jobs..
    contact : cybergoldenhacker at gmail dot com

    ReplyDelete
  2. Hack into Paypal accounts, B logs,Professional hacking into institutional servers-keylogging -University grades
    changing / Admin(staff) account hack -Access/Password (Facebook, Instagram, bbm,Skype, snap chat, twitter, badoo, Word Press,zoosk, various blogs, icloud, apple accounts etc.)-You can also learn some basic shit you wouldn't think you'd need on your everyday basis but find out how important and helpful they really are. use random credit cards to shop online, hack iphones, tap into your friends cal and monitor conversations, email and text message interception

    Contact: ( hackingsetting50@gmail.com) for any hacking jobs

    ReplyDelete

Are you looking for most trusted hosting website?

What is Web Hosting? Web hosting is a service that allows organizations and individuals to post a website or web page onto the Internet. A...