This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You will need root access for this commands | |
# These things shown here are not correct according to some RFCs (e.g. IPv6 NAT), but I will do them anyway, because I can not guarantee, that my pi will get a whole /64 subnet as it should from the upstream router | |
# I assume, that you did not change anything in iptables. If you did, you should be able to set the settings correctly for IPv6 on your own. | |
# USE CAUTION: I DID NOT SECURE ANYTHING IN THIS SETUP! I AM NOT RESPONSIBLE FOR ANY DAMAGES CREATED BY THIS SCRIPT! USE IT AT YOUR OWN RISK! I USED A SECOND SCRIPT FOR SECURING THE PI, WHICH IS NOT PROVIDED HERE! | |
# I will use fc72:4444:26dd:98c9::1 as address for the pi | |
# use your own settings: | |
export IPV6_SUBNET="fc72:4444:26dd:98c9::" | |
export IPV6_SIZE="/64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import re | |
import socket | |
import time | |
from enum import Enum, auto | |
from os import system | |
PORT = 8899 | |
HOST = "" | |
BUFFER_SIZE = 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import re | |
import socket | |
import time | |
from enum import Enum, auto | |
from os import system | |
PORT = 8899 | |
HOST = "" | |
BUFFER_SIZE = 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from zlib import decompress | |
from base45 import b45decode | |
from cbor2 import loads | |
from prettytable import PrettyTable | |
data = loads(loads(decompress(b45decode(input("QR String eingeben: ").removeprefix("HC1:")))).value[2]) | |
body = data[-260][1] |