This file contains 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
#This script makes an screenshoot of all X11 ports open | |
# http://www.securitybydefault.com/2014/08/screenshot-all-things-un-paseo-por-x11.html | |
# Run it on Debian/Ubuntu, please, as root | |
apt-get install git nmap build-essentials | |
git clone https://github.com/robertdavidgraham/masscan masscan | |
cd masscan | |
make | |
cd bin | |
mkdir -p images | |
./masscan -p6000 -oG 6000.grep 0.0.0.0/0 --excludefile ../data/exclude.conf -v |
This file contains 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
stty -ixon |
This file contains 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 bash_completion! | |
apt-get install bash-completion | |
# git package already contains '/etc/bash_completion.d/git' file |
This file contains 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
wget http://apt.puppetlabs.com/puppetlabs-release-squeeze.deb | |
dpkg -i puppetlabs-release-squeeze.deb | |
apt-get update | |
apt-get -t puppetlabs-release install puppet puppetmaster |
This file contains 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
sudo su - postgres | |
psql | |
ALTER USER postgres with password 'new-password'; | |
\q |
This file contains 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-keygen -l -f id_rsa.pub | |
2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99 id_rsa.pub (RSA) |
This file contains 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
dig +nocmd domain.tld any +multiline +noall +answer |