Skip to content

Commit

Permalink
docs: update docs..........
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Apr 9, 2024
1 parent 7c16246 commit 07a3293
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
30 changes: 12 additions & 18 deletions docs/resources/challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,39 @@ This provider builds a cleaner API on top of CTFd's one to improve its adoption

```terraform
resource "ctfd_challenge" "http" {
name = "HTTP Authentication"
category = "network"
description = <<-EOT
Oh no ! I did not see my connection was no encrypted !
I hope no one spied me...
Authors:
- NicolasFgrx
EOT
name = "My Challenge"
category = "misc"
description = "..."
value = 500
initial = 500
decay = 17
decay = 100
minimum = 50
state = "visible"
function = "logarithmic"
flags = [{
content = "24HIUT{Http_1s_n0t_s3cuR3}"
content = "CTF{some_flag}"
}]
topics = [
"Network"
"Misc"
]
tags = [
"network",
"http"
"misc",
"basic"
]
hints = [{
content = "HTTP exchanges are not ciphered."
content = "Some super-helpful hint"
cost = 50
}, {
content = "Content is POSTed in HTTP :)"
content = "Even more helpful hint !"
cost = 50
}]
files = [{
name = "capture.pcapng"
contentb64 = filebase64("${path.module}/capture.pcapng")
name = "image.png"
contentb64 = filebase64(".../image.png")
}]
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ CTFd defines a User as someone who will either play or administrate the Capture

```terraform
resource "ctfd_user" "ctfer" {
username = "CTFer"
name = "CTFer"
email = "[email protected]"
password = "password"
# Define as an administration account
# Make the user administrator of the CTFd instance
type = "admin"
verified = true
hidden = true
Expand Down

0 comments on commit 07a3293

Please sign in to comment.