23 May 2008 | 6,858 views

thc-Amap – Application Protocol Detection & Fingerprinting

Check Your Web Security with Acunetix

thc-Amap (Application MAPper) is another excellent tool more towards banner grabbing and protocol detection than OS-fingerprinting. But from the services running on a machine you can get a good idea of the OS and the purpose of the server.

Amap is a next-generation scanning tool for pentesters. It attempts to identify applications even if they are running on a different port than normal. It also identifies non-ascii based applications. This is achieved by sending trigger packets, and looking up the responses in a list of response strings.

Without filled databases containing triggers and responses, the tool is worthless, the authors would like you to help fill the database. How to do this? Well, whenever a client application connects to a server, some kind of handshake is exchanged (at least, usually. Syslogd for instance won’t say nothing, and snmpd without the right community string neither). Anyway, Amap takes the first packet sent back and compares it to a list of signature responses. Really simple, actually. And in reality, it turns out really to be that simple, at least, for most protocols.

Send the initial packets (sent and received) in tcpdump format for all wacko, proprietary and obscure applications. Send them to: amap-dev@thc.org. Please include application name and version.

Currently there are two tools for this purpose: Amap, and nmap – Both have their strength and weaknesses, as they deploy different techniques. We recommend to use both tools for reliabe identification.

The newer versions of nmap also have a banner grabbing feature.

You can download Amap here:

The source code of Amap: amap-5.2.tar.gz

The Win32/Cywin binary release: amap-5.2-win.zip

Or read more here.



Recent in Hacking Tools:
- XSSYA – Cross Site Scripting (XSS) Scanner Tool
- clipcaptcha – CAPTCHA Service Impersonation Tool
- dirs3arch – HTTP File & Directory Brute Forcing Tool

Related Posts:
- browserrecon – Passive Browser Fingerprinting
- SinFP – Next Generation OS Detection Tool
- w3af – Web Application Attack and Audit Framework

Most Read in Hacking Tools:
- Top 15 Security/Hacking Tools & Utilities - 1,860,419 views
- Brutus Password Cracker – Download brutus-aet2.zip AET2 - 1,047,503 views
- wwwhack 1.9 – Download wwwhack19.zip Web Hacking Tool - 620,731 views

Low-cost VPS Hosting

10 Responses to “thc-Amap – Application Protocol Detection & Fingerprinting”

  1. Jinesh Doshi 23 May 2008 at 9:55 am Permalink

    This can be misused for reverse engineering. Does anyone know how to view and modify source code of a windows dll?

  2. Tyler 23 May 2008 at 12:49 pm Permalink

    amap is hardly a “next generation” scanning tool. With a last release two years ago, it is clearly “previous generation”.

  3. lol 23 May 2008 at 3:06 pm Permalink

    Woah time warp

  4. Bogwitch 23 May 2008 at 6:09 pm Permalink

    Jinesh,

    THC-Amap cannot be used for reverse engineering at all.

    To view the source code of a Windows DLL, you need to download the source code. If the author is not distributing the source code, you cannot view it. You may be able to ascertain the functionality of a DLL by using a debugger, but if you think that THC Amap can be used for ‘reverse engineering’ I doubt you would be proficient in driving a decompilation tool.

  5. poweruser 23 May 2008 at 7:58 pm Permalink

    There’s actually an easy to use tool called ResHacker that can be used to deconstruct DLLs to change values. I once used it to remove the ads from Windows Live Messenger, along with some of the phone-home stuff.

  6. matt 23 May 2008 at 9:21 pm Permalink

    I would have to agree with Tyler that this tool is not next-generation. However, it seems Darknet just forgot to put quotes on what was taken from the Introduction of the THC-Amap Docs (http://freeworld.thc.org/thc-amap/).

    This tool seems like it could come in handy at some point. Good idea from the THC group.

    @Doshi
    If you want to get into RevEng on windows, get yourself a copy of OllyDebug or WinDasm32 and then figure out why I told you to get one of those. Also, this tool can’t really be used for RevEng (unless I am completely missing something). It actually requires Packet Analysis (which, I guess, could probably be confused with RevEng) before even using it. So really, it does what it says…compares signatures with already analyzed network communication, then guesses as to what is running on the server.

  7. macdaddy 24 May 2008 at 12:59 pm Permalink

    Compiles on Ubuntu Hardy. Though seems like it out dated, as people above have said.

  8. Jinesh Doshi 24 May 2008 at 6:19 pm Permalink

    @matt and all others,

    Guys i am aware that THC-Amap cannot be used for rev-engg this question is not related to the post. I just asked it bcos i believe that some real intelligent people read these posts (i am not counting myself). Thank you so much for your comments. :)

  9. Darknet 24 May 2008 at 7:19 pm Permalink

    Yah it hasn’t been updated for a while, but nor have many tools and it’s still very relevant. Like I said a few posts ago I’ll be going through my toolkit and posting those tools I’ve missed out along the way. They will still be useful to many people and excellent as learning tools.

  10. Jinesh Doshi 26 May 2008 at 8:06 am Permalink

    Thanks for the update Darknet.