Black Hat Python




Download 3.02 Mb.
Pdf ko'rish
bet5/10
Sana26.01.2024
Hajmi3.02 Mb.
#146117
1   2   3   4   5   6   7   8   9   10
Bog'liq
python
Mintaqaviy iqtisodiyot
pip install github3.py
You should see output in your terminal indicating that the library is being downloaded and installed.
Then drop into a Python shell and validate that it was installed correctly:
root@kali:~#: 
python
Python 2.7.3 (default, Mar 14 2014, 11:57:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
import github3
>>> 
exit()
If your results are not identical to these, then there is a “misconfiguration” in your Python environment
and you have brought great shame to our Python dojo! In this case, make sure that you followed all the
steps above and that you have the correct version of Kali.
Keep in mind that for most examples throughout this book, you can develop your code in a variety of
environments, including Mac, Linux, and Windows. There are some chapters that are Windows-
specific, and I’ll make sure to let you know at the beginning of the chapter.
Now that we have our hacking virtual machine set up, let’s install a Python IDE for development.


WingIDE
While I typically don’t advocate commercial software products, WingIDE is the best IDE that I’ve
used in the past seven years at Immunity. WingIDE provides all the basic IDE functionality like auto-
completion and explanation of function parameters, but its debugging capabilities are what set it apart
from other IDEs. I will give you a quick rundown of the commercial version of WingIDE, but of
course you should choose whichever version is best for you.
[
3
]
You can grab WingIDE from 
http://www.wingware.com/
, and I recommend that you install the trial so
that you can experience firsthand some of the features available in the commercial version.
You can do your development on any platform you wish, but it might be best to install WingIDE on
your Kali VM at least to get started. If you’ve followed along with my instructions so far, make sure
that you download the 32-bit 
.deb
package for WingIDE, and save it to your user directory. Then
drop into a terminal and run the following:
root@kali:~# 

Download 3.02 Mb.
1   2   3   4   5   6   7   8   9   10




Download 3.02 Mb.
Pdf ko'rish