From 3dc002188eaeb9ecdbb36d48337b1d72328e3a67 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Tue, 21 Jan 2025 20:47:01 +0400 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=9A=20Update=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 ++++++++++++++++------- config.json | 17 +++++++++++++---- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fc15357..3480efe 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,22 @@ You can find an example config structure in the [config.json](https://github.com "method": "GET", "url": "https://example.com", "no_proxy_check": false, - "timeout": 2000, - "dodos": 10, - "requests": 1000, - "params": {}, - "headers": {}, - "cookies": {}, - "body": [], + "timeout": 10000, + "dodos": 1, + "requests": 1, + "params": { + "param-key1": ["param-value1", "param-value2", "param-value3"], + "param-key2": ["param-value1", "param-value2", "param-value3"] + }, + "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": [ { "url": "http://example.com:8080", diff --git a/config.json b/config.json index 7e18d93..b94018a 100644 --- a/config.json +++ b/config.json @@ -5,10 +5,19 @@ "timeout": 10000, "dodos": 1, "requests": 1, - "params": {}, - "headers": {}, - "cookies": {}, - "body": [], + "params": { + "param-key1": ["param-value1", "param-value2", "param-value3"], + "param-key2": ["param-value1", "param-value2", "param-value3"] + }, + "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": [ { "url": "http://example.com:8080", From 015cb1505318ed394fd8facc4e0113a1c831af1d Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Tue, 21 Jan 2025 20:50:10 +0400 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9A=20Update=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 3480efe..5e6a24d 100644 --- a/README.md +++ b/README.md @@ -63,18 +63,23 @@ You can find an example config structure in the [config.json](https://github.com "dodos": 1, "requests": 1, "params": { + // Random param value will be selected from the param-key1 and param-key2 list for each request "param-key1": ["param-value1", "param-value2", "param-value3"], "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": [ { "url": "http://example.com:8080", From ba79304b04fdb8e2dd5224d9bb766c9036542b95 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Tue, 21 Jan 2025 20:52:25 +0400 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9A=20Update=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e6a24d..5d31bf7 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ docker run --rm -i aykhans/dodo -u https://example.com -m GET -d 10 -r 1000 -t 2 ### 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: -```json +```jsonc { "method": "GET", "url": "https://example.com",