Skip to content

Commit 9e786cc

Browse files
committed
Add Passgen task
1 parent af0f0e3 commit 9e786cc

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed

Passgen/create/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM ubuntu:14.04
2+
MAINTAINER tonyo
3+
4+
RUN apt-get update && apt-get install -y wget curl
5+

Passgen/create/README.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
0. Start Docker in TCP mode
2+
3+
$ sudo docker -d -H tcp://localhost:1234
4+
5+
1. Build the Docker image
6+
7+
$ sudo docker -H tcp://localhost:1234 build -t passgen-ubuntu .
8+
9+
2. Start a container
10+
11+
# sudo docker -H tcp://localhost:1234 run -it passgen-ubuntu
12+
13+
3. Run commands from gen.sh
14+

Passgen/create/gen.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
BOOT_PART=$(curl https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css | sha256sum)
3+
4+
DIGEST=$(echo $PS1 $BOOT_PART | sha256sum | cut -b 1-12)
5+
6+
echo $DIGEST | perl -nE 'chomp; say "STCTF#$_#"' > password.txt
7+

Passgen/solution/solution.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Открываем дамп, видим много однотипных пакетов, у большинства меняется только поле данных (обычно -- один символ). Еще видим слово Docker -- ой, не спроста.
2+
3+
Щелкаем на пакет, выбираем Follow TCP stream. Видим сесиию общения докер-клиента и докер-сервера. Остается повторить те же действия, которые выполнилясь в командной строке: или на своем компьютере, или поднять докер-контейнер.
4+
5+
Answer: STCTF#4285c6bbc998#

Passgen/summary.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
answer_regex: STCTF#4285c6bbc998#
3+
author: tonyo
4+
category: forensics
5+
description: |
6+
А как вы генерируете <a href="https://www.dropbox.com/s/k0e44vgwe8lnbpz/capture.pcap?dl=0">пароли</a>?
7+
name: Passgen
8+
price: 200

0 commit comments

Comments
 (0)