Skip to content

Instantly share code, notes, and snippets.

View sdoro's full-sized avatar

Sandro Doro sdoro

View GitHub Profile
@aarroyoc
aarroyoc / patata.sh
Created August 28, 2014 11:43
Screenshoot ALL the things
#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
@sdoro
sdoro / .bashrc
Created December 1, 2012 22:54
Change CTRL-S to forward-search-history in bash (instead of stop process)
stty -ixon
@sdoro
sdoro / gist:4145673
Created November 25, 2012 22:25
Enable git autocompletion in Debian 6
# Install bash_completion!
apt-get install bash-completion
# git package already contains '/etc/bash_completion.d/git' file
@sdoro
sdoro / gist:4065235
Created November 13, 2012 11:05
Install puppet from 'Puppet Labs' repository (debian squeeze)
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
@sdoro
sdoro / gist:4054136
Created November 11, 2012 08:13
Reset user name "postgres" password
sudo su - postgres
psql
ALTER USER postgres with password 'new-password';
\q
@jonatasnona
jonatasnona / key-fingerprint
Created March 7, 2012 18:45 — forked from yosemitebandit/key-fingerprint
SSH: print ssh public key's fingerprint
$ 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)
@xee5ch
xee5ch / Dump All DNS
Created March 13, 2011 15:53
Get all the DNS info for a domain with dig.
dig +nocmd domain.tld any +multiline +noall +answer