Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
import argparse
import requests
# CVE-2022-37434
# zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field.
# NOTE: only applications that call inflateGetHeader are affected.
# Some common applications bundle the affected zlib source code but may be unable to call inflateGetHeader (e.g., see the nodejs/node reference).
b = b""
@absane
absane / DDOS.go
Last active February 9, 2023 07:39
package main
import (
"net/http"
"bufio"
"os"
"time"
"fmt"
"math/rand"
"context"
@absane
absane / randUsernameDiceware.js
Created September 2, 2022 16:52
Generate a random username using EFF's large diceware wordlist
return function() {
// wordList=$(curl -s "https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt" | awk '{print $2}' | sed 's/./\u&/')
// jq -ncR '[inputs]' <<< "$wordList"
var length = 2;
var wordList = ["Abacus","Abdomen","Abdominal","Abide","Abiding","Ability","Ablaze","Able","Abnormal","Abrasion","Abrasive","Abreast","Abridge","Abroad","Abruptly","Absence","Absentee","Absently","Absinthe","Absolute","Absolve","Abstain","Abstract","Absurd","Accent","Acclaim","Acclimate","Accompany","Account","Accuracy","Accurate","Accustom","Acetone","Achiness","Aching","Acid","Acorn","Acquaint","Acquire","Acre","Acrobat","Acronym","Acting","Action","Activate","Activator","Active","Activism","Activist","Activity","Actress","Acts","Acutely","Acuteness","Aeration","Aerobics","Aerosol","Aerospace","Afar","Affair","Affected","Affecting","Affection","Affidavit","Affiliate","Affirm","Affix","Afflicted","Affluent","Afford","Affront","Aflame","Afloat","Aflutter","Afoot","Afraid","Afterglow","Afterlife","Afte
#!/bin/bash
# Source: /usr/share/ubios-udapi-server/ips/bin/getsig.sh
#
# These are the URLs where the source data is pulled from.
# https://assets.unifi-ai.com/idsips/5.0.5/rules.tar.gz
# https://assets.unifi-ai.com/reputation/alien.list.gz
# https://assets.unifi-ai.com/reputation/tor.list.gz
UPDATEURL="https://assets.unifi-ai.com"
@echo off
REM https://www.telerik.com/products/decompiler.aspx
set targetDir="C:\inetpub\SolarWinds - Copy\bin"
set outDir="c:\SWDecompiled"
For /R %targetDir% %%G IN (*.dll) do (
justdecompile /target:"%%G" /out:"%outDir%\%%~nxG"
)
#!/usr/bin/env python
# vnclogger.py - VNC Keylogger
# Jon Oberheide <jon@oberheide.org>
# http://jon.oberheide.org
import sys, time, signal, getopt, socket
import dpkt
import pcap
import pyevent
#!/bin/bash
function sortpercent {
cat | sort | uniq -c | sort -rn | awk '{s+=$1;lines=lines"\n"$0} END {printf "%d Total",s;print lines}' | awk '!max{max=$1}{s=$1/max*100;c=$1;$1="";printf "%30s %10d %7.2f%%\n",$0,c,s;}'
}
tempDatesFile=$(mktemp)
while read -r item; do
curl -s -X $'GET' \
-H $'Host: www.ui.com' -H $'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0' -H $'Accept: application/json, text/javascript, */*; q=0.01' -H $'Accept-Language: en-US,en;q=0.7,ko-KR;q=0.3' -H $'X-Requested-With: XMLHttpRequest' -H $'Referer: https://www.ui.com/download/unifi/unifi-ap' -H $'Sec-Fetch-Dest: empty' -H $'Sec-Fetch-Mode: cors' -H $'Sec-Fetch-Site: same-origin' -H $'Te: trailers' \
#!/bin/sh -e
if [ $# != 3 ]
then
echo "usage: $0 <src-port> <dst-host> <dst-port>"
exit 0
fi
TMP=`mktemp -d`
BACK=$TMP/pipe.back
#!/usr/bin/env python3
##########
# A simple tool to extract particular cookies from firefox's cookies.sqlite
# file and dump them to a legacy Netscape cookies.txt file.
##########
# ver YYYY-MM-DD comment
# 0.9 2018-04-15 public release
#
##########
import sqlite3 as sql
sudo docker network create -d macvlan \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
-o parent=ovs_eth3 net_gateway
sudo docker run -d \
--name=unifi-controller \
-e PUID=1000 \
-e PGID=1000 \
-p 3478:3478/udp \