๐Ÿ›ฐ๏ธ Sovereign Mirror

Manual Sync: 2024-04-06 | Admin Access: Anonymous
System Overview

๐Ÿ”‘ Access & Identity

Managing keys and shortcuts. cat ~/.ssh/id_rsa.pub cat ~/.ssh/authorized_keys ssh -i [PATH/TO/KEY] [USER]@[IP] nano ~/.ssh/config source ~/.bashrc

๐ŸŒ Networking & Troubleshooting

Finding yourself and checking 'doors'. ip addr | grep inet ss -tulpn nginx -t curl -I [URL]

๐Ÿ›ก๏ธ The Gatekeepers

Rules for UFW, Firewalld, and NFTables. ufw allow from [IP] to any port [PORT] firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="[IP]" port port="[PORT]" protocol="tcp" accept' nano /etc/nftables.conf && nft -f /etc/nftables.conf Show Status: [See Hover for commands]

๐Ÿ”Œ Hardware & Power

Physical device monitoring. lsusb upsc eaton@localhost nvidia-smi top

๐Ÿ“ฆ Package Managers & Search

OSInstallSearch for Name
Alma/Fedoradnf install [pkg]dnf search [word]
Ubuntu/Mintapt install [pkg]apt search [word]
OpenWRTopkg install [pkg]opkg find [word]
Termuxpkg install [pkg]pkg search [word]
Maintainpkg update && pkg upgrade (Refresh all)

๐Ÿ“Š Data & Log Lab

Analyzing files and background tasks. sqlite3 [DB].db ".tables" sqlite3 [DB].db ".schema" grep -i "[KEYWORD]" [FILE] journalctl -u [SERVICE] -f python3 -m json.tool [FILE].json nohup python3 [SCRIPT].py & Advanced SQL and Grep filters. grep -C 5 "error" [file] grep "failed" /var/log/*.log grep -oE "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" [file] | sort | uniq -c SELECT a.name, b.value FROM [T1] a JOIN [T2] b ON a.id = b.id; SELECT * FROM [Table] WHERE [Column] LIKE '%shadow%'; SELECT DISTINCT [Column] FROM [Table]; nohup python3 [script].py > out.log 2>&1 & upsc eaton@localhost

๐Ÿงช Deep Work & Data

Python, JSON, and SQL Queries. SELECT * FROM [T1] JOIN [T2] ON [T1].id = [T2].id; SELECT * FROM [Table] WHERE [Column] LIKE '%keyword%'; SELECT [Column], COUNT(*) FROM [Table] GROUP BY [Column]; SELECT * FROM [Table] WHERE [Status]='active' ORDER BY id DESC LIMIT 10; source [folder]/bin/activate nohup python3 [script].py & python3 -m json.tool [file.json] curl -X POST "[IP]/message?token=[TOKEN]" -F "title=Sovereign" -F "message=System Alert"

๐Ÿ“‚ OS Paths & Hunting

Where things live on different systems. /etc/nginx/sites-available/default /etc/nginx/nginx.conf /etc/config/ /etc/shadowsocks-libev/config.json find / -name "[filename]" find / -type f -size +100M grep -rnw "/etc/nginx/" -e "[word]" ip addr | grep "inet " | grep -v "127.0.0.1"

๐Ÿ› ๏ธ Mirror Maintenance

1. cd /var/www/html | 2. sudo nano index.html | 3. sudo systemctl reload nginx

Gotify Alert: curl -X POST "[IP]/message?token=[TOKEN]" -F "title=Alert" -F "message=Update Success"