Top Banner

Click here to load reader

Python Final

Aug 31, 2014

ReportDownload

Documents

 

  • CYBER SECURITY INFORMATION TECHNOLOGY AppSec CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE (By Rich Helton) Python for Security Professionals (September 21, 2011) (with some Droid and Django) State of Colorado Office of Cyber Security State of Colorado Office of Cyber Security
  • Class IntroductionCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE My information, [email protected] A good reference for an online Python class is http://code.google.com/edu/languages/google-python-class/ introduction.html , PyQuick Python Class from Google University. Another place for reference Python Documentation, http://www.python.org/doc/ State of Colorado Office of Cyber Security
  • Python HistoryCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE From http://en.wikipedia.org/wiki/Python_(programming_language) , Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. The reference implementation of Python (CPython) is free and open source software and has a community-based development model, as do nearly all of its alternative implementations. Python interpreters are available for many operating systems, and Python programs can be packaged into stand-alone executable code for many systems using various tools. Pythons implementation was started in December 1989 by Guido van Rossum in the Netherlands as a successor to the ABD programming language. State of Colorado Office of Cyber Security
  • Installing PythonCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Python can be downloaded and installed from http://www.python.org/getit/ State of Colorado Office of Cyber Security
  • Just my 2 Cents,CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Referencing others, Python does not define types ahead of time, but uses declaration at runtime. Many say the variable names in Python have to be watched more closely due to this interpreted runtime. You need to be prepared to create modules and break apart lines more often to keep readability more apparent, while a statement in Java code could easily occupy three lines of text, Python works with line breaks and indentation and cannot easily occupy multiple lines for the one statement. This concept ensures Python as a more compact language and the need to occupy less space. This in turn makes Python able to get a lot more done with fewer lines of code and to be great at utilities and tools. Python is concise. Keep it simple, State of Colorado Office of Cyber Security
  • Other AdvantagesCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Python does not require as much typing as Java and integrates more into the Operating System as a scripting language. While Java has many more frameworks than Python, Python does have a Spring Framework (Middleware) and many Web Frameworks. I like to work with Python for admin and 3D graphics integration: If you do graphics programming, Python is a must have. There are packages like Maya, that uses Python plugins, Blender 3D, and Disneys original Panda3D application is based on Python. If you manage Linux systems and do network and system security, Python is a language that many scanning tools are based on. Python is a great language for incorporating modules from other languages and applications. For a list Python software, see http://en.wikipedia.org/wiki/List_of_Python_software State of Colorado Office of Cyber Security
  • Python SoftwareCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE State of Colorado Office of Cyber Security
  • Java vs. PythonCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE A simple Hello World (Python is concise, see left pane): State of Colorado Office of Cyber Security
  • Panda3D (Free Python 3D Engine)CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Python can be powerful, see Disneys game engine, http://www.panda3d.org/ State of Colorado Office of Cyber Security
  • Panda3D (Free Python 3D Engine)CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Panda3D Boxing Program Sample, nothing but Python. State of Colorado Office of Cyber Security
  • PygameCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE One of the most well known frameworks regarding python is pygames, found at http://www.pygame.org/ and information found at http://en.wikipedia.org/wiki/Pygame Pygame has been around 2004. It has many tutorials and editors like a Tile and Level Editor, and even a Map Maker: State of Colorado Office of Cyber Security
  • Pygame Aliens gameCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE State of Colorado Office of Cyber Security
  • PygameCYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Pygame has a subset for the Android, see http://pygame.renpy.org/ . To learn the code for Sprite animation for Aliens, simply go through the code at http://svn.pythonmac.org/py2app/py2app/trunk/examples/pygame/ aliens.py State of Colorado Office of Cyber Security