50
1 http://abirtone.com/formacion/hacking-redes-python-y-scapy/ [email protected] @ggdaniel Hacking de redes con Python Hacking + Python

Hacking y python: Hacking de redes con Python

Embed Size (px)

Citation preview

Page 1: Hacking y python: Hacking de redes con Python

1

http://abirtone.com/formacion/hacking-redes-python-y-scapy/

[email protected]

@ggdaniel

HackingderedesconPython

Hacking + Python

Page 2: Hacking y python: Hacking de redes con Python

Curso: Hacking en redes con Python y Scapy:

http://abirtone.com/formacion/hacking-redes-python-y-scapy/

Libro: Hacking y manipulación de paquetes con Python y Scapy

http://abirtone.com/libros/hacking-redes-python-y-scapy/

2

Recursos adicionales

Page 3: Hacking y python: Hacking de redes con Python

¿De qué va esta charla?

3

Page 4: Hacking y python: Hacking de redes con Python

Hacking de redes y gestión de resultados

4

¿De qué va esta charla?

Page 5: Hacking y python: Hacking de redes con Python

5

¿Qué usaremos?

Page 6: Hacking y python: Hacking de redes con Python

5

¿Qué usaremos?

Page 7: Hacking y python: Hacking de redes con Python

5

¿Qué usaremos?

Scapy

Page 8: Hacking y python: Hacking de redes con Python

5

¿Qué usaremos?

Scapy

Page 9: Hacking y python: Hacking de redes con Python

Redes en 2 minutos…

6

Page 10: Hacking y python: Hacking de redes con Python

7

¿Qué es una pila de de protocolos?

Page 11: Hacking y python: Hacking de redes con Python

7

¿Qué es una pila de de protocolos?

Page 12: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?

Page 13: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?

OSI

Page 14: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?OSI

Page 15: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?OSI

Page 16: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?OSI

TCP/IP

Page 17: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?OSI

Red

IP

TCP

Aplicación

TCP/IP

Page 18: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?OSI

Red

IP

TCP

Aplicación

TCP/IP

Page 19: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?OSI

Red

IP

TCP

Aplicación

TCP/IP

Teórico

Page 20: Hacking y python: Hacking de redes con Python

8

¿Qué pilas existen?OSI

Red

IP

TCP

Aplicación

TCP/IP

Teórico Real

Page 21: Hacking y python: Hacking de redes con Python

9

¿Cómo se organizan?

Page 22: Hacking y python: Hacking de redes con Python

9

¿Cómo se organizan?

Page 23: Hacking y python: Hacking de redes con Python

10

¿Cómo funcionan?

Page 24: Hacking y python: Hacking de redes con Python

10

¿Cómo funcionan?

Page 25: Hacking y python: Hacking de redes con Python

11

(A + B) != (B + A)

Page 26: Hacking y python: Hacking de redes con Python

11

(A + B) != (B + A)

Page 27: Hacking y python: Hacking de redes con Python

¿Qué es Scapy y porqué usarlo?

12

Page 28: Hacking y python: Hacking de redes con Python

Generador de paquetes y tramas de red. Es muy sencillo de usar. Se puede usar como librería y como herramienta.

13

Qué es Scapy

Page 29: Hacking y python: Hacking de redes con Python

14

Scapy en linea de comandos

Page 30: Hacking y python: Hacking de redes con Python

15

Scapy <-> redes

Page 31: Hacking y python: Hacking de redes con Python

15

Scapy <-> redes

Page 32: Hacking y python: Hacking de redes con Python

16

Scapy: cientos de protocolos incorporados

Page 33: Hacking y python: Hacking de redes con Python

16

Scapy: cientos de protocolos incorporados

Page 34: Hacking y python: Hacking de redes con Python

Enviar y recibir información. Manipular paquetes y tramas de red. Sniffar tráfico selectivo y actuar. Crear protocolos nuevos. Exportar el tráfico para un análisis off-line. Etc…

17

Qué nos permitirá hace Scapy

Page 35: Hacking y python: Hacking de redes con Python

18

¡Demo time!

Page 36: Hacking y python: Hacking de redes con Python

18

¡Demo time!

Page 37: Hacking y python: Hacking de redes con Python

Guardando información NO estructurada

19

Page 38: Hacking y python: Hacking de redes con Python

20

Cómo guardar la información

Page 39: Hacking y python: Hacking de redes con Python

20

Cómo guardar la información

NoSQL

Page 40: Hacking y python: Hacking de redes con Python

Según Wikipedia:

Los datos almacenados no requieren estructuras fijas como tablas, normalmente no soportan operaciones JOIN, ni garantizan completamente ACID (atomicidad, consistencia, aislamiento y durabilidad), y habitualmente escalan bien horizontalmente.

20

Cómo guardar la información

NoSQL

Page 41: Hacking y python: Hacking de redes con Python

21

Objetivo

Page 42: Hacking y python: Hacking de redes con Python

•Posibilidad de analizar las información en off-line. •Posibilidad de realizar búsquedas y patrones. •Mostrar la información de manera más user-friendly.

21

Objetivo

Page 43: Hacking y python: Hacking de redes con Python

22

Exportar un paquete en formato JSON

Page 44: Hacking y python: Hacking de redes con Python

• Un JSON <-> un tipo dict en Python… • Exportador de paquetes Scapy a JSON: • https://gist.github.com/cr0hn/1b0c2e672cd0721d3a07

22

Exportar un paquete en formato JSON

Page 45: Hacking y python: Hacking de redes con Python

• Un JSON <-> un tipo dict en Python… • Exportador de paquetes Scapy a JSON: • https://gist.github.com/cr0hn/1b0c2e672cd0721d3a07

22

Exportar un paquete en formato JSON

Scapy

Page 46: Hacking y python: Hacking de redes con Python

• Un JSON <-> un tipo dict en Python… • Exportador de paquetes Scapy a JSON: • https://gist.github.com/cr0hn/1b0c2e672cd0721d3a07

22

Exportar un paquete en formato JSON

Scapy

Mongo-Express

Page 47: Hacking y python: Hacking de redes con Python

23

¡Demo time!

Page 48: Hacking y python: Hacking de redes con Python

23

¡Demo time!

Page 49: Hacking y python: Hacking de redes con Python

¿Preguntas?

24

Page 50: Hacking y python: Hacking de redes con Python

25

Muchas gracias!