[ad]
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: [email protected]. 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.
Jinesh Doshi says
This can be misused for reverse engineering. Does anyone know how to view and modify source code of a windows dll?
Tyler says
amap is hardly a “next generation” scanning tool. With a last release two years ago, it is clearly “previous generation”.
lol says
Woah time warp
Bogwitch says
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.
poweruser says
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.
matt says
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.
macdaddy says
Compiles on Ubuntu Hardy. Though seems like it out dated, as people above have said.
Jinesh Doshi says
@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. :)
Darknet says
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.
Jinesh Doshi says
Thanks for the update Darknet.