On an Attiny45 you can perhaps expect the following pinout which you can slowly remap back to the MM3 pinout diagrams. This is untested by me.
1 - N/A
2 - N/A
3 - GATE
4 - GND
5 - SQCK
6 - SUBQ
7 - DATA
while true; do printf 'HTTP/1.1 200 OK\nContent-Length: 7\nContent-Type: text/html; charset=UTF-8\nServer: netcat!\n\n\nhello\n' | nc -l 80; done |
"""Use it like this: main('192.168.1.0/24')""" | |
IPV4_MIN = 0 | |
IPV4_MAX = 0xFFFFFFFF | |
def not_network(ipv4_address, ipv4_netmask): | |
assert IPV4_MIN <= ipv4_address <= IPV4_MAX | |
assert IPV4_MIN <= ipv4_netmask <= IPV4_MAX | |
def hostmask_netmask(m): |
import re | |
import subprocess | |
import tempfile | |
import cmarkgfm | |
import mistune | |
from bs4 import BeautifulSoup | |
from sqlalchemy import create_engine | |
from sqlalchemy.ext.automap import automap_base | |
from sqlalchemy.orm import sessionmaker |
On an Attiny45 you can perhaps expect the following pinout which you can slowly remap back to the MM3 pinout diagrams. This is untested by me.
1 - N/A
2 - N/A
3 - GATE
4 - GND
5 - SQCK
6 - SUBQ
7 - DATA
from socket import inet_pton, inet_ntop, AF_INET, AF_INET6 | |
from struct import unpack, pack, error as struct_error | |
def ip2long(ip): | |
'''Converts a user's IP address into an integer/long''' | |
if '.' in ip: | |
# ipv4 | |
return unpack('!i', inet_pton(AF_INET, ip))[0] | |
else: |
import random | |
import hashlib | |
import threading | |
import subprocess | |
import SocketServer | |
import os | |
import signal | |
from subprocess import Popen, PIPE, STDOUT | |
import subprocess, shlex |
### Keybase proof | |
I hereby claim: | |
* I am ColdHeat on github. | |
* I am kchung (https://keybase.io/kchung) on keybase. | |
* I have a public key whose fingerprint is 2317 E0FF BFD0 ED07 26A6 D553 5931 7106 359B FFE8 | |
To claim this, I am signing this object: |