دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: 1
نویسندگان: Steve Campbell
سری:
ISBN (شابک) : 9781835880821, 9781800566378
ناشر: Packt Publishing Pvt Ltd
سال نشر: 2024
تعداد صفحات: 0
زبان: English
فرمت فایل : EPUB (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 22 مگابایت
در صورت تبدیل فایل کتاب Bash Shell Scripting for Pentesters به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب اسکریپت های پوسته Bash برای پنتسترها نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
Bash Shell Scripting for Pentesters
Foreword
Contributors
About the author
About the reviewers
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Disclaimer
Get in touch
Share Your Thoughts
Download a free PDF copy of this book
Part 1: Getting Started with Bash Shell Scripting
1
Bash Command-Line and Its Hacking Environment
Technical requirements
Introduction to Bash
Lab setup
Virtual machines
Docker containers
Live USB
Cloud-based systems
Vulnerable lab targets
Configuring your hacker shell
Customizing the Bash prompt
Setting up essential pentesting tools
Update the package manager
Install ProjectDiscovery tools
Install NetExec
Summary
2
File and Directory Management
Technical requirements
Working with files and directories
Directory navigation and manipulation
Filesystem design and hierarchy
Filesystem navigation commands
File permissions and ownership
Ownership and groups
Special permissions – SUID and SGID
Linking files – hard links and symlinks
Summary
3
Variables, Conditionals, Loops, and Arrays
Technical requirements
Introducing variables
Declaring variables
Accessing variables
Environment variables
A review of variables
Branching with conditional statements
The if statement
Adding else
The power of elif
Beyond simple comparisons
Combining conditions
Case statements
Repeating with loops
The for loop
The while loop
The until loop
Select – interactive menus made easy
Advanced usage – nested loops
Using break and continue
Using arrays for data containers
Looping through arrays
Summary
4
Regular Expressions
Technical requirements
The basics of regex
Using character classes
Flags – modifying your search
Applying basic regex examples
Advanced regex patterns and techniques
Practical example – extracting data using regex
Utilizing alternations
Demonstrating practical applications
Matching IP addresses with grep
Using handy grep flags
Redacting IP addresses
Regex tips and best practices
Summary
5
Functions and Script Organization
Introduction to Bash functions
Code reuse
Modularity
Encapsulation
Testability
Performance
Defining and calling a function
Passing arguments to functions
Handling a variable number of arguments
Default values for arguments
The scope and lifetime of variables in functions
Global variables
Local variables
Variable lifetime
Modifying global variables inside functions
Advanced function techniques
Function return values
Recursive functions
Importing functions
Functions versus aliases
Summary
6
Bash Networking
Technical requirements
Networking basics with Bash
Understanding IP addresses and subnets (IPv4)
Understanding IP addresses and subnets (IPv6)
Configuring network interfaces using Bash commands
Troubleshooting network connectivity with Bash tools
Scripting network enumeration
Network exploitation
Network service exploitation
Network traffic analysis
Capturing and analyzing network traffic
Interpreting packet captures
Summary
7
Parallel Processing
Understanding parallel processing in Bash
Implementing basic parallel execution
Advanced parallel processing with xargs and GNU parallel
Introducing xargs for robust parallel processing
Using GNU parallel for enhanced control
Comparing xargs and parallel
Achieving parallelism using screen
Practical applications and best practices
Practical applications of Bash parallel processing
Best practices for parallel execution in Bash
Summary
Part 2: Bash Scripting for Pentesting
8
Reconnaissance and Information Gathering
Technical requirements
Introducing reconnaissance with Bash
Formatting usernames and email addresses
Using Bash for DNS enumeration
Expanding the scope using Bash
Automating subdomain enumeration with Bash
Using Bash to identify web applications
Using Bash for certificate enumeration
Using Bash to format vulnerability scan targets
Summary
9
Web Application Pentesting with Bash
Technical requirements
Automating HTTP requests in Bash
Analyzing web application security with Bash
ProjectDiscovery
Running command-line scans with ZAP
Learning advanced data manipulation techniques
Summary
10
Network and Infrastructure Pentesting with Bash
Technical requirements
Fundamentals of network pentesting with Bash
Core methodologies in network pentesting
Setting up the pentest environment
Using tmux for persistent sessions
Basic network scanning with Nmap
Fast network scanning with Masscan
Processing scan results with Bash
Conclusion
Advanced network scanning techniques in Bash
Enumerating network services and protocols using Bash
Infrastructure vulnerability assessment with Bash
Enumerating network hosts with NetExec
Automating vulnerability scanning with Greenbone
Summary
11
Privilege Escalation in the Bash Shell
Technical requirements
Understanding privilege escalation in Unix/Linux systems
Enumeration techniques for privilege escalation
Initial access
System information gathering
Exploiting SUID and SGID binaries with Bash
Leveraging misconfigured services and scheduled tasks
Summary
12
Persistence and Pivoting
Technical requirements
The fundamentals of persistence with Bash
Creating a new user in Bash
Backdooring the Bash shell
Creating backdoor cron jobs
Backdooring system files for persistence
Backdooring with SSH authorized keys
Learning advanced persistence techniques
The basics of network pivoting with Bash
Mastering advanced pivoting and lateral movement
Dynamic chain pivoting
DNS tunneling
Cleanup and covering tracks
Summary
13
Pentest Reporting with Bash
Technical requirements
Automating data collection for reporting with Bash
Identifying key data points
Parsing and cleaning raw data using Bash
Storing and managing pentest data with SQLite
Integrating Bash with reporting tools
Summary
Part 3: Advanced Applications of Bash Scripting for Pentesting
14
Evasion and Obfuscation
Technical requirements
Enumerating the environment for AV and EDR
Basic obfuscation techniques in Bash
Advanced evasion tactics using Bash
Automating evasion script generation in Bash
Summary
15
Interfacing with Artificial Intelligence
Technical requirements
Ethical and practical considerations of AI in pentesting
The basics of AI in pentesting
Basic terminology and definitions of ML and AI
Creating a foundation for successful AI use in pentesting
Redefining the system prompt
Enhancing vulnerability identification with AI
AI-assisted decision-making in pentesting
Testing the Pentest Hero AI agent
Summary
16
DevSecOps for Pentesters
Technical requirements
Introduction to DevSecOps for pentesters
Understanding the intersection of DevOps and security
Common use cases for Bash in security automation
Configuring the CI/CD pipeline with Bash
Initial setup and error handling
Logging functions
Error handler and initialization
System checks
Development tools installation
Security tools installation
GitLab CI/CD setup
Workspace creation
Crafting security-focused Bash scripts for DevSecOps
Creating the scan script
Creating vulnerable artifacts
Integrating real-time security monitoring with Bash
Automating custom Kali Linux builds for pentesting
Summary
Index
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book