Skip to content

An open-source, privacy-enhancing web browser for iOS, utilizing the Tor anonymity network

License

Notifications You must be signed in to change notification settings

zanyfly/OnionBrowser

 
 

Repository files navigation

Onion Browser

Build Status
Official Site | Support | Changelog | Donate
© 2012-2017 Mike Tigas (@mtigas)
Mozilla Public License 2.0

Onion Browser is a free web browser for iPhone and iPad that encrypts and tunnels web traffic through the Tor network. See the official site for more details and App Store links.



Implementation notes

The app uses the Tor.framework package to build the Tor, OpenSSL, and libevent dependencies.

Because iOS applications cannot launch subprocesses or otherwise execute other binaries, the tor client is run in-process in a NSThread subclass which executes the tor_main() function (as an external tor executable would) and attempts to safely wrap Tor within the app. (libor.a and libtor.a, intermediate binaries created when compiling Tor, are used to provide Tor.) Side-effects of this method have not yet been fully evaluated. Management of most tor functionality (status checks, reloading tor on connection changes) is handled by accessing the Tor control port in an internal, telnet-like session from the AppDelegate.

The app uses a NSURLProtocol subclass (ProxyURLProtocol), registered to handle HTTP/HTTPS requests. That protocol uses the CKHTTPConnection class which nearly matches the NSURLConnection class, providing wrappers and access to the underlying CFHTTP Core Framework connection bits. This connection class is where SOCKS5 connectivity is enabled. (Because we are using SOCKS5, DNS requests are sent over the Tor network, as well.)

About

An open-source, privacy-enhancing web browser for iOS, utilizing the Tor anonymity network

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 80.6%
  • HTML 14.4%
  • C 4.7%
  • Shell 0.3%