proxychains-windows icon indicating copy to clipboard operation
proxychains-windows copied to clipboard

Proxychains + long command with args = Error when parsing args: Insufficient Buffer

Open barkoder opened this issue 1 year ago • 2 comments

C:/proxychains_0.6.8_win32_x64/proxychains_win32_x64.exe -q -f C:/proxychains_0.6.8_win32_x64/proxychains.conf wget -c --progress=bar:force:noscroll --secure-protocol=TLSv1_2 -e robots=off --user-agent="Mozilla/5.0" --no-cookies --retry-connrefused --waitretry=10 --tries=100 'https://example.com' -O /dev/null --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue --arbitraryflag=arbitraryvalue

Yes I am aware that the above command is not valid in wget.

I often have to use much longer curl commands(including several header fields) which is where I originally encountered this problem. But I can't paste that here for privacy reasons. Hence the above command.

Thanks for your work. It works great, for shorter commands.

barkoder avatar Jul 26 '23 06:07 barkoder

I think it's because of this, should have set it bigger: https://github.com/shunf4/proxychains-windows/blob/ff54115885b0fc268cee6f22f386bbc2df5ad589/include/defines_generic.h#L109

If you are unwilling to modify this constant and rebuild, I am afraid you have to use an external config file (--config) for wget, or use a wrapper batch/executable file to launch the process.

shunf4 avatar Jul 27 '23 09:07 shunf4

Couldn't it be set to a larger value by default? I see no shortcomings in doing so and could fix the issue for everybody

JulianGR avatar Jan 02 '24 13:01 JulianGR