Skip to content

Instantly share code, notes, and snippets.

View treyka's full-sized avatar

Trey Darley treyka

View GitHub Profile
@treyka
treyka / ntpspoof.py
Created February 10, 2025 17:37 — forked from Dbof/ntpspoof.py
NTP spoofer to change the date of any victim to the year 2035
import os
import sys
import time
from subprocess import Popen, DEVNULL
import datetime
from scapy.all import IP, UDP, NTP
from netfilterqueue import NetfilterQueue
def get_switch_ip():
{
"type": "cybox-container",
"spec_version": "3.0",
"objects": {
"0": {
"type": "email-message-object",
"header": {
"received_lines": [
"from mail.wayneindustries.com ([1.2.3.4])
by smtp.gmail.com with ESMTPSA id q23sm23309939wme.17.2016.07.19.07.20.32
@treyka
treyka / correcthorsebatterystaple.sh
Created November 2, 2012 08:45
quick shell hack for generating xkcd-style passwords
#!/bin/bash
# quick shell hack for generating xkcd-style passwords
wordcount=$1
MIN_WORD_LENGTH=4
MAX_WORD_LENGTH=7
LANGUAGE='en'