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
| # 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: |
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
| 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 |
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
| 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 " |
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 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' |
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
| 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 | |
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
| 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 |
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
| $ 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. |
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
| 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 |
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
| create d1 database, bind it to worker | |
| make a log table, add fields you need. |
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
| 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. |
NewerOlder