Skip to content

Instantly share code, notes, and snippets.

View BoredHackerBlog's full-sized avatar

boredhackerblog BoredHackerBlog

View GitHub Profile
@BoredHackerBlog
BoredHackerBlog / gist:8837539f4bd904cecbde104dc5f100b1
Created October 11, 2026 00:44
semi-isolated container maybe? works on my pc
# run whatever service you want, grab the IP and forward traffic to it via socat or rinetd or rev proxy
# docker inspect server-1 |grep IPAddress
services:
server:
image: alpine
command: sleep 1000
ports:
- 8080:8080
networks:
move whoami to whoami.old: mv /usr/bin/whoami /usr/bin/whoami.old
add the following to /usr/bin/whoami:
/usr/bin/curl -s -H "Content-Type: application/json" -d '{"content": "whoami executed on proxmox"}' https://discord.com/api/webhooks/... &> /dev/null
/usr/bin/whoami.old "$@"
make whoami script executable: chmod +x /usr/bin/whoami
@BoredHackerBlog
BoredHackerBlog / docker-compose.yml
Last active August 23, 2026 18:36
simple scan notifier
services:
notifier:
image: alpine:3.14
#network_mode host will get remote IPs. ports config will be ignored by docker. if you comment out network_mode, port config will be used by docker and logs will show your own docker host ip.
network_mode: "host"
container_name: notifier
ports:
- 8000:8000
command: >
/bin/sh -c "
@BoredHackerBlog
BoredHackerBlog / main.py
Created July 17, 2026 15:38
some code for scheduling things to help me with some testing/research stuff
#!/usr/bin/env python3
# Notice: This is my first AI coded project.
# I did research, wrote original python code, and had AI rewrite it because I was tired and wanted to sleep.
# I'd never write code with error handling so you know I didn't write this.
# edit this...
SPLUNK_HOST = '10.0.0.72'
SPLUNK_PORT = '8000'
SPLUNK_USERNAME = 'admin'
SPLUNK_PASSWORD = 'freeneedsnopassword'
https://github.com/microsoft/SysmonForLinux
https://www.youtube.com/watch?v=yzpDlonyPGU
https://github.com/OpenSecureCo/Demos/blob/main/sysmonforlinux
parsing: https://github.com/vectordotdev/vrl/discussions/1287#discussioncomment-12379049
@BoredHackerBlog
BoredHackerBlog / notes.txt
Last active July 2, 2026 18:01
tcpdump, ufw, networking stuff
https://davecturner.github.io/2020/12/12/rolling-tcpdump.html
https://www.tcpdump.org/manpages/tcpdump.1.html
tcpdump -i eth0 -G 600 -w mycapture_%s.pcap -zgzip -Z root
allow ssh in but no traffic out or in besides that:
ufw enable
ufw default deny outgoing
@BoredHackerBlog
BoredHackerBlog / example_output.txt
Last active June 6, 2026 02:31
unifi os path traversal
$ python3 poc.py
{"code":1,"codeS":"SUCCESS","msg":"success","data":"identity is not enabled"}
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxZmVhNmIyZi04MmY4LTRmNTEtYjZhOC02MzA4ZmExYzAzMWEiLCJwYXNzd29yZFJldmlzaW9uIjoxNzgwNTk0MDA5LCJpc1JlbWVtYmVyZWQiOmZhbHNlLCJjc3JmVG9rZW4iOiJkb2VzbnRtYXR0ZXIiLCJpYXQiOjE3ODA3MTE3NTIsImV4cCI6MTg4MDcxODk1MiwianRpIjoiZG9lc250bWF0dGVyIn0.rmuYFpM1Uy8MzEt1ILPzBRQi4dbOG4StbSoYWdOmzsY
add this cookie into the browser with name TOKEN and visit the target unifi os site.
@BoredHackerBlog
BoredHackerBlog / free
Last active June 1, 2026 02:49
free mqtt brokers
broker.emqx.io
prod-blue.public-broker.com
broker-cn.emqx.io
mqtt.eclipseprojects.io
test.mosquitto.org
broker.hivemq.com
aceautomation.ddns.net
101b7a0.online-server.cloud
@BoredHackerBlog
BoredHackerBlog / database
Created July 16, 2025 14:31
cloudflare worker logging to d1
create d1 database, bind it to worker
make a log table, add fields you need.
@BoredHackerBlog
BoredHackerBlog / cloudflare tunnel setup with wildcard
Created January 5, 2025 19:18
cloudflare tunnel setup with wildcard
Login:
cloudflared tunnel login
Create tunnel:
cloudflared tunnel create infra
Create routing/dns record:
cloudflared tunnel route dns infra YOURDOMAIN.COM
On cloudflare website, in dns record, replace 'infra' with '*' and save.