Skip to content

Instantly share code, notes, and snippets.

@marduc812
marduc812 / every_status_code.py
Last active December 9, 2020 16:38
Snippet for sending every status code needed using Python'
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)
#!/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