mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-20 19:13:06 +00:00
commit
b1612598c4
30
README.md
30
README.md
@ -54,18 +54,32 @@ docker run --rm -i aykhans/dodo -u https://example.com -m GET -d 10 -r 1000 -t 2
|
|||||||
|
|
||||||
### 2. JSON config file
|
### 2. JSON config file
|
||||||
You can find an example config structure in the [config.json](https://github.com/aykhans/dodo/blob/main/config.json) file:
|
You can find an example config structure in the [config.json](https://github.com/aykhans/dodo/blob/main/config.json) file:
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"url": "https://example.com",
|
"url": "https://example.com",
|
||||||
"no_proxy_check": false,
|
"no_proxy_check": false,
|
||||||
"timeout": 2000,
|
"timeout": 10000,
|
||||||
"dodos": 10,
|
"dodos": 1,
|
||||||
"requests": 1000,
|
"requests": 1,
|
||||||
"params": {},
|
"params": {
|
||||||
"headers": {},
|
// Random param value will be selected from the param-key1 and param-key2 list for each request
|
||||||
"cookies": {},
|
"param-key1": ["param-value1", "param-value2", "param-value3"],
|
||||||
"body": [],
|
"param-key2": ["param-value1", "param-value2", "param-value3"]
|
||||||
|
},
|
||||||
|
"headers": {
|
||||||
|
// Random header value will be selected from the header-key1 and header-key2 list for each request
|
||||||
|
"header-key1": ["header-value1", "header-value2", "header-value3"],
|
||||||
|
"header-key2": ["header-value2", "header-value2", "header-value3"]
|
||||||
|
},
|
||||||
|
"cookies": {
|
||||||
|
// Random cookie value will be selected from the cookie-key1 and cookie-key2 list for each request
|
||||||
|
"cookie-key1": ["cookie-value1", "cookie-value2", "cookie-value3"],
|
||||||
|
"cookie-key2": ["cookie-value2", "cookie-value2", "cookie-value3"]
|
||||||
|
},
|
||||||
|
// Random body value will be selected from the body list for each request
|
||||||
|
"body": ["body1", "body2", "body3"],
|
||||||
|
// Random proxy will be selected from the proxy list for each request
|
||||||
"proxies": [
|
"proxies": [
|
||||||
{
|
{
|
||||||
"url": "http://example.com:8080",
|
"url": "http://example.com:8080",
|
||||||
|
17
config.json
17
config.json
@ -5,10 +5,19 @@
|
|||||||
"timeout": 10000,
|
"timeout": 10000,
|
||||||
"dodos": 1,
|
"dodos": 1,
|
||||||
"requests": 1,
|
"requests": 1,
|
||||||
"params": {},
|
"params": {
|
||||||
"headers": {},
|
"param-key1": ["param-value1", "param-value2", "param-value3"],
|
||||||
"cookies": {},
|
"param-key2": ["param-value1", "param-value2", "param-value3"]
|
||||||
"body": [],
|
},
|
||||||
|
"headers": {
|
||||||
|
"header-key1": ["header-value1", "header-value2", "header-value3"],
|
||||||
|
"header-key2": ["header-value2", "header-value2", "header-value3"]
|
||||||
|
},
|
||||||
|
"cookies": {
|
||||||
|
"cookie-key1": ["cookie-value1", "cookie-value2", "cookie-value3"],
|
||||||
|
"cookie-key2": ["cookie-value2", "cookie-value2", "cookie-value3"]
|
||||||
|
},
|
||||||
|
"body": ["body1", "body2", "body3"],
|
||||||
"proxies": [
|
"proxies": [
|
||||||
{
|
{
|
||||||
"url": "http://example.com:8080",
|
"url": "http://example.com:8080",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user