Skip to content

Instantly share code, notes, and snippets.

View avkosme's full-sized avatar
👨‍💻
in k8s clouds

Andrei Kostiuchenko avkosme

👨‍💻
in k8s clouds
View GitHub Profile
@avkosme
avkosme / guid_reaper.py
Created July 9, 2024 11:39 — forked from DanaEpp/guid_reaper.py
Tool to dump v1 GUIDs and generate a wordlist of GUIDs for use in bruteforce attacks against APIs with predictable GUIDs
#!/bin/env python3
import argparse
import datetime
import re
import sys
import uuid
###############################################################################
# Based off of Daniel Thatcher's guid tool
@avkosme
avkosme / gist:ef033a7ba701d7ed07b4cb127689f91c
Created June 14, 2024 07:17
Rename files/dirs (replace brak space at _)
for f in *\ *; do mv "$f" "${f// /_}"; done
@avkosme
avkosme / gist:be7ebbaf11c5a80fc4c8b8fdca2e6675
Created December 4, 2023 06:40
Curl show total time http
curl -o /dev/null -s -w 'Total: %{time_total}s\n' https://example.com/
SELECT
table_name,
column_name,
data_type
FROM
information_schema.columns
WHERE
table_name = '<table name>';
openssl rsa -in privkey.pem -out privkey.key
export GOOS=linux
export GOARCH=arm64
go build -o bin/main cmd/main.go
go tool dist list
go tool dist list | grep linux
tcpdump port 3001 -v -nn
kill -9 $(ps aux | grep 'fast' | awk '{print $2}')
SELECT * FROM pg_stat_activity;
@avkosme
avkosme / search_count
Last active January 30, 2023 18:16
Search files, count
# Recursive search
find . -type f -name '*.log' -printf x | wc -c
# Non-recursive search
find . -maxdepth 1 -type f -name '*.log' -printf x | wc -c
# Delete by .ext
find /path/ -maxdepth 3 -type f -name "*.xlsx" -delete