Skip to content

Instantly share code, notes, and snippets.

View mokytis's full-sized avatar

Luke mokytis

View GitHub Profile
@mokytis
mokytis / traceroute_answermachine.py
Last active December 25, 2021 18:44
Respond to IPv6 Traceroute UDP Probes
#!/usr/bin/env python
from scapy.all import *
import os
import ipaddress
from dataclasses import dataclass
@dataclass
class Host:
@mokytis
mokytis / get_hosts.py
Last active June 22, 2021 21:47
scapy get hosts
#!/usr/bin/env python
import logging
import scapy.all as scapy
def get_dns_query(dns_query):
return dns_query.qname.decode()

Keybase proof

I hereby claim:

  • I am mokytis on github.
  • I am lukespademan (https://keybase.io/lukespademan) on keybase.
  • I have a public key ASCBEIRCaZGg5roNNYrLE1UH5QOlnF9JGSd0rVwX-eLd6go

To claim this, I am signing this object:

@mokytis
mokytis / gpgcc.md
Last active June 2, 2018 08:47
A GPG cheatsheet

GPG cheatsheet

Command What it Does
gpg --full-generate-key generates a new key pair
gpg --list-keys --fingerprint gets info on all keys on the keyring
gpg --list-secret-keys --fingerprint gets info on all your keys on the keyring
gpg --send-keys <your-key-id> sends/syncs your public key with the keyserver
gpg --fingerprint <your-key-id> >> your_key.txt saves your key info to a file
gpg --recv-keys adds other peoples keys to the keyring
@mokytis
mokytis / mbdongle.py
Created April 16, 2018 17:06
an easy way to commuicate with a microbit in python over serial
from microbitdonlge import Dongle
mb = Dongle(debug=True)
while True:
print(mb.recv())