Skip to content

Instantly share code, notes, and snippets.

View L1nyz-tel's full-sized avatar
💭
🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵

L1nyz-tel

💭
🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵
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