Skip to content

Instantly share code, notes, and snippets.

View strebitz's full-sized avatar

Sebastian Trebitz strebitz

View GitHub Profile
@strebitz
strebitz / remote-wireshark.sh
Last active October 2, 2018 14:38
Read PCAP from remote machines into local Wireshark via SSH
#!/bin/bash
function wshark() {
PCAP_FILTER="not port 22"
TCPDUMP="tcpdump -U -s0 -w -"
unset SSH_HOST
OPTIND=1
while getopts ":f:h:s" opt
@strebitz
strebitz / aws-sts-functions.sh
Last active February 9, 2021 15:05
Obtain AWS STS session-tokens with BASH for multiple awscli profiles or an IAM role ARN
#!/bin/bash
# Add these functions to your bash_profile or bash_rc
# Dependencies:
# - awscli - AWS command line client
# - jq - Command-line JSON processor
function cfn-validate-template() {
for template in $@
do

Keybase proof

I hereby claim:

  • I am strebitz on github.
  • I am strebitz (https://keybase.io/strebitz) on keybase.
  • I have a public key whose fingerprint is BAA0 642A BC7F 136D D825 6714 205F CD47 6F9E 6A41

To claim this, I am signing this object: