Python for Security Professionals

Programming Languages >

Python for Security Professionals

5 - Day Classroom Training Course - 35 Contact Hours

 
Upcoming Schedules for Python :
Dubai 27/Dec/2020 TBA TBA Enquire Now


Center Benefits :

• Corporate Venue: Onsite only

• UAE Ministry of Education Accredited Institute

• International Curriculum

• Certified Instructors

• Computer Labs: 1 PC for each student

• Certificate of Achievement (Ministry Attestation fees apply)

• Exams: Prometric & VUE exams available (fees excluded)

 

Training Quality Guarantees :

(conditions apply)

• Free Course Trial

• Free Course Repeat

• Corporate HR Investment Guarantee

• Corporate Customization

• Course Version Upgrade

Who should attend?
  • IT professionals who want to enhance their programming skill to next level.
  • Fresher IT graduates want to start career in Python programming.
  • Database developers and administrators.
  • Network and System engineers.
  • Software testing professionals.
  • Mobile and device testing professionals.

Pre-requisites

  1. Participants need to be expert level in at least one programming language
  2. Participants should be fully conversant with development tools - either command line or IDE (command line would be used for the training)

Participants need to have basic working knowledge of Python. Basics would be covered as a very short refresher only

Course outline

Python Installation [1 hr]
  • Python distributions
    • ActivePython
    • Anaconda
    • MiniConda
  • Additional modules
    • Pip, conda, easy_install

Python Introduction & Basics [2 hrs]
  • The Python interpreter
  • Working with command-line/IDE
  • Syntax
    • Blocks and indentation
  • Python Data Types
    • Lists, Tuples, sets, dict’s
  • Built in operators, functions and methods
  • Data and type introspection basics: type(), dir()
  • User defined functions
  • File I/O

CSV module [2 hr]
  • CSV format
  • Tab delimiters instead of ‘,’
  • Variants of CSV
  • Reading csv files
  • Dict references
  • Writing CSV files

JSON [2 hr]
  • JSON format
  • Field data and formats
  • JSON data parsed to dict’s
  • Modifying dict data
  • Writing out dict data to JSON
  • BSON (Binary JSON to save space, security)

Regular Expressions [1hr]
  • ‘re’ module
  • Basics of Regular Expressions
  • Match objects
  • Submatches
  • .findall()
  • .subs()

Class basics [1.5 hr]
  • __init__
  • self
  • private vs public convention
  • magic functions
  • object creation
  • type of objects
  • inheritance, multiple inheritance

Errors & exceptions [1 hr]
  • Standard exception hierarchy
  • exception payloads
  • defining new exceptions
  • chaining exceptions
  • traceback objects
  • Assertions

Logging [2 hr]
  • logging module
  • Creating a Logger
  • Handler
  • Formatter
  • Filter
  • Logging Levels: INFO, WARN, DEBUG, ERROR, CRITICAL, FATAL
  • Custom Logging levels
  • Os logging
  • Multiprocess logging and synchronization

Exercises, Q&A, Discussion [1 hr]

Relational Database Interaction [2 hr]
  • CRUD operations
  • SQL
  • Python DB API 2.0
  • MySQLdb module
    • connect()
    • execute()
    • fetch*()

Networking

Working with urls [2 hr]
  • Urllib2
    • Urlopen
    • Request object
    • Urlencode, urldecode
  • Requests
    • .get()
    • .put()
    • .delete()
    • .head()
    • .options()
    • Binary response content
    • Json content
    • Cookies

Low-level Networking [2 hrs]
  • Socket module
  • Socket types: streaming, datagram
  • Protocols: TCP, UDP
  • Methods
    • bind()
    • listen()
    • accept()
    • connect()
    • recv()
    • send()
    • recvfrom()
    • sendto()
    • gethostname()
    • close()
  • Writing a simple client-server

Email [1.5 hrs]
  • Smtplib module
  • Email module
  • MIME and MIMEtypes
  • MIMEText
  • Sending atachments
  • Sending media

Parsing HTML [2 hrs]
  • BeautifulSoup module
  • Bs4 module
  • prettify()
  • HTML tags overview: <head>, <body>, <h1>, <a href>, <title>, <p>, ..
  • Tag properties
  • DOM
  • Object attributes
    • .title
    • .p
    • .parent
    • .children
    • .name
    • .contents
    • .strings
  • Dict based lookup
    • Soup[‘id’]
    • Multi-valued attributes
  • .find()
  • .find_all()
  • .get()

Network discovery I [2 hrs]
  • Netdisco module
  • Discovery methods
    • mDNS
    • uPnP
    • Plex Media Server using Good Day Mate protocol
    • Logitech Media Server discovery protocol
    • Daikin discovery protocol
    • Web OS discovery protocol
  • NetworkDiscovery object
  • Methods
    • scan()
    • discover()
    • get_info()
    • stop()

Network discovery II [2 hrs]
  • Nmap tool
  • Nmap module
    • PortScanner object
    • scan()
    • scaninfo()
    • all_hosts()
    • Host lookup nm[host]
    • Iterating through all hosts
    • all_protocols()
    • all_tcp()
    • all_udp()
    • all_ip()
    • .tcp(port#)

Packet Sniffers [2 hrs]
  • Low level sniffer using socket
  • Packet format
    • IP header
    • TCP/UDP header
  • Packet analysis
  • Packet sequencing
  • Filtering by packet type/packet payload
  • By incoming/outgoing packets
  • Writing a gateway sniffer
  • Existing Packet analyzer solutions in python

Projects [1.5 hrs]
  • Web vulnerability scanner
    • Scan standard resources over domains/IP’s
    • Investigate error codes
  • Exploitation
    • Shellshock bash shell

Wrap-up, Discussion and Q&A [1 hr]
©2011 SitesPower Training Institute. All Rights Reserved.