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

Problem with UDP in proxychains-ng fork hc-syn/proxychains-ng branch "udp-associate": Segmentation fault when dealing with sendto(*) #574

Closed przemyslaw0 closed 3 months ago

przemyslaw0 commented 3 months ago

When a program wrapped with proxychains-ng (that fork and branch with UDP support) makes a sendto(*) syscall, a segmentation fault happens:

$ dig @127.0.0.1 -p 1053 g.co
;; communications error to 127.0.0.1#1053: timed out
;; communications error to 127.0.0.1#1053: connection refused
;; communications error to 127.0.0.1#1053: connection refused

; <<>> DiG 9.19.25-185-g392e7199df2-1-Debian <<>> @127.0.0.1 -p 1053 g.co
; (1 server found)
;; global options: +cmd
;; no servers could be reached
$ /dev/shm/proxychains-ng/proxychains4 -f /dev/shm/proxychains-ng/src/proxychains.conf udppm -l -i127.0.0.1 1053 1.1.1.1 53
[proxychains] config file found: /dev/shm/proxychains-ng/src/proxychains.conf
[proxychains] preloading /dev/shm/proxychains-ng/libproxychains4.so
[proxychains] DLL init: proxychains-ng 
240723014339.124 1053 00000 - 127.0.0.1:1053 0.0.0.0:0 0 0 0 Accepting connections [407494/3370964800]
Segmentation fault

@hc-syn

Could you please fix it?

Here is the strace log: https://pastebin.com/raw/Yk416F3L

rofl0r commented 3 months ago

please report issues with forks in the corresponding repo.

przemyslaw0 commented 3 months ago

@rofl0r Sorry about that, that fork doesn't have Issues or Discussion sections, also, I cannot contact directly the developer because his e-mail is not visible.

Thanks.

rofl0r commented 3 months ago

ftr, what i do in such a case is comment on a commit in that repo and use "@ mention". does the job too.

przemyslaw0 commented 3 months ago

@rofl0r I will do that, thanks.