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
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
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 )
- 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
- android.permission.ACCESS_NETWORK_STATE
- android.permission.INTERNET
- android.permission.READ_EXTERNAL_STORAGE
- android.permission.WRITE_EXTERNAL_STORAGE
- WorkingDirectory As java.io.File [read only]
Prints working tor directory
- Events:
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
Last edited: