This file contains hidden or 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
const TIME_TRAVEL_DATETIME = "20250101"; // Format: yyyyMMdd | |
const WAYBACK_URL = "https://web.archive.org/web/"; | |
const WAYBACK_URL_FORMAT = /https:\/\/web\.archive\.org\/web\/([0-9a-z_]+)\/(.*)/i; | |
const BASE_DOMAIN = "http://securityfocus.com"; | |
export default { | |
async fetch(request, env, ctx) { | |
const url = new URL(request.url); | |
const path = url.pathname; | |
const cache = caches.default; |
This file contains hidden or 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
ports(){ | |
protocol=${1:-tcp} | |
count=${2:-65535} | |
curl -s https://svn.nmap.org/nmap/nmap-services | awk '!/^#/ && NF >= 3 && /'$protocol'/ {split($2, p, "/"); print p[1], $3}' | sort -k2,2nr | awk '{print $1}' | head -n $count | tr '\n' ',' | sed 's/,$//' | |
} | |
# Usage | |
# ports tcp 10 > ports.txt && naabu -ports-file=ports.txt -host 127.0.0.1 |
This file contains hidden or 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 bash | |
# cdn_bypass.sh | |
# Usage: ./cdn_bypass.sh <domain> <match_string> | |
# Example: ./cdn_bypass.sh example.com "Example Domain" | |
DOMAIN="$1" | |
MATCHSTRING="$2" | |
# Show usage if arguments are missing |
This file contains hidden or 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
docker run --rm -it \ | |
-v ./output:/output \ | |
--entrypoint sh virb3/wgcf:latest -c " | |
apk add --no-cache curl && \ | |
./wgcf register --accept-tos && \ | |
./wgcf generate && \ | |
mv wgcf-profile.conf /output/wg0.conf && \ | |
curl https://raw.githubusercontent.com/GhostRooter0953/discord-voice-ips/refs/heads/master/main_domains/discord-main-ip-list -o discord-main-ips.txt && \ | |
curl https://raw.githubusercontent.com/GhostRooter0953/discord-voice-ips/refs/heads/master/voice_domains/discord-voice-ip-list -o discord-voice-ips.txt && \ | |
discord_ips=\$(cat discord-main-ips.txt | tr '\n' ',' | sed 's/,$//') && \ |
This file contains hidden or 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
list=$(ls out) | |
# #ffmpeg -i out/comp_GMT329_113NC_396B_1105_CHINA_v04_SDR_FINAL_20180706_F900F2700_SDR_2K_HEVC.mkv -c copy -f null - 2>&1 | grep time= | awk -F 'time=' '{print $2}' | awk '{print $1}' | awk '{split($1,a,":"); print a[3]}' | |
for file in $list; do | |
time=$(ffmpeg -i out/$file -c copy -f null - 2>&1 | grep time= | awk -F 'time=' '{print $2}' | awk '{print $1}' | awk '{split($1,a,":"); print a[3]}') | |
# parse float | |
time=$(echo $time | awk '{print int($1)}') | |
if [ $time -lt 20 ]; then | |
#rm out/$file |
This file contains hidden or 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 "fmt" | |
type AND map[bool]map[bool]bool | |
const ( | |
TRUE = true | |
FALSE = false | |
) |
This file contains hidden or 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
table_alphabet = "AZBYCVÇÜDUETFŞGSĞRHPIÖİOJNKML" | |
alphabet = "ABCÇDEFGĞHIİJKLMNOÖPRSŞTUÜVYZ" | |
def vinegere_table(alphabet): | |
table = [] | |
for i in range(len(alphabet)): | |
table.append(alphabet[-i:] + alphabet[:-i]) | |
return table | |
table = vinegere_table(table_alphabet) |
This file contains hidden or 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 | |
from bcc import BPF | |
from time import sleep | |
from bcc.syscall import syscall_name, syscalls | |
program = r""" | |
RAW_TRACEPOINT_PROBE(sys_enter) { | |
u64 uid; | |
u64 counter = 0; |
This file contains hidden or 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
# jqw data.json | |
jqw () | |
{ | |
echo '' | fzf --print-query --preview "cat $1 | jq {q}" | |
} | |
# fzi "cat a.json | jq {q}" | |
# fzi "cat a.json | awk {q}" | |
fzi () | |
{ | |
echo '' | fzf --print-query --preview $1 |
This file contains hidden or 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
# usage pods_on.sh <node1> <node2> <label1=value1> <label2=value2> <...> <kubectl_flags> | |
# example pods_on.sh node1 "ingress in (true)" -o wide | |
flags=(); nodes=(); k=true | |
for arg in "${@}"; do | |
if [[ $arg == "-"* ]]; then k=false; fi | |
$k && { [[ $arg == *"="* || $arg == *"("* ]] && nodes+=($(kubectl get nodes -l "$arg" -o jsonpath='{.items[*].metadata.name}')) || nodes+=($arg); } || flags+=($arg) | |
done | |
nodes=($(echo "${nodes[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' ')) |
NewerOlder