Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Amazon Dash Button launches Steve
# coding: utf-8
from scapy.all import *
from picraft import World, Vector, Block
world = World("MineCraftServer IP")
def arp_display(pkt):
if pkt[ARP].op == 1:
if pkt[ARP].hwsrc == 'Your AmazonDashButton's Mac Address':
world.player.pos = Vector(0, 300, 0)
print sniff(prn=arp_display, filter="arp", store=0, count=10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment