pra não esquecer…

outubro 8th, 2015

nmap subdomínios

Posted by Felipe Olivaes in Hack

Para buscar subdomínios de um host:
nmap –script dns-brute -v -sn www.xxx.com.br

outubro 8th, 2015

ferramenta de benchmark linux

Posted by Felipe Olivaes in Linux

phoronix-test-suite

setembro 12th, 2015

cópia layout partições linux

Posted by Felipe Olivaes in Linux

Copiando o layout do disco /dev/sda para o disco /dev/sdb
sfdisk -d /dev/sda | sfdisk /dev/sdb

julho 13th, 2015

erro ao logar no sftp ubuntu

Posted by Felipe Olivaes in Linux

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

maio 13th, 2015

configurando proxy reverso apache – passando header

Posted by Felipe Olivaes in Apache

<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>

abril 13th, 2015

Visualizando pacotes de rede windows

Posted by Felipe Olivaes in xalassa

tcpdump -i $eth0 -n dst host $ipdestino -s 0 -c 1000 -w capture.cap
tcpick -C -yP -r capture.cap

abril 7th, 2015

estudos científicos de influência

Posted by Felipe Olivaes in xalassa

# ast – conformismo

# obedecer uma instrução
http://pt.wikipedia.org/wiki/Experi%C3%AAncia_de_Milgram

# marshmelow

abril 1st, 2015

switch dell expires

Posted by Felipe Olivaes in Hardware

line telnet
exec-timeout 3600
exit

fevereiro 19th, 2015

MegaCli – erro data in cache for offline or missing virtual drives.

Posted by Felipe Olivaes in Hardware

# ./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

setembro 18th, 2014

dns xss

Posted by Felipe Olivaes in xalassa

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 "
setembro 17th, 2014

iozone -> excel

Posted by Felipe Olivaes in xalassa

./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

setembro 17th, 2014

somando resultados com cat/grep – shell

Posted by Felipe Olivaes in Linux

zgrep arquivo-log “size=” | cut -d, -f2 | awk -F ‘=’ ‘{n+=$2} END {print n}’

agosto 28th, 2014

normalizando caracteres de acentuação e-mail

Posted by Felipe Olivaes in PHP

[sourcecode language=”php”]

[/sourcecode]

agosto 7th, 2014

bloqueio internacional

Posted by Felipe Olivaes in Hack, Linux


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
}

agosto 6th, 2014

group by x distinct

Posted by Felipe Olivaes in MySQL

Group by

=) com aspira e caramujo

« Página anteriorPróxima página »


nuvem de tags:

24 horas acentuação Apache bash benchmark bios boot celular centos charset comando console Download esxi Firebird firefox http importação intel ipod kinghost legenda Linux lost mod_deflate msn mssql MySQL owner Padel PHP placa mãe portabilidade Postgre SQL recovery root password rewrite shell sinuca sql server svn temporada completa veronica mars vmware Windows ícones