#!/usr/bin/env python3 from socket import * from subprocess import getoutput our_socket = socket(AF_INET, SOCK_STREAM) our_socket.connect(("isoptera.lcsc.edu", 5109)) current_key = getoutput("echo caterpiller" + getoutput("date +%d%h%m%Y") + " | sha256sum | sed 's/-//g'").strip() our_socket.send(current_key.encode("utf-8")) our_socket.close()