Python For Cybersecurity

Mohd Amaan Siddiqui
5 min readMay 30, 2021

The first question that may arise in your mind is why Python?

The answer is Python is an interpreted, object-oriented high-level language that is very handy for the attackers while performing an attack the reason is the vast library support that comes with python, almost anything you could think of someone has already built it using python. This gives a huge advantage to the malware authors as simplistic capabilities can be cherry-picked from the open web and more complex capabilities likely don’t need to be written from scratch so this is the short intro to why malware author uses python for malware development but we are here to discuss the live application which is forged using the python. so let’s dive directly into the raw python code.

Maybe you got your answer maybe not, so the best way to know the answer is to get into python for me, python works dynamically strong especially in the penetration section well talk about this in further reading.

[+] Warming Up Tips Before Diving Into the Python :

1-Logical Mindset.

2-Able To Break The Problem In Small Bits.

3-Try Not To Lose The Path After Seeing Failure.

So, now you are warmed up now let's directly jump into the process.

If your new python or want to start from zero again the book that will help you a lot is “Learn Python The Hard Way”.

The reason that I am referring to this book is it targets the beginner audience and the resources and the topic's classification is patterned in such a way that all topics are interconnected to each other and I found this pattern quite effective for my journey with python.

For better understanding, you can take an online course which will be effective and fun to learn as well, some of the online courses are:

Python Telsuko if you complete this course you will easily reach the intermediate level because the guy who is teaching this course really teaches you in a magical way.

[+] Networking Why?

The reason is if you made a script for testing a network you really need to dive into the networking and which comes as a basic need.

After reaching the intermediate level what you can do is start learning about networking for that you can do is take a CompTIA Networking+ course you don't need to get proper certification from comptia just follow the content pattern of the Comptia Network+, the course that I have taken for the understanding of the networking world is Professor Messer N10–007 Network+ Training Course.

Professor Messor the instructor and this course will enhance your knowledge of networking to the intermediate level and you don't really need the network administrator knowledge to get into the python socket programming world.

Why I have discussed python socket programming as a separate topic the reason is python uses a socket library which allows communication between two different processes on the same or different machines if you picturise this thing on a large scale you will understand the need for it and for learning the socket programming what you can read the python socket library documentation and as additional you can take a course on socket programming.

Socket Programming this course will give you a grasp on the python socket programming area and believe me it will help you magically for your future path in cybersecurity.

Now we are ready for some interesting play I am talking about penetration testing with python and to get started with it you can take a book that I truly love to read and which really made my base the book is Black Hat Python.

A beginner can use it if your good at grasping new concepts quickly. the book is very good if you want to learn the “darker” side of scripting, the most interesting section are like making keyloggers and backdoors with python.

After completing this book now you can go for machine learning the reason saying this after talking to many security experts what they have said that python is shaping cybersecurity to new points and machine learning will be starting the key of it and this line hits me a lot and I move to machine learning the book I use is Mastering Machine Learning for Penetration Testing.

The reason I choose this book is that you don't need any prior knowledge of machine learning for reading this book but by the end, you will grasp a good knowledge of machine learning and our past experience is more than enough for the prerequisites of this book.

Now From Here You Can Choose Your Own Path Cybersecurity Is Really A Broad Domain And Comes With Endless Paths, The Path That I Have Taken From Here Is Python For Malware Analysis But It Depends On You Now If You Want To Go With Malware Analysis Start Building Some Tools For It And Take Help Of Machine Learning And If You Want To Go With Something Else Its Your Call Now Research More And Gain More Knowledge.

Trust The Process And Grind Yourself With Consistency.

I Hope You Liked It ..!!

You can find me on:

LinkedIn:-https://www.linkedin.com/in/amaansid/

Twitter- https://twitter.com/TronicFlux

Company(LinkedIn)-https://www.linkedin.com/company/acubesecurity/

--

--