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