Offensive VBA 0x2 - Program & Command Execution

Offensive VBA 0x2 - Program & Command Execution

🎙 HackerSploit 👥 1.0M 📅 January 24, 2025 ⏱ 45 min 👁 4K 📄 tutorial 🧭 2026-10-09
Available in: English (current) Français

Keywords

VBAShell functionWScript.ShellPowerShellred team

Summary

This video is the second episode of the Offensive VBA series by HackerSploit, aimed at red teamers and penetration testers. It focuses on program and command execution using VBA macros, a critical capability for initial access and post-exploitation. The author begins by explaining objects in VBA, their properties, methods, and events, and demonstrates how to create a WScript.Shell object. He then covers the built-in Shell function to execute programs like notepad.exe and calc.exe, and system commands via cmd.exe, including window style options such as VBHide for stealth. The video then moves to the WScript.Shell object, detailing its Run and Exec methods. The Run method allows synchronous or asynchronous execution, while Exec provides access to standard input/output streams, demonstrated by capturing ipconfig output into a message box. The author also shows how to execute PowerShell commands, including dumping process lists to a file and performing in-memory execution using System.Diagnostics.Process.Start with execution policy bypass. The tutorial is practical and builds toward a reverse shell dropper in the next episode. The video includes a sponsored segment of approximately 60 seconds, which does not affect the technical content.

184 words

Critical Evaluation

Value of the Information & Strength of the Argument

The video delivers high practical value for its target audience. It systematically builds from basic concepts (VBA objects) to concrete execution techniques, with live coding and immediate results. The argumentation is clear and logical: each technique is introduced, demonstrated, and its offensive relevance explained. The author emphasizes stealth (window hiding) and flexibility (WScript.Shell vs. Shell function), which are key for red team operations. The progression from simple program execution to command execution, then to PowerShell and in-memory execution, is well-structured and pedagogically sound. The inclusion of debugging moments, while slightly disruptive, adds authenticity and shows real-world troubleshooting. The value lies in the actionable knowledge that viewers can directly apply to craft malicious macros for initial access.

Scientific Rigor, Source Quality, Title Accuracy

The video does not cite external sources, academic papers, or official documentation. The author relies on his own expertise and demonstrations. The technical content is accurate and aligns with standard Windows and VBA behavior, but the lack of references means viewers cannot easily verify claims independently. The title is fully adequate: it precisely describes the content, which is about program and command execution using VBA. There is no sensationalism or mismatch. The video includes a sponsored segment of approximately 60 seconds, which is clearly separated and does not interfere with the technical material. No comments were provided for analysis.

230 words

Title / Content Match

The title accurately reflects the content: the video focuses on executing programs and system commands using VBA macros, covering the Shell function, WScript.Shell object, and PowerShell execution. The title is precise and not misleading.

Quality & Reliability

7/10

The content is a hands-on technical tutorial delivered by an experienced practitioner. The explanations of VBA objects, the Shell function, and the WScript.Shell object are accurate and consistent with Microsoft documentation. The code demonstrated is functional and reproducible. However, the video relies almost entirely on the author's own demonstrations without citing external references or authoritative sources, and some segments show live debugging and minor errors that, while realistic, reduce the polish and perceived reliability.

Key Moments

Cited Sources

Contribution & Novelties

This video provides a focused, practical guide on command and program execution in VBA, a niche but critical skill for red teamers. It distinguishes itself by explaining the underlying object model and comparing the Shell function with the WScript.Shell object, including the Exec method for output capture. The demonstration of in-memory PowerShell execution is particularly valuable for stealthy operations. The content is not novel in a research sense but serves as an accessible, hands-on tutorial that bridges basic VBA knowledge with offensive techniques.

Pour aller plus loin :

128 words

Radar Profile

The radar profile shows a strong emphasis on information quantity and technical depth, with solid reliability. The quality of information is high for a tutorial, though it lacks external citations. The overall profile is that of a practical, hands-on technical guide with moderate formal rigor.

Reliability 7/10