amap, the protocol version detection tool by THC is installed incorrectly.

It attempts to load the file: ../usr/etc/appdefs.trig which is installed in /usr/etc/appdefs.trig. So amap only works if the current path is / or 1 directory level deep, eg. /etc, /pentest.

The root cause of the issue is that by default amap will be installed into .../bin and .../etc of: /usr/local. The solution is to use ./configure --prefix /usr/

I also noticed there is a bug in the official release of amap. The Makefile copies amap to /usr/bin/amap and /usr/bin/amap6 then tries and fails to make a symlink to /usr/bin/amap6. This wastes 80K which is no big deal.