Heartbeat can be placed in request body again.

This commit is contained in:
Jakob Friedl
2025-11-18 09:43:56 +01:00
parent 3b5b570e24
commit 72bc732c89
5 changed files with 22 additions and 28 deletions

View File

@@ -25,8 +25,8 @@ endpoints = [
]
# Defines where the heartbeat is placed within the HTTP GET request
# Allows for data transformation using encoding (base64, hex, ...), appending and prepending of strings
# Metadata can be stored in a Header (e.g. JWT Token, Session Cookie), URI parameter, appended to the URI or request body
# Allows for optional data transformation using encoding (base64, hex, ...), appending and prepending of strings
# Metadata can be stored in a Header (e.g. JWT Token, Session Cookie), URI parameter or request body
# Encoding is only applied to the payload and not the prepended or appended strings
[http-get.agent.heartbeat]
placement = { type = "header", name = "Authorization" }
@@ -36,13 +36,17 @@ suffix = ".######################################-####"
# Example: PHP session cookie
# placement = { type = "header", name = "Cookie" }
# encoding = { type = "base64", url-safe = true }
# prefix = "PHPSESSID="
# suffix = ", path=/"
# encoding = { type = "base64", url-safe = true }
# Other examples
# Example: Hex string in GET parameter
# placement = { type = "query", name = "id" }
# placement = { type = "uri" }
# encoding = { type = "hex" }
# Example: Raw data in GET request body
# placement = { type = "body" }
# encoding = { type = "none" }
# Defines arbitrary URI parameters that are added to the request
[http-get.agent.parameters]
@@ -103,7 +107,7 @@ Host = [
"google.com",
"127.0.0.1"
]
Content-Type = "application/octet-stream"
Content-Type = "text/plain"
Connection = "Keep-Alive"
Cache-Control = "no-cache"
@@ -113,7 +117,7 @@ lang = [
"en-US",
"de-AT"
]
page = "1$"
page = "1$" # The $ character is replaced with a random number
# Defines how the POST requests made by the agents look like
# For modules that involve large file transfers, it is not recommended to place the task output in a header or query parameter, as this will exceed the header size
@@ -121,8 +125,8 @@ page = "1$"
[http-post.agent.output]
placement = { type = "body" }
encoding = { type = "hex" }
# prefix = ""
# suffix = ""
# prefix = "<START>"
# suffix = "<END>"
# Defines arbitrary response headers added by the server
[http-post.server.headers]
@@ -130,4 +134,4 @@ Server = "nginx"
# Defines data that is returned in the body of the server's response
[http-post.server.output]
body = ""
body = "Ok"