4

Network Enumeration and Port Scanning

In this chapter, we will explore how PowerShell can be used as part of a penetration test to perform TCP/UDP port scanning. Through practical examples, we will explore how specific cmdlets can be used and how PowerShell can use functions in other frameworks such as .NET. Finally, we will examine some open source tools that can be used to perform a port scan. We will now begin this chapter by looking at how various cmdlets can be used to perform network enumeration.

The following are the main topics we will cover in this chapter:

  • Network enumeration using PowerShell
  • TCP port scanning using PowerShell
  • UDP port scanning using PowerShell
  • Using PowerShell tools for port scanning

Network enumeration using ...

Get PowerShell for Penetration Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.