
NahamSec Releases New Video Series on PowerShell for Hackers
In this new video, NahamSec explores the world of PowerShell, a powerful tool integrated into Windows, and shows how hackers can use it for offensive operations. The series, titled "PowerShell for Hackers," is divided into three parts and focuses on real techniques used by Red Teams and observed in security breaches. Introduction to PowerShell PowerShell is a standard programming language on Windows, often used by administrators for simple tasks such as copying files or managing settings. However, it can be creatively exploited for malicious activities. For example, a simple command can reveal the Wi-Fi password of a system, which can be useful for lateral movements or other offensive actions. Advanced Techniques and Projects One of the most impressive projects presented is the creation of an API endpoint that generates a reverse shell. This shell can be downloaded and executed with a single line of code, making the attack more efficient and difficult to detect. The shell is polymorphic, meaning it changes with each download, thus avoiding detection signatures. LOLBins and PowerShell Modules LOLBins (Living Off the Land Binaries) are binaries and scripts present by default on Windows systems, often used for malicious actions. The LOLBAS Project site is a valuable resource for discovering these tools. NahamSec also presents a custom PowerShell module that allows checking which LOLBins are available on a given system. Bypassing Defenses To bypass defenses, NahamSec shows how to load PowerShell modules without downloading them, using a script that extracts the code directly from the PowerShell Gallery site. This allows modules to be executed without leaving traces on the disk, a crucial technique for staying stealthy. Useful Commands and Alternatives Commands like Invoke-WebRequest and Invoke-RestMethod are often used to download files or scripts. However, they are also closely monitored. NahamSec presents lesser-known alternatives, such as using certutil to download files more discreetly. Resources and Tips for Beginners For those who want to learn PowerShell, NahamSec recommends exploring resources like the LOLBAS Project site and using tools like ChatGPT to understand commands and scripts. He also encourages experimenting and thinking creatively to find new ways to use PowerShell for offensive purposes. Conclusion This first part of the "PowerShell for Hackers" series offers a comprehensive and practical introduction to using PowerShell for hacking operations. By combining real techniques and concrete examples, NahamSec demonstrates how this powerful tool can be exploited for malicious actions while staying under the radar of defenses. To learn more, watch the full video here: https://www.youtube.com/watch?v=s2kquCwKNs8