Skip to content

Instantly share code, notes, and snippets.

@lenoxys
lenoxys / README.md
Last active June 9, 2023 04:42
Certbot hook for Cortex XSOAR + Cloudflare DNS + tutorial letsencrypt

Tested on ubuntu 22.04

1. Install certbot cloudflare related packages

sudo snap install --classic certbot
sudo snap set certbot trust-plugin-with-root=ok
sudo snap install certbot-dns-cloudflare
sudo snap connect certbot:plugin certbot-dns-cloudflare
@lenoxys
lenoxys / checkmk.py
Created August 3, 2022 12:49 — forked from rqu1/checkmk.py
check if a PAN firewall is using the default master key when globalprotect is enabled
from hashlib import md5, sha1
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
from base64 import b64encode, b64decode
import sys, time
import requests
DEFAULT_MASTERKEY=b'p1a2l3o4a5l6t7o8'
class PanCrypt():