Skip to content

Instantly share code, notes, and snippets.

View richardsonlima's full-sized avatar
:octocat:
Focusing

Richardson Lima richardsonlima

:octocat:
Focusing
View GitHub Profile
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
Linux, when adding a new disc
First find your host bus number
grep mpt /sys/class/scsi_host/host?/proc_name
Which should return a line like
/sys/class/scsi_host/host0/proc_name:mptspi
@richardsonlima
richardsonlima / xpoweredScanner.sh
Created April 23, 2017 13:47 — forked from misterch0c/xpoweredScanner.sh
x-powered random check
while true; do
ip=$(zmap --verbosity 0 -p 80 -N 1 -q -o -)
version=$(curl -I -s -m 4 $ip | grep -i 'X-Powered-By' | awk -F ":" '{print $2}')
if [ "$version" != "" ];then
echo "$ip:$version" >> log.txt
fi
done
download: http://www.zabbix.com/downloads/3.0.4/zabbix_agents_3.0.4.linux2_6.amd64.tar.gz
##############################
# cat > /etc/vmware/firewall/zabbix.xml
<!-- Firewall configuration information for Zabbix Monitoring system -->
<ConfigRoot>
<service>
<id>zabbixMonitoring</id>
Step 1 : Generate SSH Private/Public Keys:
We will first create a public and private key files for user ubuntu.
su ubuntu
cd ~/.ssh
sudo ssh-keygen -b 2048 -f identity -t rsa
# Caminho backup final
/opt/zimbra/backup/mailbox/final-30-03-2017-to-06-04-2017
# Distributions: RHEL_6+7 CentOS_6+7
##########################################################################
# Standard rsync command
##########################################################################
- Useful when live cloning servers.
rsync -avX --one-file-system --hard-links --numeric-ids -e 'ssh -c arcfour' /source dest:/nation
(remember to run --delete for the last sync)
curl ifconfig.co
http -b ifconfig.co # install --> https://httpie.org/
wget -qO- ifconfig.co
fetch -qo- https://ifconfig.co
http ifconfig.co/json # install --> https://httpie.org/
##### HTTPIE Install ######
# MacOSX
tail -f /opt/zimbra/log/*.log |grep --color -iE 'token'
1 - Install Home Brew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2 - Install aircrack-ng:
brew install aircrack-ng
3 - Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport//Figure out which channel you need to sniff: