This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"bufio" | |
"os" | |
"time" | |
"fmt" | |
"math/rand" | |
"context" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# vnclogger.py - VNC Keylogger | |
# Jon Oberheide <[email protected]> | |
# http://jon.oberheide.org | |
import sys, time, signal, getopt, socket | |
import dpkt | |
import pcap | |
import pyevent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
NewerOlder