Skip to content

Instantly share code, notes, and snippets.

@Elecon-rou
Elecon-rou / read.py
Created April 27, 2023 05:32
Decipher corrupted KDBX
#!/bin/env python3
# Evan Widloski - 2018-04-11
# keepass decrypt experimentation
import struct
import hashlib
database = ''
password = b''
# password = None
@Elecon-rou
Elecon-rou / serve.py
Created September 16, 2019 05:54
Python3 HTTPServer
#!/usr/bin/env python3
import os
from http.server import HTTPServer, BaseHTTPRequestHandler
class serve(BaseHTTPRequestHandler):
def do_GET(self):
root = './'
if self.path == '/':
@Elecon-rou
Elecon-rou / mkfile
Created January 26, 2017 22:35
Build test source files with mk ('mk source' for source.c)
cc = gcc
%: %.c
$cc -g $prereq -o $target.elf
clean:V:
rm -f *.elf
@Elecon-rou
Elecon-rou / if.c
Created January 26, 2017 22:32
List all network interfaces with netlink
#include <stdio.h>
#include <unistd.h>
#include <memory.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/types.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#define BUF_SIZE 8192