StructsΒ§
- Args π
- Tunnel SOCKS5 traffic through obfs4 connections
- Bridge
Line πParse Error - Error defined to denote a failure to get the bridge line
- Forwarding
Creds π - Store the data we need to connect to the obfs4 client
EnumsΒ§
- Command π
- Specify which mode we wish to use the program in
ConstantsΒ§
- CLIENT_
STATE_ πLOCATION - The location where the obfs4 client will store its state
- SERVER_
STATE_ πLOCATION - The location where the obfs4 server will store its state
FunctionsΒ§
- build_
client_ πconfig - Create the config to launch an obfs4 client process
- build_
server_ πconfig - Create the config to launch an obfs4 server process
- connect_
to_ πobfs4_ client - Create a SOCKS5 connection to the obfs4 client
- launch_
obfs4_ πclient_ process - Launch obfs4 client process
- launch_
obfs4_ πserver_ process - Launch obfs4 server process
- main π
- Main function, ties everything together and parses arguments etc.
- read_
cert_ πinfo - Read cert info and relay it to the user
- run_
forwarding_ πserver - Launch the dumb TCP pipe, whose only job is to abstract away the obfs4 client and its complicated setup, and just forward bytes between the obfs4 client and the client
- run_
socks5_ πserver - Run the final hop of the connection, which finally makes the actual network request to the intended host and relays it back