proxychains-ng
proxychains-ng copied to clipboard
Causes crash with latest nmap
Ubuntu 16.0, using latest nmap(7.70) + 4.12 version of proxychains-ng
Causes an error in nmap
nmap: netutil.cc:1379: int collect_dnet_interfaces(const intf_entry*, void*): Assertion rc == 0' failed.`
The crash is nmap's fault but not sure why this would fail after proxychain inserts itself.
it's due to some superfluous "sanity" checks in nmap. this issue is known (here) since years and someone should finally report it to nmap mailing list, so they can remove this check.
check this https://github.com/rofl0r/proxychains-ng/issues/103#issuecomment-170364506, worked for me.
https://github.com/rofl0r/proxychains-ng/issues/103#issuecomment-181503206
instead of continuing to workaround the bug in nmap, maybe someone could finally open a bug report with the nmap people ?
Still affected in proxychains-ng version 4.14 with nmap version 7.80.
Using the -sU parameter requires sudo, which is why I is used in the command below:
$ sudo proxychains4 nmap -v <IP REMOVED> -sU -Pn -p <PORT REMOVED>
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.14
Starting Nmap 7.80 ( https://nmap.org ) at <TIME REMOVED>
nmap: netutil.cc:1387: int collect_dnet_interfaces(const intf_entry*, void*): Assertion `rc == 0' failed.
Aborted
OS: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS" Kernel: 5.4.0-91-generic
I had this issue today after using nmap with proxychains and the -e option to specify which interface to run on. However, after the initial error with the -e options I receive the error with EVERY scan. Very weird and bad timing while in the middle of my eCPPT exam.
root@droid /h/h/I/PTP# proxychains4 nmap -n -Pn 10.185.10.55 -p- -T4 134 [proxychains] config file found: /etc/proxychains4.conf [proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4 [proxychains] DLL init: proxychains-ng 4.14 Starting Nmap 7.92 ( https://nmap.org ) at 2022-05-10 22:18 CDT nmap: netutil.cc:1323: int collect_dnet_interfaces(const intf_entry*, void*): Assertion rc == 0' failed.
[1] 16833 abort proxychains4 nmap -n -Pn 10.185.10.55 -p- -T4`
Version info from dpkg -l libproxychains4:amd64 4.14-3 amd64 runtime shared library for proxychains-ng ii nmap 7.92+dfsg1-2 amd64 The Network Mapper ii nmap-common 7.92+dfsg1-2 all Architecture independent files for nmap