---
# System prepended metadata

title: Defcamp

---

# Defcamp

Credz:
- https://dctf.def.camp/dashboard
- lu.k.philippe@gmail.com / `pouetpouetdefcamp`



## Movie Night

magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a&tr=https://xer.forgotten-legends.org/foo

`206.81.24.129 - - [07/Sep/2019:13:36:44 +0200] "GET /foo?numwant=50&uploaded=0&downloaded=0&left=&event=started&compact=1&info_hash=%C1%2F%E1%C0k%BA%25J%9D%C9%F5%19%B35%AA%7C%13g%A8%8D&peer_id=-WW0007-532m2lGK%2FNoV&port=37779 HTTP/1.1" 404 136 "-" "WebTorrent/0.107.6 (https://webtorrent.io)"`

#kirikoucrou sur le même que Hexpresso (irc.xolus.net ?)

```
CREATE TABLE torrents (
	hash   BLOB(20)  CHECK ( LENGTH(hash) = 20 ),
	client BLOB(20)  CHECK ( LENGTH(hash) = 20 ),
	ip     TEXT,
	port   TINYINT   CHECK ( port BETWEEN 0 AND 65535),
	seen   TIMESTAMP DEFAULT CURRENT_TIMESTAMP,

	PRIMARY KEY (hash, client),
	UNIQUE      (hash, client)
) WITHOUT ROWID;
```

BEP052: BitTorrent protocol v2
http://bittorrent.org/beps/bep_0052.html

```
> 2019/09/08 01:34:59.880483  length=68 from=0 to=67
 13 42 69 74 54 6f 72 72 65 6e 74 20 70 72 6f 74 6f 63 6f 6c 00 00 00 00 00 10 00 01 36 e0 95 83 e3 aa 25 4d d4 e8 7f 82 e3 37 7a 90 97 19 62 ed 2d 57 57 30 30 30 37 2d 48 71 48 76 6b 62 32 54 4a 31 55 76                                                                                                                 
< 2019/09/08 01:35:00.148363  length=68 from=0 to=67
 13 42 69 74 54 6f 72 72 65 6e 74 20 70 72 6f 74 6f 63 6f 6c 00 00 00 00 00 10 00 05 36 e0 95 83 e3 aa 25 4d d4 e8 7f 82 e3 37 7a 90 97 19 62 ed 2d 54 52 32 39 34 30 2d 65 71 33 31 77 76 79 70 39 70 69 79                                                                                                                 
> 2019/09/08 01:35:00.181395  length=5 from=68 to=72
 00 00 00 25 14
> 2019/09/08 01:35:00.212766  length=36 from=73 to=108
 00 64 31 3a 6d 64 31 31 3a 75 74 5f 6d 65 74 61 64 61 74 61 69 31 65 36 3a 75 74 5f 70 65 78 69 32 65 65 65
< 2019/09/08 01:35:00.652140  length=177 from=68 to=244
 00 00 00 7d 14 00 64 31 3a 65 69 31 65 31 3a 6d 64 31 31 3a 75 74 5f 6d 65 74 61 64 61 74 61 69 33 65 36 3a 75 74 5f 70 65 78 69 31 65 65 31 33 3a 6d 65 74 61 64 61 74 61 5f 73 69 7a 65 69 31 32 35 65 31 3a 70 69 35 31 34 31 33 65 34 3a 72 65 71 71 69 35 31 32 65 31 31 3a 75 70 6c 6f 61 64 5f 6f 6e 6c 79 69 31 65 31 3a 76 31 37 3a 54 72 61 6e 73 6d 69 73 73 69 6f 6e 20 32 2e 39 34 65 00 00 00 02 05 80 00 00 00 03 09 c8 d5 00 00 00 1f 14 02 64 35 3a 61 64 64 65 64 36 3a 7f 00 00 01 c6 02 37 3a 61 64 64 65 64 2e 66 31 3a 00 65                                                                                                        
> 2019/09/08 01:35:00.685839  length=5 from=109 to=113
 00 00 00 1b 14
> 2019/09/08 01:35:00.717344  length=26 from=114 to=139
 03 64 38 3a 6d 73 67 5f 74 79 70 65 69 30 65 35 3a 70 69 65 63 65 69 30 65 65
< 2019/09/08 01:35:03.168431  length=174 from=245 to=418
 00 00 00 aa 14 01 64 38 3a 6d 73 67 5f 74 79 70 65 69 31 65 35 3a 70 69 65 63 65 69 30 65 31 30 3a 74 6f 74 61 6c 5f 73 69 7a 65 69 31 32 35 65 65 64 36 3a 6c 65 6e 67 74 68 69 37 65 34 3a 6e 61 6d 65 33 38 3a 74 65 73 74 5f 7b 7b 36 2a 37 7d 7d 5f 7b 36 2a 37 7d 5f 24 7b 36 2a 37 7d 5f 24 7b 7b 36 2a 37 7d 7d 2e 74 78 74 31 32 3a 70 69 65 63 65 20 6c 65 6e 67 74 68 69 33 32 37 36 38 65 36 3a 70 69 65 63 65 73 32 30 3a 22 03 34 45 c5 a2 fb 05 66 15 0d b6 25 41 05 24 02 db b1 db 37 3a 70 72 69 76 61 74 65 69 30 65 65                                                                                                                 
> 2019/09/08 01:35:03.203503  length=5 from=140 to=144
 00 00 00 02 05
> 2019/09/08 01:35:03.204414  length=8 from=145 to=152
 00 00 00 00 03 09 85 42
```

`test_{{6*7}}_{6*7}_${6*7}_${{6*7}}.txt` a pas fait sauté d'injection