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

Using PowerShell for privilege escalation in Linux

PowerShell, traditionally associated with Windows environments, has expanded its reach to Linux systems with PowerShell Core. While Linux typically relies on native tools and scripting languages such as Bash for privilege escalation, PowerShell on Linux can be a powerful addition to the toolkit of security professionals. This guide will explore how PowerShell can be used for privilege escalation on Linux through various techniques and examples.

Checking the current user’s privileges

Before attempting privilege escalation, it’s essential to understand the current user’s privileges. PowerShell on Linux can retrieve information about the current user:

# Check current user's privileges
whoami

This simple command provides the current user’s username, allowing initial insight into their privileges.

Enumerating local groups and users

Identifying local groups and users is a crucial step in...

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