Files
attack-defense-platform/utils/bashrc
T
2025-10-10 22:18:06 +07:00

2 lines
207 B
Bash

source /root/.preexec.sh
preexec() { curl -s -X POST -H 'Content-Type: application/json' -d "{\"log\": \"[$(date +'%Y-%m-%d %H:%M:%S')][$(hostname)] $1\"}" http://host.docker.internal/history > /dev/null; }