Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chalの実行権限を付与しない? #1

Closed
schecthellraiser606 opened this issue Mar 2, 2025 · 2 comments · Fixed by #2
Closed

chalの実行権限を付与しない? #1

schecthellraiser606 opened this issue Mar 2, 2025 · 2 comments · Fixed by #2
Assignees

Comments

@schecthellraiser606
Copy link

@k1rnt
xorpwnxorのchalを実行するDockerfileについて
chmod +x chalをして実行権限を付けないとおそらく機能しない。
なので以下のように追加してみては。

FROM ubuntu:24.04

RUN apt-get update && \
    apt-get install -y socat && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /opt/challenge

COPY chal .
RUN chmod +x chal 

EXPOSE 4000

CMD ["socat", "TCP-LISTEN:4000,reuseaddr,fork", "EXEC:./chal"]
@k1rnt
Copy link
Collaborator

k1rnt commented Mar 2, 2025

圧倒的感謝

@k1rnt k1rnt self-assigned this Mar 2, 2025
@k1rnt k1rnt closed this as completed in #2 Mar 2, 2025
@k1rnt k1rnt closed this as completed in 39f5525 Mar 2, 2025
@k1rnt
Copy link
Collaborator

k1rnt commented Mar 2, 2025

@schecthellraiser606 done

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 a pull request may close this issue.

2 participants