Skip to content

Instantly share code, notes, and snippets.

View ndrewh's full-sized avatar
💭
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Andrew Haberlandt ndrewh

💭
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
View GitHub Profile
@frankli0324
frankli0324 / CTFd_util.py
Last active January 11, 2021 05:51
simple utility for testing a CTFd instance
import requests
import re
import logging
import time
class CTFd_Client:
nonce_re = re.compile(r'\'?csrf(Nonce|_nonce)\'? ?[:=] "(.*)"')
_header = {
'Accept-Language': 'en-US,en;q=0.5',