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
| #------------------------------------------------------------------------------# | |
| # 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 |
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
| 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 |
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
| 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 |
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
| 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> |
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
| 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 |
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
| # Caminho backup final | |
| /opt/zimbra/backup/mailbox/final-30-03-2017-to-06-04-2017 | |
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
| # 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) |
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
| 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 |
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
| tail -f /opt/zimbra/log/*.log |grep --color -iE 'token' |
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
| 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: |