<p dir="ltr">Orbot currently uses a random port, at each boot it writes its value to a file of shared preferences and the application reads it. I have not had problems locating the port in Proc and I have been able to communicate with it using the connection library used by Orbot itself</p>
<p dir="ltr">Access to the port is not protected by password, if the objective was to provide security has not been achieved<br><br></p>
<p dir="ltr">Proc parser:</p>
<p dir="ltr"><a href="https://github.com/arrase/TorMessage/blob/master/app/src/main/java/llanes/ezquerro/juan/tormessage/procParse/FindOrbotPort.java">https://github.com/arrase/TorMessage/blob/master/app/src/main/java/llanes/ezquerro/juan/tormessage/procParse/FindOrbotPort.java</a></p>
<div class="gmail_extra"><br><div class="gmail_quote">El 14 nov. 2016 2:16 p. m., "Hans-Christoph Steiner" <<a href="mailto:hans@guardianproject.info">hans@guardianproject.info</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hmm, this sounds like a bug report then :-/  Apps should not be able to<br>
use the control port, as far as I know.  I don't think its possible to<br>
allow apps to use the Tor control port in a secure way, unless there is<br>
some kind of query-only "guest" mode.<br>
<br>
Orbot should really use ControlSocket to use a UNIX domain socket on the<br>
filesystem so it can be protected by file permissions.<br>
<br>
.hc<br>
<br>
arrase:<br>
> NetCipher looks good, but, is there a method to find the orbot control port?<br>
><br>
> I was reading the library and i cannot see a method to connect to the<br>
> daemon and i would like to manage my own hidden service.<br>
><br>
> I don't understad why orbot uses a random port every run for control port,<br>
> do not adds an extra securety layer, is only tedious<br>
><br>
> now i'm parsing proc file to catch the port number<br>
><br>
> 2016-11-14 12:54 GMT+01:00 Hans-Christoph Steiner <<a href="mailto:hans@guardianproject.info">hans@guardianproject.info</a><br>
>> :<br>
><br>
>><br>
>> Hi, welcome!<br>
>><br>
>> If you want to add Tor support to apps, you'll definitely be interested<br>
>> in our NetCipher library, which is where we do all our Tor integration<br>
>> work:<br>
>><br>
>> <a href="https://github.com/guardianproject/netcipher" rel="noreferrer" target="_blank">https://github.com/<wbr>guardianproject/netcipher</a><br>
>><br>
>> .hc<br>
>><br>
>> arrase:<br>
>>> Hi, I'm interested in developing applications under Tor and I've known<br>
>> your<br>
>>> project, I find it interesting.<br>
>>><br>
>>> Here is my github:<br>
>>><br>
>>> <a href="https://github.com/arrase" rel="noreferrer" target="_blank">https://github.com/arrase</a><br>
>>><br>
>>> I am currently interested in writing something like TorChat or Ricochet<br>
>> for<br>
>>> android<br>
>>><br>
>>><br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> List info: <a href="https://lists.mayfirst.org/mailman/listinfo/guardian-dev" rel="noreferrer" target="_blank">https://lists.mayfirst.org/<wbr>mailman/listinfo/guardian-dev</a><br>
>>> To unsubscribe, email:  <a href="mailto:guardian-dev-unsubscribe@lists.mayfirst.org">guardian-dev-unsubscribe@<wbr>lists.mayfirst.org</a><br>
>>><br>
>><br>
>> --<br>
>> PGP fingerprint: EE66 20C7 136B 0D2C 456C  0A4D E9E2 8DEA 00AA 5556<br>
>> <a href="https://pgp.mit.edu/pks/lookup?op=vindex&search=0xE9E28DEA00AA5556" rel="noreferrer" target="_blank">https://pgp.mit.edu/pks/<wbr>lookup?op=vindex&search=<wbr>0xE9E28DEA00AA5556</a><br>
>> ______________________________<wbr>_________________<br>
>> List info: <a href="https://lists.mayfirst.org/mailman/listinfo/guardian-dev" rel="noreferrer" target="_blank">https://lists.mayfirst.org/<wbr>mailman/listinfo/guardian-dev</a><br>
>> To unsubscribe, email:  <a href="mailto:guardian-dev-unsubscribe@lists.mayfirst.org">guardian-dev-unsubscribe@<wbr>lists.mayfirst.org</a><br>
>><br>
><br>
<br>
--<br>
PGP fingerprint: EE66 20C7 136B 0D2C 456C  0A4D E9E2 8DEA 00AA 5556<br>
<a href="https://pgp.mit.edu/pks/lookup?op=vindex&search=0xE9E28DEA00AA5556" rel="noreferrer" target="_blank">https://pgp.mit.edu/pks/<wbr>lookup?op=vindex&search=<wbr>0xE9E28DEA00AA5556</a><br>
</blockquote></div></div>