Skip to content

Instantly share code, notes, and snippets.

Avatar

cetaSYN cetaSYN

View GitHub Profile
@cetaSYN
cetaSYN / dev_one.c
Created Aug 21, 2022
Kernel module character device driver that always returns full bit-level 1s (0xFF...)
View dev_one.c
#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");
@cetaSYN
cetaSYN / pthread_netscan.c
Created Aug 21, 2022
Simple Multi-threaded Port Scanner
View pthread_netscan.c
#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
@cetaSYN
cetaSYN / linux_smime.md
Last active Feb 25, 2022
OWA S/MIME Decryption with Linux & Firefox
View linux_smime.md

OWA S/MIME Decryption with Ubuntu & Firefox

NOTE: This is still being refined.
I'm not sure if I had any pre-existing packages that were necessary or if all of the ones I list are necessary.
If you have any feedback, please let me know.
Thank you!

Prerequisites

Distro Packages

@cetaSYN
cetaSYN / README.md
Created Dec 12, 2020
Solve for 5CTF Disorderly2
View README.md
@cetaSYN
cetaSYN / README.md
Last active Dec 12, 2020
Solve for 5CTF Disorderly2
View README.md
@cetaSYN
cetaSYN / install-docker.sh
Last active Aug 24, 2020
Install Docker on Parrot 4.10
View install-docker.sh
#!/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
@cetaSYN
cetaSYN / forbes_title_gen.js
Last active Jun 26, 2020
Script to generate titles for Forbes articles
View forbes_title_gen.js
Array.prototype.randChoice = function() {
return this[~~(Math.random() * this.length)];
}
const sel_opts = [
["Google", ["Chrome", "Android"]],
["Microsoft", ["Edge", "Windows"]],
["Apple", ["iPhone"]],
["Facebook", ["Facebook", "Instagram"]]
];
@cetaSYN
cetaSYN / find_ctftime_profile.py
Created May 11, 2020
Finds uids for usernames on CTFtime
View find_ctftime_profile.py
#!/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
@cetaSYN
cetaSYN / wacomconf.py
Created May 2, 2020
Configure a Wacom tablet for use with a single screen and Touch disabled
View wacomconf.py
#!/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",
@cetaSYN
cetaSYN / allcast_cli.py
Created Dec 2, 2019
Casts a YouTube video to multiple Google Cast devices within a multicast domain.
View allcast_cli.py
#!/usr/bin/env python3
####################################################################################
# allcast_cli.py #
# Casts a specified YouTube video to Google Cast devices within a subdomain. [CLI] #
####################################################################################
from zeroconf import ServiceBrowser, Zeroconf
from time import sleep
from argparse import ArgumentParser