Skip to content

Instantly share code, notes, and snippets.

View GZTimeWalker's full-sized avatar
🧨
Working...

GZTime GZTimeWalker

🧨
Working...
  • Sun Yat-Sen University
  • ERROR: Permission denied.
View GitHub Profile
import qrcode
from qrcode.util import *
def hack_put(self, num, length):
if num == 0:
num = 233 # make a fake length
for i in range(length):
self.put_bit(((num >> (length - i - 1)) & 1) == 1)
qrcode.util.BitBuffer.put = hack_put
@Konano
Konano / alert.py
Created September 19, 2022 16:08
Websocket-based notificatons push service for GZCTF platform to Discord.
import time
import _thread as thread
from websocket import WebSocketApp
import websocket
import requests
import json
from log import logger
GAME_ID = 1