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

without root it failed, config error ? permission error or otherwise #546

Closed minbaby closed 10 months ago

minbaby commented 10 months ago

system: wsl2 software: build from source

without sudo it failed

╰$ proxychains4 curl -I https://www.google.com
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.16-git-18-g1d0bc34
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  127.0.0.1:1081  ...  OK
curl: (56) Proxy CONNECT aborted

but use sudo it success

╰$ sudo proxychains4 curl -I https://www.google.com
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.16-git-18-g1d0bc34
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.google.com:443  ...  OK
HTTP/2 200
content-type: text/html; charset=ISO-8859-1
content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-IHkegJl_0fqMsJfbhx1w-Q' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
date: Tue, 16 Jan 2024 14:08:44 GMT
server: gws
x-xss-protection: 0
x-frame-options: SAMEORIGIN
expires: Tue, 16 Jan 2024 14:08:44 GMT
cache-control: private
set-cookie: 1P_JAR=2024-01-16-14; expires=Thu, 15-Feb-2024 14:08:44 GMT; path=/; domain=.google.com; Secure
set-cookie: AEC=Ae3NU9PRN89vNN7DsZxdbQtFgvdLz27LbrUW6ub-li123DJhSMlUMksb8g; expires=Sun, 14-Jul-2024 14:08:44 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
set-cookie: NID=511=SQdfTTb9W_7rvPwU-8uqDXAYEbpRdngR2FjAe5IxR6yao38HsejU4oqswF59nG4jQw8wJ6CQM9mHQ5TydJE7u1sHVQw3AGikD0OiVQ-cYSfKGNyfuLuzI4Z5WCm2W8tGQ7p3VatTmfabRLwSIN5Lt7ZGCQ1jXJjgGqvOzZDj2l8; expires=Wed, 17-Jul-2024 14:08:44 GMT; path=/; domain=.google.com; HttpOnly
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
minbaby commented 10 months ago

uncomment localnet solved