Mais conteúdo relacionado
Semelhante a اسلاید اول جلسه دوم کلاس پایتون برای هکرهای قانونی (20)
Mais de Mohammad Reza Kamalifard (14)
اسلاید اول جلسه دوم کلاس پایتون برای هکرهای قانونی
- 3. Python a short History
Created in 1989 by Huido Van Rossum (now he works for
Google in App Engine)
Python 2.x in 2000
Python 3.x in 2008
Python 3 is not backward compatible
2.x is the status quo
3.x future
© Mohammad reza Kamalifard
- 4. Why Python ?
Open Source
Cross-platform
Rich set of libraries
Large Number of open source tools
Rapid prototyping
© Mohammad reza Kamalifard
- 5. Multiple OS Support
Unix/ Linux
Mac OS X
Windows
Mobile Platforms – Android, IOS
Embedded Systems
© Mohammad reza Kamalifard
- 6. Major Implementations
Cpython – reference implementation “Python”
PyPy
Jython – Python implementation in Java
IronPython – Python implementation in C#
© Mohammad reza Kamalifard
- 7. Why Python in Infosec?
Rapid prototyping – POC
Extensive library support
Tons of tools already written
If you want to write POC very fast actually you need
language which is High level allows you to concentrate
more on business of the application rather than having to
worry about integrity details.
© Mohammad reza Kamalifard
- 8. Python On different OS
Linux :
Pre-Loaded
Windows:
Download python 2.7.5 from http://python.org/getit
Or Download and install Activestate Python
http://www.activestate.com/activepython
Mac OS :
Pre-Loaded
© Mohammad reza Kamalifard
- 9. Workflow...
I Use ubuntu |oǒ'boǒntoō| Linux In this Course.
Server(or Desktop) 12.04
Get Ubuntu form : http://www.ubuntu.com/download/server
or buy cd from : http://shop.sito.ir/index.php
If you have Problem installing Ubuntu go to http://ubuntu.ir or a
Lug...like TehranLug : http://tehlug.org/ list of other lugs
http://tehlug.org/index.php?page=sisters
© Mohammad reza Kamalifard
- 10. Python 2.7 or 3.X ?
Python 3 is not backward compatible
Most tools / Libraries still do not Support 3.x
We use python 2.7 here in this course.
© Mohammad reza Kamalifard
- 12. Python
$python
Python 2.7.3 (default, Apr 10 2013, 05:46:21)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>>
© Mohammad reza Kamalifard
- 14. Or any other String
>>> print 'Welcome to PYSEC101 Course'
Welcome to PYSEC101 Course
>>>
© Mohammad reza Kamalifard
- 18. Comment in Python
# this is a comment
print 'Hello reza!' #This line of code print Hello reza
© Mohammad reza Kamalifard