Created
November 23, 2023 02:00
-
-
Save D3vl0per/72a6b1521ad1ce3e4e3b10c325f8381a to your computer and use it in GitHub Desktop.
BunkerNet API | Registration and blocklist dump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REGISTRATION=$( | |
curl --location 'https://api.bunkerweb.io/register' \ | |
--header 'User-Agent: BunkerWeb/1.5.3' \ | |
--header 'Content-Type: application/json' \ | |
--data '{ | |
"integration": "docker", | |
"version": "1.5.3" | |
}') | |
echo $REGISTRATION | |
ID=$(echo $REGISTRATION | jq .data) | |
echo $ID | tee bunkerweb_token | |
curl --location --request GET 'https://api.bunkerweb.io/db' \ | |
--header 'User-Agent: BunkerWeb/1.5.3' \ | |
--header 'Content-Type: application/json' \ | |
--data '{ | |
"integration": "docker", | |
"version": "1.5.3", | |
"id": "'${ID}'" | |
}' -o bunkernet.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment