.. /vbc.exe
Star

Compile (WSH)

Binary file used for compile vbs code


Paths:

Acknowledgements:

Detection:

Compile

  1. Binary file used by .NET to compile Visual Basic code to an executable.

    vbc.exe /target:exe c:\temp\vbs\run.vb
    Use case
    Compile attacker code on system. Bypass defensive counter measures.
    Privileges required
    User
    Operating systems
    Windows 7, Windows 10, Windows 11
    ATT&CK® technique
    T1127
    Tags
    Execute: WSH
    This LOLBAS executes scripts in Windows Script Host (WSH) languages, such as VBScript and JScript.
  2. Binary file used by .NET to compile Visual Basic code to an executable.

    vbc -reference:Microsoft.VisualBasic.dll c:\temp\vbs\run.vb
    Use case
    Compile attacker code on system. Bypass defensive counter measures.
    Privileges required
    User
    Operating systems
    Windows 7, Windows 10, Windows 11
    ATT&CK® technique
    T1127
    Tags
    Execute: WSH
    This LOLBAS executes scripts in Windows Script Host (WSH) languages, such as VBScript and JScript.