From 7d8941fca0f39d64e85b189819fa796295a9bb14 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Wed, 1 Nov 2023 17:51:32 +0800 Subject: [PATCH] fix: update flag --- crypto/hard_pow/crack.py | 2 +- crypto/hard_pow/crackdockerfile | 9 +++++++++ crypto/hard_pow/dockerfile | 9 +++++++++ crypto/hard_pow/requirements.txt | 2 ++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 crypto/hard_pow/crackdockerfile create mode 100644 crypto/hard_pow/dockerfile create mode 100644 crypto/hard_pow/requirements.txt 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