https://www.nom.fish/write-up/5charlie-ctf-disorderly2/
Brute force + hand-solve for 5CTF's Discorderly2 challenge. It's not pretty but it does the job.
python3 brute_solve.py
#!/usr/bin/env python3 | |
from pwn import * | |
from pwnlib.util.packing import p64 | |
context.log_level = logging.DEBUG | |
target = remote('mc.ax', 31568) | |
# target = process("./ret2the-unknown") |
#include <linux/cdev.h> | |
#include <linux/device.h> | |
#include <linux/fs.h> | |
#include <linux/kernel.h> | |
#include <linux/module.h> | |
#define DEVICE_NAME "one" | |
MODULE_LICENSE("GPL"); | |
MODULE_AUTHOR("cetaSYN"); |
#include <arpa/inet.h> | |
#include <pthread.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
#define DEBUG 0 |
https://www.nom.fish/write-up/5charlie-ctf-disorderly2/
Brute force + hand-solve for 5CTF's Discorderly2 challenge. It's not pretty but it does the job.
python3 brute_solve.py
https://www.nom.fish/write-up/5charlie-ctf-disorderly2/
My "nicer" solve for 5CTF's Discorderly2 challenge. Mostly just a quick fun refresher on C and applying a different technique.
$ gcc -Wall -pedantic -o setsolve setsolve.c
$ python3 c_solve.py jmrxy
#!/bin/bash | |
# Install Docker on Parrot 4.10 | |
set -o errexit | |
set -o nounset | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common |
Array.prototype.randChoice = function() { | |
return this[~~(Math.random() * this.length)]; | |
} | |
const sel_opts = [ | |
["Google", ["Chrome", "Android"]], | |
["Microsoft", ["Edge", "Windows"]], | |
["Apple", ["iPhone"]], | |
["Facebook", ["Facebook", "Instagram"]] | |
]; |
#!/usr/bin/env python3 | |
"""Finds uids for usernames on CTFtime""" | |
# Seriously why is this not easier to do? | |
import argparse | |
import logging | |
import math | |
import re | |
import time |
#!/usr/bin/env python3 | |
"""Configure a Wacom tablet for use with a single screen and Touch disabled""" | |
import subprocess | |
def main(): | |
screens = [s for s in get_selector_next( | |
subprocess.check_output(["xrandr"]).decode("UTF8"), | |
u"connected", |