Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PowerShell for Penetration Testing
  • Table Of Contents Toc
  • Feedback & Rating feedback
PowerShell for Penetration Testing

PowerShell for Penetration Testing

By : Dr. Andrew Blyth
4 (4)
close
close
PowerShell for Penetration Testing

PowerShell for Penetration Testing

4 (4)
By: Dr. Andrew Blyth

Overview of this book

PowerShell for Penetration Testing is a comprehensive guide designed to equip you with the essential skills you need for conducting effective penetration tests using PowerShell. You'll start by laying a solid foundation by familiarizing yourself with the core concepts of penetration testing and PowerShell scripting. In this part, you'll get up to speed with the fundamental scripting principles and their applications across various platforms. You’ll then explore network enumeration, port scanning, exploitation of web services, databases, and more using PowerShell tools. Hands-on exercises throughout the book will solidify your understanding of concepts and techniques. Extending the scope to cloud computing environments, particularly MS Azure and AWS, this book will guide you through conducting penetration tests in cloud settings, covering governance, reconnaissance, and networking intricacies. In the final part, post-exploitation techniques, including command-and-control structures and privilege escalation using PowerShell, will be explored. This section encompasses post-exploitation activities on both Microsoft Windows and Linux systems. By the end of this book, you’ll have covered concise explanations, real-world examples, and exercises that will help you seamlessly perform penetration testing techniques using PowerShell.
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Introduction to Penetration Testing and PowerShell
4
Part 2: Identification and Exploitation
14
Part 3: Penetration Testing on Azure and AWS cloud Environments
17
Part 4: Post Exploitation and Command and Control

Remote access and PowerShell

PowerShell, developed by Microsoft, offers robust remote management and automation capabilities in Windows environments. The Windows Remote Management (WinRM) protocol primarily facilitates remote access to PowerShell. Next, I’ll describe various aspects of PowerShell remoting, including its setup, configuration, and execution of remote commands.

Enabling PowerShell remoting

The first step in remote access is enabling PowerShell remoting on the target machine. The Enable-PSRemoting cmdlet is used for this purpose:

Enable-PSRemoting -Force

The -Force parameter ensures that existing configurations are overwritten if needed. This command configures the WinRM service on the machine, allowing it to accept remote PowerShell commands.

Configuring WinRM

WinRM relies on the HTTP or HTTPS protocol for communication. To configure WinRM settings, you can use the winrm command-line tool or PowerShell cmdlets. Here’s an example of configuring...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
PowerShell for Penetration Testing
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon