-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_ssl_tunnel.sh
executable file
·25 lines (22 loc) · 880 Bytes
/
run_ssl_tunnel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
check_ret() {
if [ $1 -ne 0 ]; then
echo ""
echo "!!! FAIL: $2"
echo "********************************************************************************"
echo ""
exit $1
else
echo ""
echo "*** SUCCESS: $2"
echo "********************************************************************************"
echo ""
fi
}
if [ ! -f ssl_tunnel ]; then
./build_ssl_tunnel.sh
check_ret $? "Could not build ssl_tunnel "
fi
# LD_PRELOAD=$(pwd)/openssl/build/lib64/libssl.so.3:$(pwd)/openssl/build/lib64/libcrypto.so.3 ldd -d ./ssl_tunnel
# LD_PRELOAD=$(pwd)/openssl/build/lib64/libssl.so.3:$(pwd)/openssl/build/lib64/libcrypto.so.3 ./openssl/build/bin/openssl version -a
LD_PRELOAD=$(pwd)/openssl/build/lib64/libssl.so.3:$(pwd)/openssl/build/lib64/libcrypto.so.3 ./ssl_tunnel 23832 sea5kg.ru 443