You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement configuration of routes that the honeypot can fake several manufacturers to simulate a vulnerable environment.
The routing has three parts: The route itself, it's headers and requests fields (POST, GET etc.), possibly returned variables (like session tokens) and actions. Actions define what the route should to.
The actions are predefined Python based methods which can be enhanced. If the honeypot maintainer needs more complex actions, it can be accomplished.
Variables
$session a simulated session token e. g. returned by an authorization route, created by the authorize Action. Will be valid until a route calls the deauthorize action.
$hostname the configured hostname
$serialnumber a fake serial number
You can also use variables from the honeypot configuration file. E. g. you configured MY_VARIABLE, you can use that value by prefixing it wiith a "$": $MY_VARIABLE.
Actions
Actions are predefined operations a route should do.
authorize: Tries to login a user with the given credentials (will be searched in POST or GET or also out of an Authorization-Header). Will set '$session' to a new token
deauthorize: Revokes a token. The token will be searched in any text containing header field, so it can be used from POST or GET or also out of an Authorization-Header.
tokencheck: Tries to find an token in POST, GET or in a header field. If nothing was found, the route causes an 403 Forbidden response
catchfile: Will store any file uploaded in HTTP file-Fields
servefile: Will use a given file as response source. It will take the arguments file. If the file is application/json, text/plain or text/xml, the variables can be used. You can also use the property mime to control the mimetype-header.
log: Causes an log entry for the request data. The log will be choosed from the honeypot's main settings (e. g. into JSON)
camera returns an image as a response. Which image you want to use can be mappend in the config. Attention This will overwrite settings of response. If you name the folder like the route name, you can control which image will be served.
Action arguments
If an action needs one or more arguments, the route object itself will be extended by an sub object named by the action name. That means, you can use only one element of an action type per route.
Responses
The response field will only be used if the actions were successfully. If not, one or more actions may cause an 403 forbidden, for example.
Implement configuration of routes that the honeypot can fake several manufacturers to simulate a vulnerable environment.
The routing has three parts: The route itself, it's headers and requests fields (
POST
,GET
etc.), possibly returned variables (like session tokens) and actions. Actions define what the route should to.The actions are predefined Python based methods which can be enhanced. If the honeypot maintainer needs more complex actions, it can be accomplished.
Variables
$session
a simulated session token e. g. returned by an authorization route, created by theauthorize
Action. Will be valid until a route calls thedeauthorize
action.$hostname
the configured hostname$serialnumber
a fake serial numberYou can also use variables from the honeypot configuration file. E. g. you configured
MY_VARIABLE
, you can use that value by prefixing it wiith a "$":$MY_VARIABLE
.Actions
Actions are predefined operations a route should do.
authorize
: Tries to login a user with the given credentials (will be searched inPOST
orGET
or also out of anAuthorization
-Header). Will set '$session' to a new tokendeauthorize
: Revokes a token. The token will be searched in any text containing header field, so it can be used fromPOST
orGET
or also out of anAuthorization
-Header.tokencheck
: Tries to find an token inPOST
,GET
or in a header field. If nothing was found, the route causes an403 Forbidden
responsecatchfile
: Will store any file uploaded in HTTPfile
-Fieldsservefile
: Will use a given file as response source. It will take the argumentsfile
. If the file isapplication/json
,text/plain
ortext/xml
, the variables can be used. You can also use the propertymime
to control the mimetype-header.log
: Causes an log entry for the request data. The log will be choosed from the honeypot's main settings (e. g. into JSON)camera
returns an image as a response. Which image you want to use can be mappend in the config. Attention This will overwrite settings ofresponse
. If you name the folder like the route name, you can control which image will be served.Action arguments
If an action needs one or more arguments, the route object itself will be extended by an sub object named by the action name. That means, you can use only one element of an action type per route.
Responses
The
response
field will only be used if the actions were successfully. If not, one or more actions may cause an403 forbidden
, for example.Example
The text was updated successfully, but these errors were encountered: