nmap subdomínios
Para buscar subdomínios de um host:
nmap –script dns-brute -v -sn www.xxx.com.br
Para buscar subdomínios de um host:
nmap –script dns-brute -v -sn www.xxx.com.br
phoronix-test-suite
Copiando o layout do disco /dev/sda para o disco /dev/sdb
sfdisk -d /dev/sda | sfdisk /dev/sdb
No auth.log recebe a seguinte mensagem:
Received disconnect from x.x.x.x: 11:
Editar /etc/ssh/sshd_config
Troque:
Subsystem sftp /usr/lib/openssh/sftp-server
Por:
Subsystem sftp internal-sftp
depois:
# service ssh restart
<VirtualHost *:80> ServerName servidor.dominio.com.br ServerAlias servidor.dominio.net ServerAdmin servidor@servidor.dominio.com.br # configurando header IP RewriteEngine on RewriteCond %{REMOTE_ADDR} ^(.*) RewriteRule ^.* - [env=MY_REMOTE_ADDR:%1] RequestHeader set X-Kinghost-Ip "%{MY_REMOTE_ADDR}e" # configurando proxy reverso ProxyPreserveHost On ProxyPass / http://10.99.99.100:80/ ProxyPassReverse / http://10.99.99.100:80/ # libera utilização de proxy <Proxy *> Order deny,allow allow from all </Proxy> </VirtualHost>
tcpdump -i $eth0 -n dst host $ipdestino -s 0 -c 1000 -w capture.cap
tcpick -C -yP -r capture.cap
# ast – conformismo
# obedecer uma instrução
http://pt.wikipedia.org/wiki/Experi%C3%AAncia_de_Milgram
# marshmelow
line telnet
exec-timeout 3600
exit
# ./MegaCli -CfgLdAdd -r0 '[32:0]' -a0
Adapter 0: Configure Adapter Failed
FW error description:
The current operation is not allowed because the controller has data in cache for offline or missing virtual drives.
Exit Code: 0x54
# ./MegaCli -GetPreservedCacheList -a0
Adapter #0
Virtual Drive(Target ID 01): Missing.
Exit Code: 0x00
# coloca o mesmo L+ID que o vd acima
# MegaCli -DiscardPreservedCache -L1 -a0
Adapter #0
Virtual Drive(Target ID 01): Preserved Cache Data Cleared.
Exit Code: 0x00
DNS XSS =)
http://who.is/dns/jamiehankins.co.uk
# host -t txt jamiehankins.co.uk
jamiehankins.co.uk descriptive text " script src='//peniscorp.com/topkek.js'>"
jamiehankins.co.uk descriptive text " iframe width='420' height='315' src='//www.youtube.com/embed/dQw4w9WgXcQ?autoplay=0' frameborder='0' allowfullscreen /iframe "
./iozone -R -r 4 -s 60m -l 1 -u 50 -i 0 -i 1 -i 8 -+p 60 -+m nodelist -b excel_noflush.wks -C -O
zgrep arquivo-log “size=” | cut -d, -f2 | awk -F ‘=’ ‘{n+=$2} END {print n}’
[sourcecode language=”php”]
[/sourcecode]
bloqueioInternet () {
echo "- bloqueio INTERNACIONAL para $1"
/sbin/iptables -I FORWARD -d $1 -j DROP
/sbin/iptables -I FORWARD -s 177.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 186.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 187.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 189.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 200.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 201.0.0.0/8 -d $1 -j ACCEPT
}
Group by
=) com aspira e caramujo