Skip to content

Instantly share code, notes, and snippets.

View lenoxys's full-sized avatar
🐢
I may be slow to respond.

lenoxys

🐢
I may be slow to respond.
View GitHub Profile
@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():