PYTHON FOR ETHICAL HACKING INTRO
Here, We discuss some beautiful part of Python programming that is used for Ethical Hacking. Coming with lots of gifts for you. Let's go with PYTHON FOR ETHICAL HACKING INTRO.
Introduction Part
It is best that LINUX distribution is best for this Journey. You can use Kali or Parrot or any other Operating System.
Firstly, Check that PYTHON INTERPRETER is install on your PC/LAPTOP. For checking this, simply open TERMINAL and type "PYTHON" or "PYTHON3". The version is different only. Given below figure shows that.
In Python Interpreter, You can run Python codes for conformation that Python is running.
Secondly, You need some prebuild python modules or packages.
Here, We will learn how to apply python scripts/tools in Kali or Parrot to learn how to hack. https://pypi.org Now, the Provided link is for Python Packages. Those packages are fantastic for learning. You can search for Python Packages from the search bar. In addition, You can run "Pip install package" to get the package.
At Third, Coming to the root.
Installations part
Now, Install Google, beautifulsoup4 by writing "pip install google" and "pip install beautifulsoup4".
Now, It's time to Install PyCharm and for installation Go to Browser and search for "PyCharm" Link: https://www.jetbrains.com/pycharm/ .
Download it according to OS. The recommendation is to choose the "Community" version. It does everything. You can with the paid "Professional" version.
Here, The recommendation is to choose the "Community" version. The file size is 500MB. After Download, Open the "Download" folder and open the Terminal to Unzip the downloaded file.
The unzip command is given below :
tar -zxvf pycharm-community-2017.2.3.tar.gz
Here, 'x' is used for extracting and 'f' for the filename. After pressing Enter, the Unzip process executed properly. It takes some time.
After that, Enter "Pycharm-community". Using CD command.
How to run PyCharm ?
After Entering the PyCharm-Community folder and "BIN" folder. Run Terminal and write the following code:
./pycharm.sh
PyCharm started successfully. It takes some times.
After some time, Select Ok and give permissions to all requirements. It only comes the first time. And the First startup gonna be very slow.
CODING / EDITING PART
Theme select as "Darcula", and leave everything as it is.
Here, Select "New project" and follow these steps.
And Obviously, Select a directory location and Interpreter for save and run the program. You can skip Startup Tips. Some background task running at the right side of the editor. Now, Creating our first project.
How to create a new Project ?
To create a file, Right click on the directory in the left hand side bar, and Go to NEW and select PYTHON FILE. Shown in the figure below,
Choose a File Name after selecting PYTHON, named it as "PythonRocks" and Welcome to PYTHON.
Here We can do all Python related tasks, If you are not familiar with it, You can read these articles given below,
How to save a file ?
In this given figure, you can see that there is an option i.e. SAVE AS. Click on it, and Save it in your local directory. As we normally Save files in Word.
How to run saved file ?
For Running, you can go to Terminal and run as other Python Programming. Or You can run in the debugger as well.
This article is all about Installation, Introduction and Coding section. New articles are coming very soon with lots of new gifts for you in 2021 NEW YEAR.
You might like :
FAQ:
1> How to delete a locked or executable file in LINUX ?
At first, Make sure you are in the Root or as local user, Coming to your system's root from the Terminal using command "su" and give the password. You are able to handle it as Root user. Then, Run this command,
chmod 644 filename
rm filename
rm is for remove file only, For folder purpose, Right click and delete manually.
The inner part deletes first, then the outer part. Gives you full satisfactory access to delete the locked files. You can check this link: https://www.gnu.org/software/coreutils/manual/html_node/chmod-invocation.html#chmod-invocation
2> How to exit from PyCharm ?
Simply, Go to File, and click on Exit as done in Word files. Corresponding Terminal file closed accordingly.
Comments
Post a Comment