1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-06 21:02:55 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
RomFouq
d859079743
Merge 77bbeef280 into 821249f22a 2024-06-20 21:36:03 +00: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
RomFouq
77bbeef280 Remove trailing whitespace in proxychains.conf 2020-12-27 12:19:33 +01:00
2 changed files with 18 additions and 7 deletions

12
configure vendored
View File

@ -87,6 +87,7 @@ usage() {
echo " to preload from current dir (possibly insecure, but handy)" echo " to preload from current dir (possibly insecure, but handy)"
echo "--fat-binary : build for both i386 and x86_64 architectures on 64-bit Macs" echo "--fat-binary : build for both i386 and x86_64 architectures on 64-bit Macs"
echo "--fat-binary-m1 : build for both arm64e and x86_64 architectures on M1 Macs" echo "--fat-binary-m1 : build for both arm64e and x86_64 architectures on M1 Macs"
echo "--fat-binary-m2 : build for arm64, arm64e and x86_64 architectures on M2+ Macs"
echo "--hookmethod=dlsym|dyld hook method for osx. default: auto" echo "--hookmethod=dlsym|dyld hook method for osx. default: auto"
echo " if OSX >= 12 is detected, dyld method will be used if auto." echo " if OSX >= 12 is detected, dyld method will be used if auto."
echo "--help : show this text" echo "--help : show this text"
@ -102,6 +103,7 @@ spliteq() {
fat_binary= fat_binary=
fat_binary_m1= fat_binary_m1=
fat_binary_m2=
ignore_cve=no ignore_cve=no
hookmethod=auto hookmethod=auto
@ -118,6 +120,7 @@ parsearg() {
--hookmethod=*) hookmethod=`spliteq $1`;; --hookmethod=*) hookmethod=`spliteq $1`;;
--fat-binary) fat_binary=1;; --fat-binary) fat_binary=1;;
--fat-binary-m1) fat_binary_m1=1;; --fat-binary-m1) fat_binary_m1=1;;
--fat-binary-m2) fat_binary_m2=1;;
--help) usage;; --help) usage;;
esac esac
} }
@ -289,6 +292,12 @@ if ismac ; then
echo "FAT_LDFLAGS=-arch arm64 -arch arm64e -arch x86_64">>config.mak echo "FAT_LDFLAGS=-arch arm64 -arch arm64e -arch x86_64">>config.mak
echo "FAT_BIN_LDFLAGS=-arch arm64 -arch x86_64">>config.mak echo "FAT_BIN_LDFLAGS=-arch arm64 -arch x86_64">>config.mak
fi fi
if [ "$fat_binary_m2" = 1 ] ; then
echo "Configuring a fat binary for arm64[e] and x86_64"
echo "MAC_CFLAGS+=-arch arm64 -arch arm64e -arch x86_64">>config.mak
echo "FAT_LDFLAGS=-arch arm64 -arch arm64e -arch x86_64">>config.mak
echo "FAT_BIN_LDFLAGS=-arch arm64 -arch arm64e -arch x86_64">>config.mak
fi
elif isbsd ; then elif isbsd ; then
echo LIBDL=>>config.mak echo LIBDL=>>config.mak
echo "CFLAGS+=-DIS_BSD">>config.mak echo "CFLAGS+=-DIS_BSD">>config.mak
@ -302,3 +311,6 @@ elif ishaiku ; then
fi fi
echo "Done, now run $make_cmd && $make_cmd install" echo "Done, now run $make_cmd && $make_cmd install"
if [ "$fat_binary_m2" = 1 ] ; then
echo "Don't forget to run csrutil disable and sudo nvram boot-args=-arm64e_preview_abi"
fi

View File

@ -79,12 +79,12 @@ proxy_dns
# we use the reserved 224.x.x.x range by default, # we use the reserved 224.x.x.x range by default,
# if the proxified app does a DNS request, we will return an IP from that range. # if the proxified app does a DNS request, we will return an IP from that range.
# on further accesses to this ip we will send the saved DNS name to the proxy. # on further accesses to this ip we will send the saved DNS name to the proxy.
# in case some control-freak app checks the returned ip, and denies to # in case some control-freak app checks the returned ip, and denies to
# connect, you can use another subnet, e.g. 10.x.x.x or 127.x.x.x. # connect, you can use another subnet, e.g. 10.x.x.x or 127.x.x.x.
# of course you should make sure that the proxified app does not need # of course you should make sure that the proxified app does not need
# *real* access to this subnet. # *real* access to this subnet.
# i.e. dont use the same subnet then in the localnet section # i.e. dont use the same subnet then in the localnet section
#remote_dns_subnet 127 #remote_dns_subnet 127
#remote_dns_subnet 10 #remote_dns_subnet 10
remote_dns_subnet 224 remote_dns_subnet 224
@ -109,7 +109,7 @@ tcp_connect_time_out 8000
## RFC6890 Loopback address range ## RFC6890 Loopback address range
## if you enable this, you have to make sure remote_dns_subnet is not 127 ## if you enable this, you have to make sure remote_dns_subnet is not 127
## you'll need to enable it if you want to use an application that ## you'll need to enable it if you want to use an application that
## connects to localhost. ## connects to localhost.
# localnet 127.0.0.0/255.0.0.0 # localnet 127.0.0.0/255.0.0.0
# localnet ::1/128 # localnet ::1/128
@ -147,8 +147,8 @@ tcp_connect_time_out 8000
# socks5 192.168.67.78 1080 lamer secret # socks5 192.168.67.78 1080 lamer secret
# http 192.168.89.3 8080 justu hidden # http 192.168.89.3 8080 justu hidden
# socks4 192.168.1.49 1080 # socks4 192.168.1.49 1080
# http 192.168.39.93 8080 # http 192.168.39.93 8080
# #
# #
# proxy types: http, socks4, socks5, raw # proxy types: http, socks4, socks5, raw
# * raw: The traffic is simply forwarded to the proxy without modification. # * raw: The traffic is simply forwarded to the proxy without modification.
@ -159,4 +159,3 @@ tcp_connect_time_out 8000
# meanwile # meanwile
# defaults set to "tor" # defaults set to "tor"
socks4 127.0.0.1 9050 socks4 127.0.0.1 9050