This file contains hidden or 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
from http.server import HTTPServer, BaseHTTPRequestHandler | |
ADDRESS = "" | |
PORT = 8000 | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
# Select the HTTP Response needed, currently it's 204 | |
self.send_response(204) |
This file contains hidden or 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 | |
# Path for the Forward DNS records zip | |
source="/root/Downloads/2019-01-25-1548374703-fdns_any.json.gz" | |
# Input with dot in front | |
in=.$1 | |
#Check if JQ is installed | |
if hash jq 2>/dev/null; then |