diff --git a/crypto/hard_pow/crack.py b/crypto/hard_pow/crack.py index cce2289..4be1283 100644 --- a/crypto/hard_pow/crack.py +++ b/crypto/hard_pow/crack.py @@ -7,7 +7,7 @@ import re context.log_level = 'debug' -conn = remote("localhost",10001) +conn = remote("172.20.14.117",9512) strings = conn.recvline().decode('utf-8') alpha_bet = string.ascii_lowercase + string.digits strlist = itertools.permutations(alpha_bet, 5) diff --git a/crypto/hard_pow/crackdockerfile b/crypto/hard_pow/crackdockerfile new file mode 100644 index 0000000..634b098 --- /dev/null +++ b/crypto/hard_pow/crackdockerfile @@ -0,0 +1,9 @@ +FROM python:3.9 + +COPY requirements.txt /app/ + +WORKDIR /app + +RUN pip install -r requirements.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple + +EXPOSE 10001 diff --git a/crypto/hard_pow/dockerfile b/crypto/hard_pow/dockerfile new file mode 100644 index 0000000..978c0a5 --- /dev/null +++ b/crypto/hard_pow/dockerfile @@ -0,0 +1,9 @@ +FROM python:3.11 + +COPY hard_pow.py /app/ + +WORKDIR /app + +EXPOSE 10001 + +CMD [ "python", "hard_pow.py" ] \ No newline at end of file diff --git a/crypto/hard_pow/requirements.txt b/crypto/hard_pow/requirements.txt new file mode 100644 index 0000000..090ed89 --- /dev/null +++ b/crypto/hard_pow/requirements.txt @@ -0,0 +1,2 @@ +hashpumpy +pwntools