Webhook Debugger
Install
curl https://gitlab.com/linalinn/webhook-debugger/raw/master/WebhookDebugger.py -o webhookdebugger.py
Usage
Exsample 1
$ ./WebhookDebugger.py$curl localhost:8080/ -d "some=data"
Exsample Output of WebhookDebugger.py and curl
WebhookDebugger.py:
Started http server 0.0.0.0:8811
SSL disabled
91.14.105.14 - - [09/Oct/2018 14:00:17] "POST / HTTP/1.1" 200 -
[POST]:
/
[HEADERS]:
Host: upload-filter.net:8811
User-Agent: curl/7.60.0
Accept: */*
Content-Length: 9
Content-Type: application/x-www-form-urlencoded
[BODY]:
b'some=data'
[Client IP]:
127.0.0.1
curl:
[POST]:
/
[HEADERS]:
Host: upload-filter.net:8811
User-Agent: curl/7.60.0
Accept: */*
Content-Length: 9
Content-Type: application/x-www-form-urlencoded
[BODY]:
b'some=data'
[Client IP]:
XXX.XXX.XXX.XXX
Exsample 2 with SSl and diffrent response, diffrent Content-Type and diffrent Port
$ ./WebhookDebugger.py -p 8811 -r '{"msg":"JSON says HI"}' -c "application/json" --ssl-cert path/fullchain.pem --ssl-key path/privekey.pem$curl exsample.com:8811/ -d "SSL=true"
Exsample Output of WebhookDebugger.py and curl
WebhookDebugger.py:
Started http server 0.0.0.0:8811
SSL enabled
91.14.105.14 - - [09/Oct/2018 14:22:28] "POST / HTTP/1.1" 200 -
[POST]:
/
[HEADERS]:
Host: exsample.com:8811
User-Agent: curl/7.60.0
Accept: */*
Content-Length: 8
Content-Type: application/x-www-form-urlencoded
[BODY]:
b'SSL=true'
[Client IP]:
XXX.XXX.XXX.XXX
curl:
{"msg":"JSON says HI"}
Forward Option
$ ./WebhookDebugger.py -p 8811 -c "application/json" forward --url exsample.com --port 443 --use-ssl
Release files for webhook-debugger 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| webhook-debugger-0.0.3.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| webhook_debugger-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / webhook-debugger-0.0.3.tar.gz
| Download URL | webhook-debugger-0.0.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8550e0e4309b884faed2fb604affe90a4dab7327fd4ddf35a2a5cba28c918dce
|
|
BLAKE2b-256 checksum How to use checksums |
2196382ca8dc9b5cd145913bf501634e3b39540710f453cd8feaf9cdfb261c05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0rc1
|
Release files / webhook_debugger-0.0.3-py3-none-any.whl
| Download URL | webhook_debugger-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1b298aeb28a3f269a3904544fb9b8424549bdd1f51f91a848841ac68234dd25
|
|
BLAKE2b-256 checksum How to use checksums |
433acefe43f94143f5485d12aaf9a1332a6cb6ea39f206d45637d693f13250fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0rc1
|