Compare commits

..

1 commit

Author SHA1 Message Date
Chirstophe Mehay
49a3e8ce95 Update tor version to 0.4.6.10 2022-03-26 13:50:47 +01:00
10 changed files with 729 additions and 727 deletions

View file

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

View file

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

View file

@ -53,8 +53,3 @@ run-vanguards: build
run-vanguards-network: build run-vanguards-network: build
docker-compose -f docker-compose.vanguards-network.yml up --force-recreate 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,13 +4,6 @@
## Changelog ## 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 * 23 dec 2021
* Update `onions` tool to v0.7.0: * Update `onions` tool to v0.7.0:
* Drop support of onion v2 adresses as tor network does not accept them anymore * Drop support of onion v2 adresses as tor network does not accept them anymore

View file

@ -1 +1 @@
0.4.7.12 0.4.6.10

View file

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

View file

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

1393
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

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

View file

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