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
| # Install Homebrew. | |
| ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
| # Update Homebrew's formulae. | |
| brew update | |
| # Install GIT using homebrew | |
| brew install git | |
| # Install bash |
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
| host mwatts.it | head -1 | awk '{print $4}' |
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
| grep --color -R "search term" /target/dir/ |
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
| ssh username@hostname "tail -f /var/www/fbi.gov/logs/classifiedAccess.log" | tee /loacl/storage/path |
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
| openssl s_client -connect mwatts.it:443 -prexit |
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
| ########################### | |
| ##### Generating Keys ##### | |
| ########################### | |
| ## Generate a key. Follow the options and your good to go. Just make sure your on your Jack Jones! | |
| gpg --gen-key | |
| ############################### | |
| ##### Importing your keys ##### | |
| ############################### |
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
| apt-get install python-software-properties | |
| add-apt-repository ppa:webupd8team/sublime-text-2 | |
| apt-get update | |
| apt-get install sublime-text-dev |
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 https://mwatts.it/articles/stallingUnix.txt for description | |
| mkdir reverberate && cd reverberate | |
| source /home/mwatts/resonate | |
| % source resonate |
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
| #! /usr/bin/env python | |
| # Set log level to benefit from Scapy warnings | |
| import logging | |
| logging.getLogger("scapy").setLevel(1) | |
| from scapy.all import * | |
| if __name__ == "__main__": | |
| hosts = raw_input('Hostnames you would like to traceroute sepearated by a comma: ') |
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
| #!/usr/bin/env python | |
| """ | |
| Retrieves Geographic Information (Location) of a specified IP Address | |
| """ | |
| import urllib | |
| ipAddress = '50.57.97.17' | |
| response = urllib.urlopen('http://www.geoplugin.net/json.gp?ip={0}' .format(ipAddress)).read() |