Introduccion muy básica a Python

Daniel Garcia (a.k.a cr0hn)
Daniel Garcia (a.k.a cr0hn)Security research, hacking, DevSecOps & Python develop en Freelancer
PYTHON 3
Introducción y conceptos básicos
QUÉ ES PYTHON?
• Lenguaje interpretado
• Human-friendly
• De desarrollo rápido
• Muy fácil de aprender
QUÉ ES PYTHON?
• Lenguaje interpretado
• Human-friendly
• De desarrollo rápido
• Muy fácil de aprender
VERSIONES
• Python 2.7.x
• Python 3.x -> Python 3.4
INCONVENIENTES DE
PYTHON
• No tiene multi-threading real
• La herencia y el polimorfismo es simulado
• No tiene propiedad/métodos privados
INCONVENIENTES DE
PYTHON
• No tiene multi-threading real
• La herencia y el polimorfismo es simulado
• No tiene propiedad/métodos privados
PUNTOS FUERTES
• Tratamiento de cadenas
• El framework incluye prácticamente toda la funcionalidad
necesaria
• Muy bueno en tareas de red
• Gestión de paquetes muy sencilla
• Millones de paquetes y software reutilizare existente
EJEMPLOS
• 1 - Hola mundo
• 2 - Hola mundo bien estructurado
• 3 - Gestión de dependencias
• 4 -Virtualenvs
• 5 - Llamada a servicio REST
• 6 -Tratamiento de cadenas / ficheros
COSAS CURIOSAS DE
PYTHON
• Generadores/set/
listas
• With …
• __dict__ de las clases
• Switch / case no
existe
• null -> None
• Partials
• Diccionarios y
defaultsdict
• La sentencia For…
else
http://javarevisited.blogspot.com.es/2013/11/java-vs-python-which-programming-laungage-to-learn-first.html
MEJORAS PYTHON 3
• Estabilidad
• Diseño
• Rendimiento por defecto
• Nuevas librerías nativas
• AsyncIO
LIBRERÍAS MÁS USADAS
• Django
• Celery
• SQL Alchemy
• Lxml
• Scrapy
• pytest
• NTLK
• BeautifulSoup
• Pillow
• Scapy
• cython
• Mongo/TinyDB/Codernity
1 de 11

Recomendados

Scapy: Crear un Frankenstein de red y hacerlo pasar por el príncipe azul por
Scapy: Crear un Frankenstein de red y hacerlo pasar por el príncipe azulScapy: Crear un Frankenstein de red y hacerlo pasar por el príncipe azul
Scapy: Crear un Frankenstein de red y hacerlo pasar por el príncipe azulDaniel Garcia (a.k.a cr0hn)
822 vistas81 diapositivas
Topera: Evadiendo Snort con IPv6 por
Topera: Evadiendo Snort con IPv6Topera: Evadiendo Snort con IPv6
Topera: Evadiendo Snort con IPv6Daniel Garcia (a.k.a cr0hn)
543 vistas59 diapositivas
Cybercam 2014 por
Cybercam 2014Cybercam 2014
Cybercam 2014Daniel Garcia (a.k.a cr0hn)
482 vistas31 diapositivas
Cybercamp 2015 - Python, hacking y sec-tools desde las trincheras por
Cybercamp 2015 - Python, hacking y sec-tools desde las trincherasCybercamp 2015 - Python, hacking y sec-tools desde las trincheras
Cybercamp 2015 - Python, hacking y sec-tools desde las trincherasDaniel Garcia (a.k.a cr0hn)
759 vistas15 diapositivas
Identificando y rompiendo servicios de las 4 capas de TCP/IP por
Identificando y rompiendo servicios de las 4 capas de TCP/IPIdentificando y rompiendo servicios de las 4 capas de TCP/IP
Identificando y rompiendo servicios de las 4 capas de TCP/IPDaniel Garcia (a.k.a cr0hn)
936 vistas97 diapositivas
Hacking y python: Hacking de redes con Python por
Hacking y python: Hacking de redes con PythonHacking y python: Hacking de redes con Python
Hacking y python: Hacking de redes con PythonDaniel Garcia (a.k.a cr0hn)
1.3K vistas50 diapositivas

Más contenido relacionado

Destacado

Security in NodeJS applications por
Security in NodeJS applicationsSecurity in NodeJS applications
Security in NodeJS applicationsDaniel Garcia (a.k.a cr0hn)
983 vistas54 diapositivas
The art of disguise - Antifingerprinting techniques por
The art of disguise - Antifingerprinting techniquesThe art of disguise - Antifingerprinting techniques
The art of disguise - Antifingerprinting techniquesDaniel Garcia (a.k.a cr0hn)
2.3K vistas58 diapositivas
Qué es el fingerprinting: Definición, peligros y medidas mitigadoras por
Qué es el fingerprinting: Definición, peligros y medidas mitigadorasQué es el fingerprinting: Definición, peligros y medidas mitigadoras
Qué es el fingerprinting: Definición, peligros y medidas mitigadorasDaniel Garcia (a.k.a cr0hn)
4.2K vistas47 diapositivas
Extreme security in web servers por
Extreme security in  web serversExtreme security in  web servers
Extreme security in web serversDaniel Garcia (a.k.a cr0hn)
2.9K vistas102 diapositivas
GoLismero: The Web Knife por
GoLismero: The Web KnifeGoLismero: The Web Knife
GoLismero: The Web KnifeDaniel Garcia (a.k.a cr0hn)
605 vistas30 diapositivas
Tu DevOp me da trabajo: Soy auditor de seguridad por
Tu DevOp me da trabajo: Soy auditor de seguridadTu DevOp me da trabajo: Soy auditor de seguridad
Tu DevOp me da trabajo: Soy auditor de seguridadDaniel Garcia (a.k.a cr0hn)
2.6K vistas74 diapositivas

Destacado(20)

Talking TUF: Securing Software Distribution por Docker, Inc.
Talking TUF: Securing Software DistributionTalking TUF: Securing Software Distribution
Talking TUF: Securing Software Distribution
Docker, Inc.2.3K vistas
Unikernels: the rise of the library hypervisor in MirageOS por Docker, Inc.
Unikernels: the rise of the library hypervisor in MirageOSUnikernels: the rise of the library hypervisor in MirageOS
Unikernels: the rise of the library hypervisor in MirageOS
Docker, Inc.2.3K vistas
'The History of Metrics According to me' by Stephen Day por Docker, Inc.
'The History of Metrics According to me' by Stephen Day'The History of Metrics According to me' by Stephen Day
'The History of Metrics According to me' by Stephen Day
Docker, Inc.6.5K vistas
Prometheus design and philosophy por Docker, Inc.
Prometheus design and philosophy   Prometheus design and philosophy
Prometheus design and philosophy
Docker, Inc.2.7K vistas
Orchestrating Least Privilege by Diogo Monica por Docker, Inc.
Orchestrating Least Privilege by Diogo Monica Orchestrating Least Privilege by Diogo Monica
Orchestrating Least Privilege by Diogo Monica
Docker, Inc.1.5K vistas
Infinit: Modern Storage Platform for Container Environments por Docker, Inc.
Infinit: Modern Storage Platform for Container EnvironmentsInfinit: Modern Storage Platform for Container Environments
Infinit: Modern Storage Platform for Container Environments
Docker, Inc.25.5K vistas
Docker Online Meetup: Infrakit update and Q&A por Docker, Inc.
Docker Online Meetup: Infrakit update and Q&ADocker Online Meetup: Infrakit update and Q&A
Docker Online Meetup: Infrakit update and Q&A
Docker, Inc.6.7K vistas
Persistent storage tailored for containers por Docker, Inc.
Persistent storage tailored for containersPersistent storage tailored for containers
Persistent storage tailored for containers
Docker, Inc.1.1K vistas
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish... por Docker, Inc.
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Docker, Inc.8.1K vistas
Docker Roadshow 2016 por Docker, Inc.
Docker Roadshow 2016Docker Roadshow 2016
Docker Roadshow 2016
Docker, Inc.2.2K vistas
Online Meetup: What's new in docker 1.13.0 por Docker, Inc.
Online Meetup: What's new in docker 1.13.0 Online Meetup: What's new in docker 1.13.0
Online Meetup: What's new in docker 1.13.0
Docker, Inc.11.6K vistas
Docker and Microsoft - Windows Server 2016 Technical Deep Dive por Docker, Inc.
Docker and Microsoft - Windows Server 2016 Technical Deep DiveDocker and Microsoft - Windows Server 2016 Technical Deep Dive
Docker and Microsoft - Windows Server 2016 Technical Deep Dive
Docker, Inc.9.3K vistas
Containerd - core container runtime component por Docker, Inc.
Containerd - core container runtime component Containerd - core container runtime component
Containerd - core container runtime component
Docker, Inc.7.3K vistas
Docker Networking: Control plane and Data plane por Docker, Inc.
Docker Networking: Control plane and Data planeDocker Networking: Control plane and Data plane
Docker Networking: Control plane and Data plane
Docker, Inc.7.7K vistas

Similar a Introduccion muy básica a Python

Screencast aprende python - parte 1 por
Screencast   aprende python - parte 1Screencast   aprende python - parte 1
Screencast aprende python - parte 1Noe Nieto
498 vistas16 diapositivas
Argentesting 2019 - Por que-python-esta-buenisimo por
Argentesting 2019 - Por que-python-esta-buenisimoArgentesting 2019 - Por que-python-esta-buenisimo
Argentesting 2019 - Por que-python-esta-buenisimoArgentesting
312 vistas30 diapositivas
Python-01.pdf por
Python-01.pdfPython-01.pdf
Python-01.pdfjaimeandresarangomar
34 vistas9 diapositivas
BilboStack - Php en el 2012 por
BilboStack - Php en el 2012BilboStack - Php en el 2012
BilboStack - Php en el 2012Asier Marqués
759 vistas59 diapositivas
Python.pptx por
Python.pptxPython.pptx
Python.pptxIBHV1
51 vistas11 diapositivas
Sesión 1: Python por
Sesión 1: PythonSesión 1: Python
Sesión 1: Pythonmaluacsa
1.3K vistas23 diapositivas

Similar a Introduccion muy básica a Python(20)

Screencast aprende python - parte 1 por Noe Nieto
Screencast   aprende python - parte 1Screencast   aprende python - parte 1
Screencast aprende python - parte 1
Noe Nieto498 vistas
Argentesting 2019 - Por que-python-esta-buenisimo por Argentesting
Argentesting 2019 - Por que-python-esta-buenisimoArgentesting 2019 - Por que-python-esta-buenisimo
Argentesting 2019 - Por que-python-esta-buenisimo
Argentesting312 vistas
BilboStack - Php en el 2012 por Asier Marqués
BilboStack - Php en el 2012BilboStack - Php en el 2012
BilboStack - Php en el 2012
Asier Marqués759 vistas
Python.pptx por IBHV1
Python.pptxPython.pptx
Python.pptx
IBHV151 vistas
Sesión 1: Python por maluacsa
Sesión 1: PythonSesión 1: Python
Sesión 1: Python
maluacsa1.3K vistas
Python y la POO, en una clase, UNNe-Corrientes por alexis ibarra
Python y la POO, en una clase, UNNe-CorrientesPython y la POO, en una clase, UNNe-Corrientes
Python y la POO, en una clase, UNNe-Corrientes
alexis ibarra1.2K vistas
Usemos un raspberry pi para analizar el funcionamiento por Javier Liendo
Usemos un raspberry pi para analizar el funcionamientoUsemos un raspberry pi para analizar el funcionamiento
Usemos un raspberry pi para analizar el funcionamiento
Javier Liendo586 vistas
Clase 1- Fundamentos de programacion en Phyton.pptx por Veronica Freire
Clase 1- Fundamentos de programacion en Phyton.pptxClase 1- Fundamentos de programacion en Phyton.pptx
Clase 1- Fundamentos de programacion en Phyton.pptx
Veronica Freire31 vistas

Más de Daniel Garcia (a.k.a cr0hn)

Sonatype DevSecOps Leadership forum 2020 por
Sonatype DevSecOps Leadership forum 2020Sonatype DevSecOps Leadership forum 2020
Sonatype DevSecOps Leadership forum 2020Daniel Garcia (a.k.a cr0hn)
172 vistas52 diapositivas
Rooted con 2020 - from the heaven to hell in the CI - CD por
Rooted con 2020 - from the heaven to hell in the CI - CDRooted con 2020 - from the heaven to hell in the CI - CD
Rooted con 2020 - from the heaven to hell in the CI - CDDaniel Garcia (a.k.a cr0hn)
160 vistas87 diapositivas
12 tricks to avoid hackers breaks your CI / CD por
12 tricks to avoid hackers breaks your  CI / CD12 tricks to avoid hackers breaks your  CI / CD
12 tricks to avoid hackers breaks your CI / CDDaniel Garcia (a.k.a cr0hn)
571 vistas51 diapositivas
Security in AWS Lambdas - NavajaNegra CON 2018 por
Security in AWS Lambdas - NavajaNegra CON 2018Security in AWS Lambdas - NavajaNegra CON 2018
Security in AWS Lambdas - NavajaNegra CON 2018Daniel Garcia (a.k.a cr0hn)
4.7K vistas224 diapositivas
Rooted 2018 - Crawlino: The next level of crawling systems por
Rooted 2018 - Crawlino: The next level of crawling systemsRooted 2018 - Crawlino: The next level of crawling systems
Rooted 2018 - Crawlino: The next level of crawling systemsDaniel Garcia (a.k.a cr0hn)
775 vistas169 diapositivas
Ingenieria social aplicada: Mucho mas fácil de lo que parece por
Ingenieria social aplicada: Mucho mas fácil de lo que pareceIngenieria social aplicada: Mucho mas fácil de lo que parece
Ingenieria social aplicada: Mucho mas fácil de lo que pareceDaniel Garcia (a.k.a cr0hn)
531 vistas40 diapositivas

Más de Daniel Garcia (a.k.a cr0hn)(9)

RootedCON 2017 - Docker might not be your friend. Trojanizing Docker images por Daniel Garcia (a.k.a cr0hn)
RootedCON 2017 - Docker might not be your friend. Trojanizing Docker imagesRootedCON 2017 - Docker might not be your friend. Trojanizing Docker images
RootedCON 2017 - Docker might not be your friend. Trojanizing Docker images

Introduccion muy básica a Python

  • 1. PYTHON 3 Introducción y conceptos básicos
  • 2. QUÉ ES PYTHON? • Lenguaje interpretado • Human-friendly • De desarrollo rápido • Muy fácil de aprender
  • 3. QUÉ ES PYTHON? • Lenguaje interpretado • Human-friendly • De desarrollo rápido • Muy fácil de aprender
  • 4. VERSIONES • Python 2.7.x • Python 3.x -> Python 3.4
  • 5. INCONVENIENTES DE PYTHON • No tiene multi-threading real • La herencia y el polimorfismo es simulado • No tiene propiedad/métodos privados
  • 6. INCONVENIENTES DE PYTHON • No tiene multi-threading real • La herencia y el polimorfismo es simulado • No tiene propiedad/métodos privados
  • 7. PUNTOS FUERTES • Tratamiento de cadenas • El framework incluye prácticamente toda la funcionalidad necesaria • Muy bueno en tareas de red • Gestión de paquetes muy sencilla • Millones de paquetes y software reutilizare existente
  • 8. EJEMPLOS • 1 - Hola mundo • 2 - Hola mundo bien estructurado • 3 - Gestión de dependencias • 4 -Virtualenvs • 5 - Llamada a servicio REST • 6 -Tratamiento de cadenas / ficheros
  • 9. COSAS CURIOSAS DE PYTHON • Generadores/set/ listas • With … • __dict__ de las clases • Switch / case no existe • null -> None • Partials • Diccionarios y defaultsdict • La sentencia For… else http://javarevisited.blogspot.com.es/2013/11/java-vs-python-which-programming-laungage-to-learn-first.html
  • 10. MEJORAS PYTHON 3 • Estabilidad • Diseño • Rendimiento por defecto • Nuevas librerías nativas • AsyncIO
  • 11. LIBRERÍAS MÁS USADAS • Django • Celery • SQL Alchemy • Lxml • Scrapy • pytest • NTLK • BeautifulSoup • Pillow • Scapy • cython • Mongo/TinyDB/Codernity