Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
Doing the needful

Gus Luxton webvictim

👾
Doing the needful
View GitHub Profile
View gist:9339114
### Keybase proof
I hereby claim:
* I am webvictim on github.
* I am webvictim (https://keybase.io/webvictim) on keybase.
* I have a public key whose fingerprint is 9467 2CA2 B24E BA0C 0A52 4C5E B5F1 EC10 F403 4D1A
To claim this, I am signing this object:
@webvictim
webvictim / update-nodename-from-tag.sh
Last active Mar 10, 2022
Script to update Teleport nodename from an AWS EC2 tag
View update-nodename-from-tag.sh
#!/bin/bash
set -eo pipefail
# set config file path on command line
if [[ "$1" == "" ]] || [[ "$2" == "" ]]; then
echo "Usage: $(basename $0) <tag to use> <path to config file>"
exit 1
fi
# AWS tag to use for nodename
TAG_NAME="$1"
View gist:fb99aef1c77f0ae6d374ff56b87d47cc
Jun 19 23:54:12 zeus.webvictim.net teleport[136648]: 2022-06-19T23:54:12-03:00 DEBU [NODE:PROX] Ping -> 1.2.3.4:3024. leaseID:1 target:teleport.example.com:3024 reversetunnel/agent.go:497
Jun 19 23:54:42 zeus.webvictim.net teleport[136648]: 2022-06-19T23:54:42-03:00 DEBU [NODE:PROX] Ping -> 1.2.3.4:3024. leaseID:1 target:teleport.example.com:3024 reversetunnel/agent.go:497
Jun 19 23:55:12 zeus.webvictim.net teleport[136648]: 2022-06-19T23:55:12-03:00 DEBU [NODE:PROX] Ping -> 1.2.3.4:3024. leaseID:1 target:teleport.example.com:3024 reversetunnel/agent.go:497
Jun 19 23:55:42 zeus.webvictim.net teleport[136648]: 2022-06-19T23:55:42-03:00 DEBU [NODE:PROX] Ping -> 1.2.3.4:3024. leaseID:1 target:teleport.example.com:3024 reversetunnel/agent.go:497
Jun 19 23:56:12 zeus.webvictim.net teleport[136648]: 2022-06-19T23:56:12-03:00 DEBU [NODE:PROX] Ping -> 1.2.3.4:3024. leaseID:1 target:teleport.example.com:3024 reversetunnel/agent.go:497
Jun 19 23:56:42 zeus.webvictim.net teleport[136648]: 2022-06-19T23:56:42-03:00 DEBU
@webvictim
webvictim / trusted-cluster.sh
Last active Jun 27, 2022
Script for automatically discovering Teleport trusted cluster web/tunnel addresses
View trusted-cluster.sh
#!/bin/bash
if [[ "$1" == "" ]]; then
echo "Usage: $(basename $0) <proxy hostname>"
exit 1
fi
PROXY=$1
if ! type curl >/dev/null 2>&1; then
echo "curl must be installed"
exit 2
fi