Skip to content

Instantly share code, notes, and snippets.

@jkeuper
jkeuper / udp_packet.py
Created February 12, 2019 21:13
Hack the compound
#!/usr/bin/python
"""
Create UDP packet containing RESET.
"""
from scapy.all import *
from binascii import hexlify
packet = IP(src='192.168.0.5', dst='192.168.0.11')/UDP(dport=17861, sport=17861)/Raw('RESET')
@jkeuper
jkeuper / compound_garage.py
Last active February 13, 2019 12:40
Hack the compound
#!/usr/bin/python
'''
https://www.tutorialspoint.com/execute_python_online.php
https://hpd.gasmi.net/
https://gist.github.com/olijf/
'''
@jkeuper
jkeuper / term2gif.sh
Last active March 3, 2024 02:39 — forked from tristanwietsma/term2gif.sh
Record terminal session to GIF
#!/bin/bash
MAX=200 # maximum wait between frames
DELAY=0.2 # speed things up a bit
TIMING=$1
SCRIPT=$2
W=$WINDOWID # Note: not alway present. Terminator not, xterm it is.