11
III Hack&Beers Detección del SO: > nmap -n -O 10.211.55.57 Factores que determinan la identificación del sistema remoto: Archivo PDF TTL:

III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

Embed Size (px)

Citation preview

Page 1: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

III Hack&Beers

Detección del SO:

> nmap -n -O 10.211.55.57

Factores que determinan la identificación del sistema remoto:

Archivo PDF

TTL:

Page 2: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

Kernel: sysctl -w net.ipv4.ip_default_ttl=64

> nmap -n -O 10.211.55.57

Page 3: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

Tamaño de ventana

sysctl -w net.ipv4.tcp_rmem="8192 87380 6291456"

Page 4: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

sysctl -w net.ipv4.tcp_wmem="8192 16384 4194304"

> nmap -n -O 10.211.55.57

Primer puerto:

Page 5: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

Servidor web:

nginx.conf

http {

Page 6: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_tokens off; # version number in error pages # server_name_in_redirect off; # if off, nginx will use therequested Host header

# server_names_hash_bucket_size 64; # server_name_in_redirect off;

include /etc/nginx/mime.types; default_type application/octet-stream;

## # Logging Settings ##

access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; …..

Page 7: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

apt-get install nginx-extrasmore_set_headers "Server: Microsoft-IIS/7.5";

Page 8: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

Wordpress:

Medios de identificación:

Archivo PDF

Herramientas: Plecost

> python plecost.py -nb http://merri_crismas_manue.org/

Page 9: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

sites-enabled/wordpress

if ($uri ~ "readme\.|(html|txt)$" ) { return 500; }

Page 10: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

if ($uri ~ "readme\.|(html|txt)$" ) { return 301 /; }

Modo enfermizo:

wp-includes/general-template.php

Page 11: III Hack and beers: evadiendo técnicas de fingerprinting en Linux y Wordpress

Reset Kernel

sysctl -w net.ipv4.ip_default_ttl=64sysctl -w net.ipv4.ip_local_port_range="32768 61000"sysctl -w net.ipv4.tcp_rmem="4096 87380 6291456"sysctl -w net.ipv4.tcp_wmem="4096 16384 4194304"

Acces Wordpress info:

urlu: manuesoyyop: 10sdk8j2