rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.82k stars 1.08k forks source link

quiet_mode in proxychains.conf does not work #549

Open zeertzjq opened 9 months ago

zeertzjq commented 9 months ago

With proxychains 4.17, specifying quiet_mode in /etc/proxychains.conf does not silence the [proxychains] DLL init: proxychains-ng 4.17 message. It can only be silenced by the -q command line argument.

fyangami commented 9 months ago

same issue too.

TimeRainStarSky commented 9 months ago

same issue too.

rofl0r commented 9 months ago

it's a difficult problem. at the point the config is parsed, these messages were already printed. i'd have to implement some sort of caching (involves memory allocation) and postpone printing of the output until config parsing is done. memory allocation in a hook library can lead to all sorts of issues in multithreaded/multiprocess (fork()ing) apps, that's why most (or all, in case the threaded resolver is disabled) memory is statically allocated. therefore my leaning is to obsolete the config option and recommend instead the use of -q or setting the environment variable PROXYCHAINS_QUIET_MODE=1 instead. even though the output of proxychains may appear annyoing to you, it's the only way to make sure the program is properly hooked.