haad / proxychains

proxychains - a tool that forces any TCP connection made by any given application to follow through proxy like TOR or any other SOCKS4, SOCKS5 or HTTP(S) proxy. Supported auth-types: "user/pass" for SOCKS4/5, "basic" for HTTP.
http://proxychains.sourceforge.net/
GNU General Public License v2.0
6.8k stars 631 forks source link

Issue when opening some apps like discord with proxychains #170

Open 0XC7R opened 1 week ago

0XC7R commented 1 week ago

Describe the bug I modified my /etc/profile to run proxychains along side any programs like discord when launching from cli however it outputs the following issue from cli: ┌─╼[0xC7R@LINUX]-[~] └────╼ ❯❯❯ discord [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [8871:1111/195542.252660:FATAL:zygote_host_impl_linux.cc(215)] Check failed: . : Invalid argument (22) [1] 8871 trace trap discord

To Reproduce Steps to reproduce the behavior:

  1. Add the following to /etc/profile on kali linux distro: export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.4 export PROXYCHAINS_CONF_FILE=/etc/proxychains.conf
  2. Run 'discord' inside cli

Expected behavior Discord to boot with 0 issues

Screenshots image.png

Additional context I do have tornet running in a terminal on another workspace. Command: tornet --interval 3600 --count 6 My config (forgot to add it initially):

#
#        HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS.
#   

# The option below identifies how the ProxyList is treated.
# only one option should be uncommented at time,
# otherwise the last appearing option will be accepted
#
#dynamic_chain
#
# Dynamic - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# at least one proxy must be online to play in chain
# (dead proxies are skipped)
# otherwise EINTR is returned to the app
#
strict_chain
#
# Strict - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# all proxies must be online to play in chain
# otherwise EINTR is returned to the app
#
#random_chain
#
# Random - Each connection will be done via random proxy
# (or proxy chain, see  chain_len) from the list.
# this option is good to test your IDS :)

# Make sense only if random_chain
#chain_len = 2

# Quiet mode (no output from library)
#quiet_mode

# Proxy DNS requests - no leak for DNS data
proxy_dns 

# Some timeouts in milliseconds
tcp_read_time_out 15000
tcp_connect_time_out 8000

# ProxyList format
#       type  host  port [user pass]
#       (values separated by 'tab' or 'blank')
#
#
#        Examples:
#
#       socks5  127.0.0.1   9050        
#       http    192.168.89.3    8080    justu   hidden
#       socks4  192.168.1.49    1080
#           http    192.168.39.93   8080    
#       
#
#       proxy types: http, socks4, socks5
#        ( auth types supported: "basic"-http  "user/pass"-socks )
#
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
#socks4 127.0.0.1 9050
socks5 127.0.0.1 9050
0XC7R commented 6 days ago

Did some research and using the following for discord: discord --no-sandbox --disable-software-rasterizer --in-process-gpu appears to make it compatible with proxychains.

Ill leave this open incase I find any other apps that this has issues with etc.