I have configured my proxy chains in /etc/proxychains.conf. Then when just run nmap or even nc without the proxychains prefix, it automatically uses the proxy chains and routes the traffic through the proxies. I have verified that there are no alias for both the commands. Is this the expected behaviour? Does Nmap checks the /etc/proxychains.conf automatically?


I have figured it out. Basically when I have the environment variable LD_PRELOAD set in the shell (export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3), the Nmap automatically uses the proxychains. Otherwise it behaves normally.

  • Yes, that's what LD_PRELOAD is designed to do
    – MechMK1
    Jul 14 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.