Compare commits

..

9 commits

Author SHA1 Message Date
Chirstophe Mehay
1dbcebdee3 Update tor to 0.4.7.12 2023-01-08 21:34:14 +01:00
Chirstophe Mehay
4b38fef7a3 Update tor to 0.4.7.11 2022-11-14 22:14:26 +01:00
Chirstophe Mehay
57f8867341 Update readme 2022-07-26 23:38:03 +02:00
Chirstophe Mehay
7ccc5df943 Update Vangards to 0.3.1 2022-07-26 23:28:23 +02:00
Chirstophe Mehay
35ee048126 Update tor to 0.4.7.8 2022-07-26 23:28:23 +02:00
Chirstophe Mehay
8896142fc4 Fix issue when restarting tor container with control password 2022-07-26 23:28:23 +02:00
Chirstophe Mehay
6d1320f29b Update to python 3.10 2022-07-26 23:28:23 +02:00
Chirstophe Mehay
2fc69d3ff1 Fix typo in docker-compose.vanguards-network.yml 2022-07-26 23:28:23 +02:00
Chirstophe Mehay
f801929085 Update tor version to 0.4.6.10 2022-03-26 14:10:51 +01:00
10 changed files with 730 additions and 732 deletions

View file

@ -2,3 +2,5 @@ keys/
*.egg-info
.tox/
__cache__
__pycache__
*/__pycache__

View file

@ -1,4 +1,4 @@
FROM python:3.9-alpine
FROM python:3.10-alpine
# if omitted, the versions are determined from the git tags
ARG tor_version

View file

@ -53,3 +53,8 @@ run-vanguards: build
run-vanguards-network: build
docker-compose -f docker-compose.vanguards-network.yml up --force-recreate
publish: build
docker tag goldy/tor-hidden-service:$(CUR_TAG) goldy/tor-hidden-service:latest
docker push goldy/tor-hidden-service:$(CUR_TAG)
docker push goldy/tor-hidden-service:latest

View file

@ -4,6 +4,13 @@
## Changelog
* 26 jul 2022
* Update `onions` tool to v0.7.1:
* Fix an issue when restarting a container with control port enabled
* Updated to python 3.10
* Fix a typo in `docker-compose.vanguards-network.yml`, it works now
* Update `tor` to `0.4.7.8`
* 23 dec 2021
* Update `onions` tool to v0.7.0:
* Drop support of onion v2 adresses as tor network does not accept them anymore

View file

@ -1 +1 @@
0.4.6.10
0.4.7.12

View file

@ -8,7 +8,7 @@ services:
environment:
# Enable control port with ip binding (see networks configuration bellow)
# Using network interface instead of 0.0.0.0 help to protect control port from hidden services.
TOR_CONTROL_PORT: 127.16.111.10
TOR_CONTROL_PORT: 172.16.111.10
# Set controle port password (optionnal)
TOR_CONTROL_PASSWORD: something_secret
@ -54,7 +54,7 @@ services:
environment:
# Set tor hostname (or ip:port or unix:/path/to/socket.sock)
TOR_CONTROL_PORT: tor
TOR_CONTROL_PORT: tor:9051
# set password if needed
TOR_CONTROL_PASSWORD: something_secret

View file

@ -57,9 +57,10 @@ class Setup(object):
self.setup[host]['ports'][host].append(port)
def _hash_control_port_password(self, password):
self.control_hashed_password = subprocess.check_output([
'tor', '--quiet', '--hash-password', password
]).decode()
self.control_hashed_password = subprocess.check_output(
['/usr/local/bin/tor', '--quiet', '--hash-password', password],
env={'HOME': '/tmp'}
).decode()
def _parse_control_port_variable(self, check_ip=True):
control_port = os.environ['TOR_CONTROL_PORT']

1399
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "docker-tor-hidden-service"
version = "0.7.0"
version = "0.7.1"
description = "Display onion sites hosted"
authors = ["Christophe Mehay <cmehay@nospam.student.42.fr>"]
license = "WTFPL"
@ -23,24 +23,24 @@ packages = [
onions = "onions:main"
[tool.poetry.dependencies]
python = ">=3.8,<3.10"
pytor = "^0.1.7"
Jinja2 = "^2.10"
pyentrypoint = "^0.7.4"
importlib_metadata = "^1.6.0"
python = ">=3.10,<3.11"
Jinja2 = ">=2.10"
importlib_metadata = ">=1.6.0"
vanguards = "^0.3.1"
ipy = "^1.00"
ipy = ">=1.00"
pytor = '^0.1.9'
pyentrypoint = "^0.8.0"
[tool.poetry.dev-dependencies]
autopep8 = "^1.5.2"
tox = "^3.15.0"
cryptography = "^3.2"
pylint = "^2.5.2"
ptpython = "^3.0.2"
black = "^19.10b0"
pre-commit = "^2.3.0"
pytest = "^5.4.2"
pyfakefs = "^4.0.2"
autopep8 = ">=1.5.2"
tox = ">=3.15.0"
cryptography = ">=3.2"
pylint = ">=2.5.2"
ptpython = ">=3.0.2"
black = ">=22.6.0"
pre-commit = "^2.20.0"
pytest = ">=5.4.2"
pyfakefs = ">=4.0.2"
[build-system]
requires = ["poetry>=0.12"]

View file

@ -1,6 +1,6 @@
[tox]
isolated_build = true
envlist = py39
envlist = py310
[testenv]
whitelist_externals = poetry