Banner grabbing with netcat.

I find netcat the best tool for banner grabbing. If you have messed around with method than you must be aware that you can read and write data across a network very easily and you can also connect to servers with a normal tcp stream and send strings for your own needs. we’re interested in knowing what’s running behind port 80 and 21.

We can use Netcat to grab port banners in the following way:

2010-03-26_113246

2010-03-26_113337

So we know it’s probably a Windows 2000 machine as it’s running IIS 5.0 and Microsoft FTP Service.

Let’s try to send a malformed URL which attempts to exploit the File Traversal vulnerability in unpatched IIS servers (Pre SP3). We will be using Netcat to Check for the vulnerability, and if found (and it will!), we will upload Netcat to the IIS server and demonstrate how we can use Netcat as a backdoor.

If you do not know what the Unicode File traversal exploit is, you can check the “IIS Unicode File Traversal” tutorial, or read it up on the net.

Basically this exploit allows us to “break out” of C:inetpubwwwroot and explore and execute programs anywhere on the attacked machine.

Share
This entry was posted in Security and tagged , , , . Bookmark the permalink.

7 Responses to Banner grabbing with netcat.

  1. It’s posts like this that keep me coming back and checking this site regularly, thanks for the info!

  2. cna training says:

    found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later

  3. Nice post and this enter helped me alot in my college assignement. Thanks you seeking your information.

  4. Genial brief and this enter helped me alot in my college assignement. Gratefulness you for your information.

  5. My programmer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on numerous websites for about a year and am worried about switching to another platform. I have heard great things about blogengine.net. Is there a way I can transfer all my wordpress content into it? Any kind of help would be greatly appreciated!

  6. I would like to thank you for the efforts you have put in writing this blog. I’m hoping the same high-grade blog post from you in the upcoming as well. In fact your creative writing skills has encouraged me to get my own site now. Really the blogging is spreading its wings quickly. Your write up is a great example of it.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>