hc-syn
04f66223a4
adapt to chain_step signature change
2024-07-18 14:42:52 +02:00
hc-syn
2b40ffa7f8
merge master commits
2024-07-18 14:32:46 +02:00
hc
14ba73189c
clean some comments
2024-06-20 15:40:40 +02:00
rofl0r
821249f22a
add new --fat-binary-m2 option
...
this enables arm64e in the proxychains4 binary additionally to the
injected library, which already did so with the -m1 option.
closes #569
2024-06-13 12:21:16 +00:00
hc
65ab050bc2
add uv_close hook
2024-05-22 17:52:59 +02:00
hugoc
2eb03d3719
Changed calls to close, sendto, recvfrom to calls to true_XX calls to
...
avoid some deadlocks
2024-03-22 18:37:48 +01:00
hugoc
7e818c1499
fix sendmmsg deadlocks
2024-03-21 17:37:25 +01:00
hugoc
004b19b1fb
add chain debug
2024-03-20 18:22:30 +01:00
hugoc
12c95244ce
remove some debug
2024-03-20 14:53:52 +01:00
rofl0r
fffd2532ad
fix wrong prototype of freeaddrinfo_t
...
closes #557
2024-03-14 20:11:58 +00:00
hugoc
0322811965
change debug format
2024-02-13 19:51:24 +01:00
hugoc
803f8a61b4
mutex, true_close, fix del_relay_chain
2024-02-13 19:51:14 +01:00
hugoc
b377a2927b
hook read and write
2024-02-10 16:19:49 +01:00
hugoc
1c8c231272
adding comments
2024-02-02 16:39:47 +01:00
hugoc
e379a8af75
implement MSG_TRUNC logic in recvfrom and recvmsg
2024-02-02 16:39:32 +01:00
hugoc
a47f9c0576
change unsocksify_udp_packet() and
...
decapsulate_udp_packet() signature.
Moved udp data copy outside these functions
2024-02-02 00:08:03 +01:00
hugoc
81092b1f4b
define RECV_BUFFER_SIZE
2024-02-01 23:46:21 +01:00
hugoc
14c35dd7e9
add filtering on send flags
2024-02-01 23:16:39 +01:00
hugoc
5660aea02e
remove send_udp_packet()
2024-02-01 17:53:11 +01:00
hugoc
436f402f1e
fix sockaddr / sockaddr_storage confusion
2024-02-01 17:24:36 +01:00
rofl0r
282ac7dd02
release 4.17
2024-01-21 17:28:35 +00:00
hugoc
44c4352d72
removed receive_udp_packet()
2024-01-17 12:48:20 +01:00
hugoc
120cfe96be
comments
2024-01-17 10:34:41 +01:00
hugoc
23c9654cf8
hook connect and getpeername
2024-01-16 16:00:30 +01:00
hugoc
95036aac7b
sendmmsg and fixes
2024-01-03 15:31:08 +01:00
rofl0r
1d0bc349eb
fix potential double-close of file descriptors
...
in case of an error condition, both start_chain() and chain_step()
were closing the fd to be acted upon, without setting it to -1,
and the function calling them would close them again.
this could affect multi-threaded applications that opened new fds
between the first and the second close, invalidating those fds
in the targeted app.
patch loosely based on report and PR by @jhfrontz.
closes #542
2024-01-02 14:45:25 +00:00
hugoc
d2dc4d6ed8
fix msgname NULL when connected socket
2023-12-19 20:54:58 +01:00
hugoc
0197c9243c
digworks
2023-12-13 02:22:55 +01:00
hugoc
f3511f80a6
dig works
2023-12-13 02:22:20 +01:00
hugoc
8ed4b52140
separate functions, add utils, hook recvmsg
2023-12-12 00:27:51 +01:00
hugoc
45aed8644f
close relay chain and v4inv6 to v4
2023-12-11 01:05:49 +01:00
hugoc
0ee4c00b5b
add dump relay chain
2023-12-11 01:04:45 +01:00
hugoc
4c75e059d9
implements udp reception and fixes
2023-12-10 16:05:19 +01:00
hugoc
48422d4c07
add dump_buffer in debug
2023-12-10 16:03:04 +01:00
Guilherme Janczak
0279dda939
OpenBSD: use ':' as LD_PRELOAD separator ( #538 )
...
LD_PRELOAD documentation added in 1998 talks about colon as
separator, and apparently space no longer works.
2023-12-09 12:59:53 +00:00
wzy
d5cc80ae16
Fix zsh install location ( #532 )
...
Reported: https://github.com/NixOS/nixpkgs/pull/222667#issuecomment-1713238866
2023-12-02 21:28:35 +00:00
hugoc
560613256a
add read_udp_header()
2023-11-29 01:13:01 +01:00
hugoc
9f4cd23973
implemented send hook logic
2023-11-28 20:20:36 +01:00
hugoc
68180a6b66
bug fixes
2023-09-11 13:22:16 +02:00
hugoc
8348e42608
udp wip 2
2023-09-08 16:42:54 +02:00
hugoc
2c5ad9f81a
udp wip
2023-09-08 16:42:54 +02:00
hugoc
39ff28a2bc
adding missing hooks
2023-09-08 16:42:54 +02:00
rofl0r
0c795085fa
move initialization of quiet variable to do_init
...
fixes #511 - DLL init line is always printed even with -q.
regression from recent changes to init code.
2023-05-20 15:27:22 +00:00
Wu Zhenyu
42d2d95160
Remove unused code in zsh completion
...
Move completions/_proxychains4 to completions/zsh/_proxychains4 to avoid confusion
2023-04-26 21:11:29 +01:00
rofl0r
133e06b3f0
fix resolving of proxy names with proxy_dns_daemon
...
closes #497
in order to make this work, also the change in 2d265582a2
was required; otherwise the sendto() call from rdns lookup would
cause the init code to be called from within the init code and
ultimately hanging on pthread_once().
2023-03-20 20:29:25 +00:00
rofl0r
2d265582a2
disable lazy init if compiler supports GCC constructor attribute
...
before we started to use the gcc constructor attribute to load our
initialization code, each function hook used to check whether the
initialization was already done, and if not, do it at that point.
this workaround is quite ugly, and creates a circular reference
if the startup code calls any of the hooked functions.
now we only do the lazy init if the compiler used is not GCC
compatible.
2023-03-20 20:15:00 +00:00
rofl0r
66f99b19dd
improve DNS failure handling with old proxyresolv method
...
should fix #493
2023-03-08 15:05:06 +00:00
rofl0r
199d03d8b4
configure: add a check for whether libc headers are usable
...
closes #486
2022-12-10 19:19:53 +00:00
rofl0r
060801d8c8
fat-binary-m1: use arm64e for dylib, but not for executable
...
according to research done by @malash, the proxychains4 binary
itself isn't allowed to use system-internal arm64e mode; but
it's possible to add it as a 3rd architecture to the shared
library (.dylib), and then even inject it into system binaries
like /usr/bin/curl, which didn't work since the introduction
of SIP.
therefore, we now create the dylib with all 3 archs, but the
launcher only with arm64 and x86_64.
closes #453
2022-07-21 23:04:03 +00:00
rofl0r
09142579c5
use -Wno-unknown-pragmas if available
...
this heavily reduces compiler warning spam in build logs.
2022-06-11 11:00:34 +00:00