Skip to content

Conversation

atefBB
Copy link

@atefBB atefBB commented Aug 8, 2018

Hi @dunglas !
#13 DONE.

@atefBB
Copy link
Author

atefBB commented Aug 8, 2018

Hi @dunglas !
I'm wrong about this issue.
In /etc/tor/torrc file, this line should be uncommented:
HashedControlPassword 16:107DFDC...
(the hashed password here, see this https://github.com/DedSecInside/TorBoT/blob/master/Tor.md)

So the code become:

$tc = new TorControl\TorControl(
                array(
                    'hostname'   => '127.0.0.1',
                    'port'       => 9051,
                    'password'   => 'password',
                    // the original password not the hashed one
                    'authmethod' => 1,
                )
            );

Sorry!

@atefBB
Copy link
Author

atefBB commented Aug 9, 2018

After a digging in control spec, I found:
auth_ctrl_tor

This instruction has been called twice for because it always called while the `object destruction` (https://github.com/dunglas/php-torcontrol/blob/master/src/TorControl.php#L136).

// Echo the server reply code and message
echo $res[0]['code'].': '.$res[0]['message'];

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

- 5.5
- 5.6
- 7.0
- hhvm
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's necessary to support HHVM. However we should run tests with PHP 7.1 and 7.2.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not touch those files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants