- Learning Penetration Testing with Python
- Christopher Duffy
- 342字
- 2021-07-09 21:52:54
Chapter 2. The Basics of Python Scripting
Before diving into writing your first Python script, a few concepts should be understood. Learning these items now will help you develop code quicker in the future. This will improve your abilities as a penetration tester or in understanding what an assessor is doing when they are creating real-time custom code and what questions you should be asking. You should also understand how to create the scripts and the goal you are trying to achieve. You will often find out that your scripts will morph over time and the purpose may change. This may happen because you realize that the real need for the script may not be there or that there is an existing tool for the particular capability.
Many scripters find this discouraging, as a project that they may have been working on for a great deal of time you may find that the tool has duplicate features of more advanced tools. Instead of looking at this as a failed project, look at the activity as an experience wherein you learned new concepts and techniques that you did not initially know. Additionally, keep it at the back of your mind at all times when you are developing code snippets that can be used for other projects in the future.
To this end, try and build your code cleanly, comment it with what you are doing, and make it modular so that once you learn how to build functions, they can be cut and pasted into other scripts in the future. The first step in this journey is to describe the computer science glossary at a high level so that you can understand future chapters or other tutorials. Without understanding these basic concepts, you may misunderstand how to achieve your desired results.
Note
Before running any of the scripts in this book, I recommend that you run the setup script on the git repository, which will configure your Kali instance with all the necessary libraries. The script can be found at https://raw.githubusercontent.com/funkandwagnalls/pythonpentest/master/setup.sh.
- The DevOps 2.3 Toolkit
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Apache ZooKeeper Essentials
- Java 開發從入門到精通(第2版)
- WebAssembly實戰
- 自己動手實現Lua:虛擬機、編譯器和標準庫
- Hands-On Image Processing with Python
- Developing Middleware in Java EE 8
- Java游戲服務器架構實戰
- Servlet/JSP深入詳解
- Mastering Ubuntu Server
- Mastering Kali Linux for Web Penetration Testing
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- 青少年學Python(第1冊)
- 微服務從小白到專家:Spring Cloud和Kubernetes實戰