1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-08 22:22:52 +08:00
Commit Graph

386 Commits

Author SHA1 Message Date
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
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
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
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
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
rofl0r
916d2d7da1 fix --fat-binary-m1 option
even though the preload library was built correctly, the LDFLAGS set
weren't passed to the main proxychains4 binary, resulting in link
errors against the fat object files.

closes #452
2022-05-31 23:53:23 +00:00
rofl0r
4b531806b2 configure: add --fat-binary-m1 for arm64e/x86_64 (M1) fat binary
addresses #451
closes #383
2022-05-19 09:12:10 +00:00
Zenithal
9b42da71f4 Fix zsh completion file to proxychains4 2022-05-15 09:36:35 +01:00
Freed-Wu
04023d3811 Add zsh completion file 2022-04-13 00:55:19 +01:00
rofl0r
0a4daa62d6 using qsort for 4 ints is overkill
replace it with custom mini sort routine.
2022-04-12 23:51:17 +00:00
Recolic Keghart
0000000062 Add hook to close_range function, solves #439. |0! 2022-04-12 20:37:05 +08:00
rofl0r
07c15a02f6 add configure check for non-POSIX compliant getnameinfo signature
- glibc < 2.14 uses "unsigned" instead of "int" for flags
- openbsd and freebsd use "size_t" instead of socklen_t for servlen
  and nodelen, while still using socklen_t for salen.

closes #430
2022-01-25 15:42:55 +00:00
rofl0r
2cc014995e release 4.16 2022-01-23 14:16:56 +00:00
Vladimir Panteleev
6abeb53e69 proxy_getaddrinfo(): Fill in ai_socktype if requested
If the application specifies a protocol but not a socket type,
normally getaddrinfo will select a corresponding protocol.

Mimic this behavior in our implementation of the function as well.
We only care about the case we're actually able to proxify
(SOCK_STREAM / IPPROTO_TCP).

Fixes proxifying pssh.
2022-01-22 20:05:47 +00:00
Vladimir Panteleev
70629aaf25 src/proxychains.conf: Fix typos 2022-01-22 20:05:47 +00:00
rofl0r
a12cf0a516 main: add more luser-friendly error message when execvp fails
closes #423
closes #412
2022-01-10 11:44:26 +00:00
Eero Häkkinen
2739fb5416 support IPv6 localnets
closes #218
2022-01-03 14:52:06 +00:00