Skip to content

Instantly share code, notes, and snippets.

@D3vl0per
Created November 23, 2023 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save D3vl0per/72a6b1521ad1ce3e4e3b10c325f8381a to your computer and use it in GitHub Desktop.
Save D3vl0per/72a6b1521ad1ce3e4e3b10c325f8381a to your computer and use it in GitHub Desktop.
BunkerNet API | Registration and blocklist dump
#!/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