Skip to content
Snippets Groups Projects
Commit b14a543e authored by nam1n15's avatar nam1n15
Browse files

updated script with extraneous debugging + tunsocks, since ocproxy stopped working

parent 34506058
No related branches found
No related tags found
No related merge requests found
https://github.com/russdill/tunsocks
sudo dnf install libevent-devel automake
git submodule init
git submodule update
./autogen.sh
./configure
make
# yeah this is not reproducible at all
#!/bin/bash
set -eu
find_hipreport() {
echo "https://wiki.archlinux.org/title/Pacman/Rosetta - your distribution"
echo "dpkg -S openconnect | grep hipreport - debian"
echo "dnf repoquery -ql openconnect | grep hipreport - fedora"
echo "pacman -Ql openconnect | grep hipreport - arch"
}
debug_info() {
echo -- debug info --
openconnect --version
file $(which ocproxy)
ls -la $(which ocproxy)
sha256sum $(which ocproxy)
#ocproxy --version
echo
}
debug_info
csd_wrapper="" #--csd-wrapper /usr/lib/x86_64-linux-gnu/openconnect/hipreport-android.sh"
csd_wrapper="--csd-wrapper /usr/libexec/openconnect/hipreport.sh" # fedora
user="--user nam1n15"
pass=""
port="11080"
openconnect --script-tun --script "/usr/bin/ocproxy -D $port" --protocol=gp globalprotect.soton.ac.uk $csd_wrapper $user $pass
#openconnect --script-tun --script "/usr/bin/ocproxy -D $port" --protocol=gp globalprotect.soton.ac.uk $csd_wrapper $user $pass
# debug: tcpdump to /tmp/tcpdump
# openconnect --script-tun --script "/usr/bin/ocproxy -v -D $port" --protocol=gp globalprotect.soton.ac.uk $csd_wrapper $user $pass
# for some reason, ocproxy stopped working and tunsocks does work, so..
openconnect --script-tun --script "/usr/local/bin/tunsocks -D $port" --protocol=gp globalprotect.soton.ac.uk $csd_wrapper $user $pass
echo Created socks5 proxy to university VPN on port $port
echo Connect with http_proxy="socks5h://localhost:11080" , or set firefox settings (or foxyproxy), or use proxychains
echo 'Connect with http_proxy="socks5h://localhost:11080" , or set firefox settings (or foxyproxy), or use proxychains'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment