Skip to content

Instantly share code, notes, and snippets.

@umutbasal
umutbasal / wgcf_discord.sh
Last active April 12, 2025 10:57
Discord Wg CF script to create warp wireguard config with discord ips to split traffic
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/,$//') && \
#!/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
@umutbasal
umutbasal / ports.sh
Last active January 30, 2025 16:21
Get top n TCP/UDP ports
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
@umutbasal
umutbasal / securityfocus.com.worker.js
Created February 26, 2025 01:39
securityfocus.com.worker.js
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;