I build something like that myself once. Corporate proxy won't allow anything. Fine. cntlm authenticate against proxy, use sslh demultiplexer on port 443 to setup an ssh tunnel over that. Then use privoxy to create a socks proxy over ssh and that's how i got access everywherere.
For cases where you have to go through a paywall for wifi i recommend iodine. Super slow but useful.