B4A Library The Onion Router

This is a wrap around the Thail project and some custom work.

The lib is now able to connect to the Tor network, enable network activity and pass data to the socks proxy.

* Toro - Able to connect to hidden services.

When I get some time will update post and with simpler examples.

B4Ator
Author:
Jamie8763
Version: 0.2

  • B4ATor
    • Events:
      • ready (response As String)
      • stream (out as String As )
      Methods:
      • enableNetwork (t As boolean) As void
        Tells the Tor if it should accept network connections
        enable: If true then the Tor will accept SOCKS connections, otherwise not.
      • requester (url As java.lang.String) As void
        URL to fetch
        String: URL
      • stop As void
        Tell Tor to halt
      • streamlog As java.lang.String
        Stream
      • isRunning As boolean
        Check if running
        boolean: true/false
      • start As void
        Tells Tor to start
      • isBootstrapped As boolean
        Check if bootstrap
        boolean: true/false
      • publishHiddenService (hiddenServicePort As int) As java.lang.String
        Tells the Tor to publish a hidden service
        localport: to bind ie http service
      • Initialize (ba As anywheresoftware.b4a.BA, evname As java.lang.String) As void
      • info As void
        Gets Tor SOCKS Port
      Permissions:
      • android.permission.ACCESS_NETWORK_STATE
      • android.permission.INTERNET
      • android.permission.READ_EXTERNAL_STORAGE
      • android.permission.WRITE_EXTERNAL_STORAGE
      Properties:
      • WorkingDirectory As java.io.File [read only]
        Prints working tor directory
https://drive.google.com/file/d/1-Iw1aoSvUidwLS6Cl6Di28yir2b0kdlw/view?usp=sharing (The thail aar)

httpclient from this GitHub project is used for testing as had to rework it to to use SOCKS
https://drive.google.com/open?id=1RWzDoeBLsaspV7WNyzEjOSBsGkZoSc2h
 

Attachments

  • slf4j-android-1.7.7.jar
    7.3 KB · Views: 149
  • slf4j-api-1.7.7.jar
    28.6 KB · Views: 145
  • B4ATor.zip
    6 KB · Views: 182
  • Example.zip
    49.7 KB · Views: 183
  • Toro.zip
    6.9 KB · Views: 169
Last edited:

Meigionel TS

Member
Licensed User
Seems like it still does not support request to .onion links? I tested it with .onion links to hidden answers as well as hidden wiki, doesn't happen anything, seems like only the clearnet links are working. When trying it with .onion links, the application stops responding. I guess it is not supported by advanced web view library. But Is there a way to access an api running on an onion domain?
 

monic

Active Member
Licensed User
Longtime User
In the version currently being developed, it is possible to see the .onion address output but working on getting the output to the user.
 
Top