proxychains-ng
proxychains-ng copied to clipboard
`hookmethod=auto` does not work correctly on mac monterey
I followed #409 to check why proxychains4 not working on monterey, however, the default switch hookmethod=auto
does not work on my recently updated macos (12.4). The expected log using Monterey style DYLD hooking
did not show up.
I tested by adding lines to configure
, in check_define __APPLE__
section
osver=$(get_define_stripped __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 2>/dev/null)
+ echo "xxx osver=$osver"
it outputs
xxx osver=110300
It definitely not correct. I have to add --hookmethod=dyld
to ./configure
to make it work correctly.
Does it seem the correct way to detect MacOS version is the command sw_vers
?
$ sw_vers
ProductName: macOS
ProductVersion: 12.4
BuildVersion: 21F79
#465