Skip to content

Instantly share code, notes, and snippets.

@radiantly
radiantly / noMangleGoogle.user.js
Last active September 12, 2024 14:38
Prevent Google from mangling links on the search results when clicking or copying on Firefox
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==
@williamcroberts
williamcroberts / mssim_command.sh
Created January 20, 2021 21:22
Send Control Commands to TPM Simulator
mssim_command() {
local raw="no"
local port="2322"
local ip="127.0.0.1"
while getopts "a:p:rh" opt; do
case ${opt} in
h)
echo "Send a command to the simulator"

Recon and Attack Vectors from My Logs

This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.

There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.

$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
@stedolan
stedolan / corebench.c
Created October 2, 2011 23:39
Inter-core communication latencies
#define _GNU_SOURCE
#include <pthread.h>
#include <sys/types.h>
#include <stdio.h>
#include <sched.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
struct {