File tree Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Original file line number Diff line number Diff line change @@ -17,45 +17,39 @@ This provider builds a cleaner API on top of CTFd's one to improve its adoption
17
17
18
18
``` terraform
19
19
resource "ctfd_challenge" "http" {
20
- name = "HTTP Authentication"
21
- category = "network"
22
- description = <<-EOT
23
- Oh no ! I did not see my connection was no encrypted !
24
- I hope no one spied me...
25
-
26
- Authors:
27
- - NicolasFgrx
28
- EOT
20
+ name = "My Challenge"
21
+ category = "misc"
22
+ description = "..."
29
23
value = 500
30
24
initial = 500
31
- decay = 17
25
+ decay = 100
32
26
minimum = 50
33
27
state = "visible"
34
28
function = "logarithmic"
35
29
36
30
flags = [{
37
- content = "24HIUT{Http_1s_n0t_s3cuR3 }"
31
+ content = "CTF{some_flag }"
38
32
}]
39
33
40
34
topics = [
41
- "Network "
35
+ "Misc "
42
36
]
43
37
tags = [
44
- "network ",
45
- "http "
38
+ "misc ",
39
+ "basic "
46
40
]
47
41
48
42
hints = [{
49
- content = "HTTP exchanges are not ciphered. "
43
+ content = "Some super-helpful hint "
50
44
cost = 50
51
45
}, {
52
- content = "Content is POSTed in HTTP :) "
46
+ content = "Even more helpful hint ! "
53
47
cost = 50
54
48
}]
55
49
56
50
files = [{
57
- name = "capture.pcapng "
58
- contentb64 = filebase64("${path.module}/capture.pcapng ")
51
+ name = "image.png "
52
+ contentb64 = filebase64(".../image.png ")
59
53
}]
60
54
}
61
55
```
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ CTFd defines a User as someone who will either play or administrate the Capture
14
14
15
15
``` terraform
16
16
resource "ctfd_user" "ctfer" {
17
- username = "CTFer"
17
+ name = "CTFer"
18
18
email = "ctfer-io@protonmail.com"
19
19
password = "password"
20
20
21
- # Define as an administration account
21
+ # Make the user administrator of the CTFd instance
22
22
type = "admin"
23
23
verified = true
24
24
hidden = true
You can’t perform that action at this time.
0 commit comments